+ void removeOldAnnotations(String[] annotDescs)
+ {
+ // TODO use the commented out code once JAL-2075 is fixed
+ // to get adequate performance on genomic length sequence
+ AlignmentI alignment = alignViewport.getAlignment();
+ ArrayList<AlignmentAnnotation> toRemove = new ArrayList<AlignmentAnnotation>();
+ for (String toRemoveDesc : annotDescs)
+ {
+ for (AlignmentAnnotation aa : ourAnnots)
+ {
+ if (toRemoveDesc.equals(aa.getCalcId()))
+ toRemove.add(aa);
+ }
+ }
+ for (AlignmentAnnotation deleted : toRemove)
+ {
+ alignment.deleteAnnotation(deleted);
+ }
+ }
+