From beca055dbed389362bb692de3c15fa5487c1ebd3 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 13 Nov 2006 16:11:09 +0000 Subject: [PATCH] Fasta files with * read not identified as BLC --- src/jalview/io/IdentifyFile.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"; -- 1.7.10.2