Fasta files with * read not identified as BLC
[jalview.git] / src / jalview / io / IdentifyFile.java
index 5d39383..024da61 100755 (executable)
@@ -1,6 +1,6 @@
 /*\r
 * Jalview - A Sequence Alignment Editor and Viewer\r
-* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
 *\r
 * This program is free software; you can redistribute it and/or\r
 * modify it under the terms of the GNU General Public License\r
@@ -122,10 +122,16 @@ public class IdentifyFile
                     // could be BLC file, read next line to confirm\r
                     data = reader.readLine();\r
 \r
-                    if (data.indexOf(">") > -1 || data.indexOf("*") >-1 )\r
+                    if (data.indexOf(">") > -1)\r
                     {\r
                         reply = "BLC";\r
                     }\r
+                    //Is this a single line BLC file?\r
+                    data = reader.readLine();\r
+                    if(data!=null && data.length()==1)\r
+                    {\r
+                      reply = "BLC";\r
+                    }\r
                     else\r
                     {\r
                         reply = "FASTA";\r