From: gmungoc Date: Mon, 1 Feb 2016 12:54:13 +0000 (+0000) Subject: JAL-1705 set Uniprot xref as 'source dbref' (for SIFTS mapping) X-Git-Tag: Release_2_10_0~296^2~42 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3e3c9f8a78a2f8378b01b68900d9efb4ab95c7e6;p=jalview.git JAL-1705 set Uniprot xref as 'source dbref' (for SIFTS mapping) --- diff --git a/src/jalview/ext/ensembl/EnsemblSeqProxy.java b/src/jalview/ext/ensembl/EnsemblSeqProxy.java index 744aa49..8c1e972 100644 --- a/src/jalview/ext/ensembl/EnsemblSeqProxy.java +++ b/src/jalview/ext/ensembl/EnsemblSeqProxy.java @@ -312,6 +312,13 @@ public abstract class EnsemblSeqProxy extends EnsemblRestClient for (DBRefEntry xref : xrefs) { seq.addDBRef(xref); + /* + * Save any Uniprot xref to be the reference for SIFTS mapping + */ + if (DBRefSource.UNIPROT.equals(xref.getSource())) + { + seq.setSourceDBRef(xref); + } } }