From: amwaterhouse Date: Mon, 13 Nov 2006 16:11:09 +0000 (+0000) Subject: Fasta files with * read not identified as BLC X-Git-Tag: Release_2_2~128 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=beca055dbed389362bb692de3c15fa5487c1ebd3;p=jalview.git Fasta files with * read not identified as BLC --- diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 9a248e5..024da61 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -122,10 +122,16 @@ public class IdentifyFile // could be BLC file, read next line to confirm data = reader.readLine(); - if (data.indexOf(">") > -1 || data.indexOf("*") >-1 ) + if (data.indexOf(">") > -1) { reply = "BLC"; } + //Is this a single line BLC file? + data = reader.readLine(); + if(data!=null && data.length()==1) + { + reply = "BLC"; + } else { reply = "FASTA";