JAL-2210 hack to remove EMBL from Protein crossrefs, and ENSEMBL from CDS crossers.
authorJim Procter <jprocter@issues.jalview.org>
Mon, 3 Oct 2016 08:17:05 +0000 (09:17 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 3 Oct 2016 08:17:05 +0000 (09:17 +0100)
src/jalview/analysis/CrossRef.java

index 59ba8a3..cd71bbd 100644 (file)
@@ -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;
   }