JAL-2629 remove annotation when exporting for hmmbuild
authorTZVanaalten <TZVanaalten@LS30916.ad.lifesci.dundee.ac.uk>
Mon, 14 Aug 2017 14:51:48 +0000 (15:51 +0100)
committerTZVanaalten <TZVanaalten@LS30916.ad.lifesci.dundee.ac.uk>
Mon, 14 Aug 2017 14:51:48 +0000 (15:51 +0100)
src/jalview/hmmer/HMMERCommands.java

index 136ad5c..4f1dbc6 100644 (file)
@@ -124,8 +124,12 @@ public class HMMERCommands
     if (seqs != null)
     {
       StockholmFile file = new StockholmFile(new Alignment(seqs));
-      file.setSeqs(seqs);
-      String output = file.print();
+      boolean removeAnnots = false;
+      if (hmm == null)
+      {
+        removeAnnots = true;
+      }
+      String output = file.print(seqs, false, removeAnnots);
       PrintWriter writer = new PrintWriter(stoLocation);
       writer.println(output);
       writer.close();