reads MSF files even if PILEUP is missing
authoramwaterhouse <Andrew Waterhouse>
Wed, 23 Mar 2005 15:38:53 +0000 (15:38 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 23 Mar 2005 15:38:53 +0000 (15:38 +0000)
src/jalview/io/IdentifyFile.java

index c457b58..4337cf6 100755 (executable)
@@ -41,7 +41,7 @@ public class IdentifyFile
         if(data.indexOf("#")==0 || data.length()<1)\r
           continue;\r
 \r
-        if(data.indexOf("PILEUP")>-1)\r
+        if(data.indexOf("PILEUP")>-1 || data.indexOf("//")>-1)\r
         {\r
           reply = "MSF";\r
           break;\r
@@ -58,7 +58,7 @@ public class IdentifyFile
         }\r
         else if(data.indexOf(">")>-1)\r
         {\r
-          // could be BLC file\r
+          // could be BLC file, read next line to confirm\r
           data = reader.readLine();\r
           if(data.indexOf(">")>-1)\r
             reply = "BLC";\r