{
pepseqs.addElement(newseq);
SequenceI ds = newseq;
- while (ds.getDatasetSequence() != null)
+ if (dataset != null)
{
- ds = ds.getDatasetSequence();
+ while (ds.getDatasetSequence() != null)
+ {
+ ds = ds.getDatasetSequence();
+ }
+ dataset.addSequence(ds);
}
- dataset.addSequence(ds);
}
}
if (codons.aaWidth == 0)
private static void transferCodedFeatures(SequenceI dna, SequenceI pep,
MapList map, Hashtable featureTypes, Hashtable featureGroups)
{
- SequenceFeature[] sf = dna.getDatasetSequence().getSequenceFeatures();
+ SequenceFeature[] sf = (dna.getDatasetSequence()!=null ? dna.getDatasetSequence() : dna).getSequenceFeatures();
Boolean fgstate;
jalview.datamodel.DBRefEntry[] dnarefs = jalview.util.DBRefUtils
.selectRefs(dna.getDBRef(),