- // TODO: deal with ID collisions - SequenceI should be appended to list associated with this key.
- names.put(new SeqIdName(seqs[i].getDisplayId(true)), seqs[i]);
+ // TODO: deal with ID collisions - SequenceI should be appended to list
+ // associated with this key.
+ names.put(new SeqIdName(seq.getDisplayId(true)), seq);
+ SequenceI dbseq = seq;
+ while (dbseq.getDatasetSequence() != null)
+ {
+ dbseq = dbseq.getDatasetSequence();
+ }