protected static void transferFeatures(SequenceI fromSeq,
SequenceI toSeq, MapList mapping, String... omitting)
{
+ SequenceI copyTo = toSeq;
+ while (copyTo.getDatasetSequence() != null)
+ {
+ copyTo = copyTo.getDatasetSequence();
+ }
+
SequenceFeature[] sfs = fromSeq.getSequenceFeatures();
if (sfs != null)
{
SequenceFeature copy = new SequenceFeature(sf);
copy.setBegin(Math.min(mappedTo[0], mappedTo[1]));
copy.setEnd(Math.max(mappedTo[0], mappedTo[1]));
- toSeq.addSequenceFeature(copy);
+ copyTo.addSequenceFeature(copy);
}
}
}