git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b96accb
)
JAL-1705 set Uniprot xref as 'source dbref' (for SIFTS mapping)
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 1 Feb 2016 12:54:13 +0000
(12:54 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 1 Feb 2016 12:54:13 +0000
(12:54 +0000)
src/jalview/ext/ensembl/EnsemblSeqProxy.java
patch
|
blob
|
history
diff --git
a/src/jalview/ext/ensembl/EnsemblSeqProxy.java
b/src/jalview/ext/ensembl/EnsemblSeqProxy.java
index
744aa49
..
8c1e972
100644
(file)
--- 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);
+ }
}
}