{
for (AlignmentAnnotation ann : annotation)
{
- if (ann.calcId != null && ann.calcId.equals(calcId)
+ String id = ann.getCalcId();
+ if (id != null && id.equals(calcId)
&& ann.label != null && ann.label.equals(label))
{
result.add(ann);
@Override
public void updateHMMMapping()
{
- int node = 1;
- int column = 0;
- hmm.emptyNodeLookup();
- for (char residue : sequence)
+ if (hmm == null)
{
- if (!Comparison.isGap(residue))
- {
- hmm.setAlignmentColumn(node, column);
- node++;
- }
- column++;
+ return;
}
+ hmm.updateMapping(sequence);
}
/**
if (this.isHMMConsensusSequence)
{
int node = 1;
- hmm.emptyNodeLookup();
+ hmm.clearNodeLookup();
for (int i = 0; i < getLength(); i++)
{
if (rf.annotations[i].displayCharacter.equals("x")