/**
* This annotation is displayed below the alignment but the positions are tied
* to the residues of this sequence
+ *
+ * TODO: change to List<>
*/
- Vector annotation;
+ Vector<AlignmentAnnotation> annotation;
/**
* The index of the sequence in a MSA
datasetSequence.updatePDBIds();
if (annotation != null)
{
- Vector<AlignmentAnnotation> _annot = annotation;
- annotation = null;
- for (AlignmentAnnotation aa : _annot)
+ for (AlignmentAnnotation aa : annotation)
{
- aa.sequenceRef = datasetSequence;
- aa.adjustForAlignment(); // uses annotation's own record of
+ AlignmentAnnotation _aa = new AlignmentAnnotation(aa);
+ _aa.sequenceRef = datasetSequence;
+ _aa.adjustForAlignment(); // uses annotation's own record of
// sequence-column mapping
- datasetSequence.addAlignmentAnnotation(aa);
+ datasetSequence.addAlignmentAnnotation(_aa);
}
}
}