JAL-2629 hmmer searches include seqs past inclusion threshold in output
authorThomas <170013569@dundee.ac.uk>
Thu, 11 Jul 2019 14:11:52 +0000 (15:11 +0100)
committerThomas <170013569@dundee.ac.uk>
Thu, 11 Jul 2019 14:11:52 +0000 (15:11 +0100)
src/jalview/hmmer/Search.java

index 24bd6b7..2fad426 100644 (file)
@@ -69,9 +69,13 @@ public abstract class Search extends HmmerCommand
 
     int index = 0;
 
-    while (!"  ------ inclusion threshold ------".equals(line)
-            && !"".equals(line))
+    while (!"".equals(line) && line != null)
     {
+      if ("  ------ inclusion threshold ------".equals(line))
+      {
+        line = br.readLine();
+        continue;
+      }
 
       Scanner scanner = new Scanner(line);
       String evalue = scanner.next();
@@ -81,6 +85,7 @@ public abstract class Search extends HmmerCommand
         evalue = scanner.next();
       }
 
+
       String score = scanner.next();
       checkSequenceOrder(index, scanner);
       SequenceI seq = seqs[index];