From: TZVanaalten Date: Fri, 4 Aug 2017 11:19:51 +0000 (+0100) Subject: JAL-2629 hmmbuild now runs on alignments of different lengths X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e1599e1245a76fc65eb4266881633ef3e9401894;p=jalview.git JAL-2629 hmmbuild now runs on alignments of different lengths --- diff --git a/src/jalview/hmmer/HMMERCommands.java b/src/jalview/hmmer/HMMERCommands.java index 3f50bbb..c8d26e4 100644 --- a/src/jalview/hmmer/HMMERCommands.java +++ b/src/jalview/hmmer/HMMERCommands.java @@ -60,6 +60,10 @@ public class HMMERCommands clearer.print(""); clearer.close(); AlignmentI alignment = af.getViewport().getAlignment(); + if (!alignment.isAligned()) + { + alignment.padGaps(); + } Map seqs = alignment.getHMMConsensusSequences(true); exportAlignment(alignment); final String command = HMMBUILD + NAME + af.getName() + SPACE @@ -87,8 +91,11 @@ public class HMMERCommands PrintWriter clearer = new PrintWriter(ALIGNMENTINPUT); clearer.print(""); clearer.close(); - AlignmentI al = af.getViewport().getAlignment(); + if (!al.isAligned()) + { + al.padGaps(); + } Map seqs = al.getHMMConsensusSequences(true); int index = 0; if (hmm == null)