JAL-3330 apply Ensembl feature settings when showing crossrefs for alignment that... bug/JAL-3330_backpropagateEnsemblFeatureColours
authorJim Procter <jprocter@issues.jalview.org>
Fri, 28 Jun 2019 13:17:54 +0000 (14:17 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 28 Jun 2019 13:17:54 +0000 (14:17 +0100)
src/jalview/gui/CrossRefAction.java

index 673bcc0..9ad6596 100644 (file)
@@ -111,6 +111,13 @@ public class CrossRefAction implements Runnable
       FeatureSettingsModelI featureColourScheme = new SequenceFetcher()
               .getFeatureColourScheme(source);
 
+      if (dna && AlignmentUtils.looksLikeEnsembl(alignment))
+      {
+        // override default featureColourScheme so products have Ensembl variant colours
+        featureColourScheme = new SequenceFetcher()
+                .getFeatureColourScheme(DBRefSource.ENSEMBL);
+      }
+
       AlignmentI xrefsAlignment = makeCrossReferencesAlignment(dataset,
               xrefs);
       if (!dna)