From: Jim Procter Date: Mon, 3 Oct 2016 08:17:05 +0000 (+0100) Subject: JAL-2210 hack to remove EMBL from Protein crossrefs, and ENSEMBL from CDS crossers. X-Git-Tag: Release_2_10_0~20^2~9 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0463fb03eb6a32ce4d39ab7c146b82549c5a5e0e;p=jalview.git JAL-2210 hack to remove EMBL from Protein crossrefs, and ENSEMBL from CDS crossers. --- diff --git a/src/jalview/analysis/CrossRef.java b/src/jalview/analysis/CrossRef.java index 59ba8a3..cd71bbd 100644 --- a/src/jalview/analysis/CrossRef.java +++ b/src/jalview/analysis/CrossRef.java @@ -24,6 +24,7 @@ import jalview.datamodel.AlignedCodonFrame; import jalview.datamodel.Alignment; import jalview.datamodel.AlignmentI; import jalview.datamodel.DBRefEntry; +import jalview.datamodel.DBRefSource; import jalview.datamodel.Mapping; import jalview.datamodel.Sequence; import jalview.datamodel.SequenceFeature; @@ -106,6 +107,16 @@ public class CrossRef findXrefSourcesForSequence(seq, dna, sources); } } + sources.remove(DBRefSource.EMBL); // hack to prevent EMBL xrefs resulting in + // redundant datasets + if (dna) + { + sources.remove(DBRefSource.ENSEMBL); // hack to prevent Ensembl and + // EnsemblGenomes xref option shown + // from cdna panel + sources.remove(DBRefSource.ENSEMBLGENOMES); + } + // redundant datasets return sources; }