JAL-1705 xref ENST to correct (ENSP) accession id
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 16 Mar 2016 14:11:54 +0000 (14:11 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 16 Mar 2016 14:11:54 +0000 (14:11 +0000)
src/jalview/ext/ensembl/EnsemblSeqProxy.java

index b4c708d..59f5941 100644 (file)
@@ -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);
         
         /*