From 56bc65e4a83ab45cb98a37b60f0d547bd6ae9a71 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 3 Oct 2016 09:18:03 +0100 Subject: [PATCH] JAL-2210 JAL-2232 remove version number from ENACDS excession --- src/jalview/ws/dbsources/Uniprot.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } -- 1.7.10.2