- if (efile != null)
- {
- for (EmblEntry entry : efile.getEntries())
- {
- SequenceI[] seqparts = entry.getSequences(false, true, emprefx);
- // TODO: use !fetchNa,!fetchPeptide here instead - see todo in EmblEntry
- if (seqparts != null)
- {
- SequenceI[] newseqs = null;
- int si = 0;
- if (seqs == null)
- {
- newseqs = new SequenceI[seqparts.length];
- }
- else
- {
- newseqs = new SequenceI[seqs.length + seqparts.length];
-
- for (; si < seqs.length; si++)
- {
- newseqs[si] = seqs[si];
- seqs[si] = null;
- }
- }
- for (int j = 0; j < seqparts.length; si++, j++)
- {
- newseqs[si] = seqparts[j].deriveSequence();
- // place DBReferences on dataset and refer
- }
- seqs = newseqs;