Use aa index for aboveThreshold as well as colour index
authoramwaterhouse <Andrew Waterhouse>
Thu, 18 Aug 2005 09:20:07 +0000 (09:20 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 18 Aug 2005 09:20:07 +0000 (09:20 +0000)
src/jalview/schemes/ResidueColourScheme.java

index 71f12c1..785d22d 100755 (executable)
@@ -94,9 +94,11 @@ public class ResidueColourScheme implements ColourSchemeI
      */\r
     public Color findColour(String s, int j)\r
     {\r
-        if ((threshold == 0) || aboveThreshold(s, j))\r
+        int index = ((Integer) (ResidueProperties.aaHash.get(s))).intValue();\r
+\r
+        if ((threshold == 0) || aboveThreshold(ResidueProperties.aa[index], j))\r
         {\r
-            return colors[((Integer) (ResidueProperties.aaHash.get(s))).intValue()];\r
+            return colors[index];\r
         }\r
         else\r
         {\r