From 0463fb03eb6a32ce4d39ab7c146b82549c5a5e0e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 3 Oct 2016 09:17:05 +0100 Subject: [PATCH] JAL-2210 hack to remove EMBL from Protein crossrefs, and ENSEMBL from CDS crossers. --- src/jalview/analysis/CrossRef.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; } -- 1.7.10.2