Proceed with upperCase residue
[jalview.git] / src / jalview / schemes / Blosum62ColourScheme.java
index 356e3fe..4b1bf15 100755 (executable)
@@ -31,13 +31,19 @@ public class Blosum62ColourScheme
 \r
   public Color findColour(String s, int j)\r
   {\r
+    char res = s.charAt(0);\r
+    if ('a' <= res && res <= 'z' )\r
+    {\r
+       s = Character.toString( res -= ('a' - 'A') );\r
+    }\r
+\r
+\r
     if ( (threshold != 0) && !aboveThreshold(s, j))\r
     {\r
       return Color.white;\r
     }\r
 \r
-\r
-    if (!jalview.util.Comparison.isGap( (s.charAt(0))))\r
+    if (!jalview.util.Comparison.isGap( res ))\r
     {\r
       String max = (String) consensus[j].get("maxResidue");\r
 \r