X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fio%2FIdentifyFile.java;h=08d4dca897efd371f81db835f045e782354280b1;hb=7ab5d6b0ba5fec1ea4a4239e79c476d841622485;hp=262989699218e83bed628d512570426b9d092afd;hpb=1889827c44c51f6353fe8619e5d44b421158af23;p=jalview.git diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 2629896..08d4dca 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -134,11 +134,11 @@ public class IdentifyFile break; } - + if ((data.indexOf("<") > -1)) { reply = "RNAML"; - + break; } @@ -169,8 +169,7 @@ public class IdentifyFile break; } - - + else if (data.indexOf(">") > -1) { // FASTA, PIR file or BLC file @@ -199,13 +198,16 @@ public class IdentifyFile starterm = (data1 != null && data1.indexOf("*") > -1) || (data2 != null && data2.indexOf("*") > -1); } - if (data2 != null && (c1=data.indexOf("*")) > -1) + if (data2 != null && (c1 = data.indexOf("*")) > -1) { - if (c1==0 && c1 == data2.indexOf("*")) + if (c1 == 0 && c1 == data2.indexOf("*")) { reply = "BLC"; - } else { - reply = "FASTA"; // possibly a bad choice - may be recognised as PIR + } + else + { + reply = "FASTA"; // possibly a bad choice - may be recognised as + // PIR } // otherwise can still possibly be a PIR file }