From 13e9eb31c5b65f9022bc96e7c2d880204bd67c81 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 23 Mar 2005 15:38:53 +0000 Subject: [PATCH] reads MSF files even if PILEUP is missing --- src/jalview/io/IdentifyFile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 1.7.10.2