X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FIdentifyFile.java;h=93f9a98d9de79ed21124fa519e616e3bc30a079a;hb=dfa04e77181fccfa6229ffef1591fc9c622d9b39;hp=63d8d63ab9c70ca84e367fb56abbd171a81adfb8;hpb=865a855a4ca87eadb3e5ff284ed32ed307d9c34b;p=jalview.git diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 63d8d63..93f9a98 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -182,16 +182,19 @@ public class IdentifyFile // Is this a single line BLC file? String data1 = source.nextLine(); String data2 = source.nextLine(); + int c1; if (checkPIR) { starterm = (data1 != null && data1.indexOf("*") > -1) || (data2 != null && data2.indexOf("*") > -1); } - if (data2 != null && data.indexOf("*") > -1) + if (data2 != null && (c1=data.indexOf("*")) > -1) { - if (data.indexOf("*") == data2.indexOf("*")) + if (c1==0 && c1 == data2.indexOf("*")) { reply = "BLC"; + } else { + reply = "FASTA"; // possibly a bad choice - may be recognised as PIR } // otherwise can still possibly be a PIR file }