From 6de4d198e26fea3248732d627a13799182f54574 Mon Sep 17 00:00:00 2001 From: TZVanaalten Date: Wed, 30 Aug 2017 17:42:13 +0100 Subject: [PATCH] JAL-2629 fix issue where HMM sequence would be longer than alignment --- src/jalview/hmmer/HMMBuildThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/hmmer/HMMBuildThread.java b/src/jalview/hmmer/HMMBuildThread.java index 2ff89c1..f940fbb 100644 --- a/src/jalview/hmmer/HMMBuildThread.java +++ b/src/jalview/hmmer/HMMBuildThread.java @@ -372,7 +372,7 @@ public class HMMBuildThread implements Runnable { seq.insertCharAt(0, group.getStartRes(), '-'); seq.insertCharAt(group.getEndRes() + 1, - alignment.getWidth() - group.getEndRes(), '-'); + alignment.getWidth() - group.getEndRes() - 1, '-'); seq.updateHMMMapping(); SequenceI topSeq = group.getSequencesInOrder(alignment)[0]; int topIndex = alignment.findIndex(topSeq); -- 1.7.10.2