From ce9fa1ea623c7acc003e9136233dbfd5605034cb Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 16 Mar 2016 14:11:54 +0000 Subject: [PATCH] JAL-1705 xref ENST to correct (ENSP) accession id --- src/jalview/ext/ensembl/EnsemblSeqProxy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/ensembl/EnsemblSeqProxy.java b/src/jalview/ext/ensembl/EnsemblSeqProxy.java index b4c708d..59f5941 100644 --- a/src/jalview/ext/ensembl/EnsemblSeqProxy.java +++ b/src/jalview/ext/ensembl/EnsemblSeqProxy.java @@ -283,9 +283,10 @@ public abstract class EnsemblSeqProxy extends EnsemblRestClient // clunky: ensure Uniprot xref if we have one is on mapped sequence SequenceI ds = proteinSeq.getDatasetSequence(); ds.setSourceDBRef(proteinSeq.getSourceDBRef()); + Mapping map = new Mapping(ds, mapList); DBRefEntry dbr = new DBRefEntry(getDbSource(), getDbVersion(), - accId, map); + proteinSeq.getName(), map); querySeq.getDatasetSequence().addDBRef(dbr); /* -- 1.7.10.2