import java.util.Set;
import java.util.Vector;
+import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.AlignmentOrder;
import jalview.datamodel.AlignmentView;
}
else
{
+ // TODO: move validation of input data to SeqGroupIndexVector
if ((prm.getValue() instanceof SeqGroupIndexVector)
&& (_input.getGroups() != null && _input.getGroups()
.size() > 0))
context = new JalviewDataset(dsForIO, null, squniq, null);
if (contextAl!=null)
{
+ // TODO devise way of merging new annotation onto (identical) existing annotation that was used as input
+ // delete all input annotation
+ if (contextAl.getAlignmentAnnotation()!=null) {
+ for (AlignmentAnnotation alan: contextAl.getAlignmentAnnotation()) {
+ contextAl.deleteAnnotation(alan);
+ }
+ }
+ // TODO devise way of merging new groups onto (identical) existing groups when they were used as input to service
+ // delete all existing groups
+ if (contextAl.getGroups()!=null)
+ {
+ contextAl.deleteAllGroups();
+ }
context.addAlignment(contextAl);
}