From afa061b7ecd1bc011096d9f2879448185874fcd3 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 28 Jun 2019 14:17:54 +0100 Subject: [PATCH] JAL-3330 apply Ensembl feature settings when showing crossrefs for alignment that looks like it was from Ensembl --- src/jalview/gui/CrossRefAction.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/jalview/gui/CrossRefAction.java b/src/jalview/gui/CrossRefAction.java index 673bcc0..9ad6596 100644 --- a/src/jalview/gui/CrossRefAction.java +++ b/src/jalview/gui/CrossRefAction.java @@ -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) -- 1.7.10.2