From b7e51870168c54685e7cc6f7307400ecf8ddf794 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 27 Apr 2014 16:16:41 +0100 Subject: [PATCH] JAL-952 resolve colour scheme as 'RNA Helices' --- src/jalview/schemes/ColourSchemeProperty.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/jalview/schemes/ColourSchemeProperty.java b/src/jalview/schemes/ColourSchemeProperty.java index c655fe2..bb961d3 100755 --- a/src/jalview/schemes/ColourSchemeProperty.java +++ b/src/jalview/schemes/ColourSchemeProperty.java @@ -86,6 +86,8 @@ public class ColourSchemeProperty public static final int COVARIATION = 14; public static final int TCOFFEE = 15; + + public static final int RNAHELIX = 16; /** * index of first colourscheme (includes 'None') @@ -167,6 +169,10 @@ public class ColourSchemeProperty { ret = PURINEPYRIMIDINE; } + else if (name.equalsIgnoreCase("RNA Helices")) + { + ret = RNAHELIX; + } // else if (name.equalsIgnoreCase("Covariation")) // { // ret = COVARIATION; @@ -240,6 +246,10 @@ public class ColourSchemeProperty { index = TCOFFEE; } + else if (cs instanceof RNAHelicesColour) + { + index = RNAHELIX; + } /* * else if (cs instanceof CovariationColourScheme) { index = COVARIATION; } */ @@ -334,6 +344,10 @@ public class ColourSchemeProperty ret = "T-Coffee Scores"; break; + case RNAHELIX: + ret = "RNA Helices"; + + break; /* * case COVARIATION: ret = "Covariation"; * @@ -486,6 +500,10 @@ public class ColourSchemeProperty case TCOFFEE: cs = new TCoffeeColourScheme(coll); break; + + case RNAHELIX: + cs = new RNAHelicesColour(coll); + break; // case COVARIATION: // cs = new CovariationColourScheme(annotation); -- 1.7.10.2