From: amwaterhouse Date: Wed, 23 Mar 2005 15:38:53 +0000 (+0000) Subject: reads MSF files even if PILEUP is missing X-Git-Tag: Release_2_0~516 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=13e9eb31c5b65f9022bc96e7c2d880204bd67c81;p=jalview.git reads MSF files even if PILEUP is missing --- diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index c457b58..4337cf6 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -41,7 +41,7 @@ public class IdentifyFile if(data.indexOf("#")==0 || data.length()<1) continue; - if(data.indexOf("PILEUP")>-1) + if(data.indexOf("PILEUP")>-1 || data.indexOf("//")>-1) { reply = "MSF"; break; @@ -58,7 +58,7 @@ public class IdentifyFile } else if(data.indexOf(">")>-1) { - // could be BLC file + // could be BLC file, read next line to confirm data = reader.readLine(); if(data.indexOf(">")>-1) reply = "BLC";