From 3e3c9f8a78a2f8378b01b68900d9efb4ab95c7e6 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 1 Feb 2016 12:54:13 +0000 Subject: [PATCH] JAL-1705 set Uniprot xref as 'source dbref' (for SIFTS mapping) --- src/jalview/ext/ensembl/EnsemblSeqProxy.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); + } } } -- 1.7.10.2