From: amwaterhouse Date: Tue, 14 Nov 2006 12:21:44 +0000 (+0000) Subject: Single seq Blc file detection X-Git-Tag: Release_2_2~122 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=72b6fde6eac94c8019ba8ce858640f1c8c41e23a;p=jalview.git Single seq Blc file detection --- diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 024da61..e97ec40 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -126,15 +126,21 @@ public class IdentifyFile { reply = "BLC"; } - //Is this a single line BLC file? - data = reader.readLine(); - if(data!=null && data.length()==1) - { - reply = "BLC"; - } else { + //Is this a single line BLC file? + reader.readLine(); + String data2 = reader.readLine(); + if ( data2 != null + && data.indexOf("*")>-1 + && data.indexOf("*")==data2.indexOf("*")) + { + reply = "BLC"; + } + else + { reply = "FASTA"; + } } break;