start = getNodeAlignmentColumn(1);
modelLength = getLength();
end = getNodeAlignmentColumn(modelLength);
- char[] sequence = new char[end];
- for (int index = 0; index < end; index++)
+ char[] sequence = new char[end + 1];
+ for (int index = 0; index < end + 1; index++)
{
Character character;
}
- Sequence seq = new Sequence(getName() + "_HMM", sequence, start, end);
+ Sequence seq = new Sequence(getName() + "_HMM", sequence, start,
+ end);
return seq;
}
if (sg != null)
{
seq.insertCharAt(0, sg.getStartRes(), '-');
- seq.insertCharAt(sg.getEndRes(),
+ seq.insertCharAt(sg.getEndRes() + 1,
alignment.getWidth() - sg.getEndRes(), '-');
SequenceI topSeq = sg.getSequencesInOrder(alignment)[0];
int topIndex = alignment.findIndex(topSeq);