From: Jim Procter Date: Mon, 3 Oct 2016 08:18:03 +0000 (+0100) Subject: JAL-2210 JAL-2232 remove version number from ENACDS excession X-Git-Tag: Release_2_10_0~20^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=56bc65e4a83ab45cb98a37b60f0d547bd6ae9a71;p=jalview.git JAL-2210 JAL-2232 remove version number from ENACDS excession --- diff --git a/src/jalview/ws/dbsources/Uniprot.java b/src/jalview/ws/dbsources/Uniprot.java index 7ecd324..e26ccda 100644 --- a/src/jalview/ws/dbsources/Uniprot.java +++ b/src/jalview/ws/dbsources/Uniprot.java @@ -30,7 +30,6 @@ import jalview.datamodel.SequenceFeature; import jalview.datamodel.SequenceI; import jalview.datamodel.UniprotEntry; import jalview.datamodel.UniprotFile; -import jalview.util.DBRefUtils; import jalview.ws.ebi.EBIFetchClient; import jalview.ws.seqfetcher.DbSourceProxyImpl; @@ -230,9 +229,10 @@ public class Uniprot extends DbSourceProxyImpl .get("protein sequence ID"); if (cdsId != null && cdsId.trim().length() > 0) { - dbr = new DBRefEntry(DBRefSource.EMBLCDS, DBRefSource.UNIPROT - + ":" - + dbVersion, cdsId.trim()); + // remove version + String[] vrs = cdsId.split("\\."); + dbr = new DBRefEntry(DBRefSource.EMBLCDS, vrs.length > 1 ? vrs[1] + : DBRefSource.UNIPROT + ":" + dbVersion, vrs[0]); dbRefs.add(dbr); } }