{
for (DBRefEntry dbref : feature.dbRefs)
{
+ /*
+ * convert UniProtKB/Swiss-Prot to UNIPROT
+ */
+ dbref.setSource(DBRefUtils.getCanonicalName(dbref.getSource()));
dna.addDBRef(dbref);
}
}
}
/*
- * add dbRefs to sequence, and mappings for Uniprot xrefs
+ * add mappings for Uniprot xrefs
*/
if (feature.dbRefs != null)
{
boolean mappingUsed = false;
for (DBRefEntry ref : feature.dbRefs)
{
- ref.setSource(DBRefUtils.getCanonicalName(ref.getSource()));
if (ref.getSource().equals(DBRefSource.UNIPROT))
{
String proteinSeqName = DBRefSource.UNIPROT + "|"
}
}
}
- dna.addDBRef(ref);
}
if (noProteinDbref && product != null)
{