X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2Fxdb%2Fembl%2FEmblEntry.java;h=b7509735547418c703c2ac950cfbd48c18d167a3;hb=627bafea52e4d5702bed00725afca1e0d17f8f60;hp=9a07c3666042ac29c987da153183e3bab512e38e;hpb=3e4960cd512411a430115676d4381aaee68e81dc;p=jalview.git diff --git a/src/jalview/datamodel/xdb/embl/EmblEntry.java b/src/jalview/datamodel/xdb/embl/EmblEntry.java index 9a07c36..b750973 100644 --- a/src/jalview/datamodel/xdb/embl/EmblEntry.java +++ b/src/jalview/datamodel/xdb/embl/EmblEntry.java @@ -202,6 +202,7 @@ public class EmblEntry { for (DBRefEntry dbref : dbRefs) { + dbref.setSource(DBRefUtils.getCanonicalName(dbref.getSource())); dna.addDBRef(dbref); } } @@ -214,6 +215,10 @@ public class EmblEntry { for (DBRefEntry dbref : feature.dbRefs) { + /* + * convert UniProtKB/Swiss-Prot to UNIPROT + */ + dbref.setSource(DBRefUtils.getCanonicalName(dbref.getSource())); dna.addDBRef(dbref); } } @@ -421,14 +426,13 @@ public class EmblEntry } /* - * 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 + "|" @@ -484,7 +488,6 @@ public class EmblEntry } } } - dna.addDBRef(ref); } if (noProteinDbref && product != null) {