Hidden Rows
[jalview.git] / src / jalview / schemes / ResidueProperties.java
index fbaab81..d25707f 100755 (executable)
@@ -156,9 +156,10 @@ public class ResidueProperties
     aa3Hash.put("TRP", new Integer(17));\r
     aa3Hash.put("TYR", new Integer(18));\r
     aa3Hash.put("VAL", new Integer(19));\r
-    aa3Hash.put("B", new Integer(20));\r
-    aa3Hash.put("Z", new Integer(21));\r
-    aa3Hash.put("X", new Integer(22));\r
+    // IUB Nomenclature for ambiguous peptides\r
+    aa3Hash.put("ASX", new Integer(20)); // "B";\r
+    aa3Hash.put("GLX", new Integer(21)); // X\r
+    aa3Hash.put("XAA", new Integer(22));// X unknown\r
     aa3Hash.put("-", new Integer(23));\r
     aa3Hash.put("*", new Integer(23));\r
     aa3Hash.put(".", new Integer(23));\r
@@ -1134,20 +1135,6 @@ public class ResidueProperties
     propHash.put("polar", polar);\r
   }\r
 \r
-  public static Hashtable chainColours = new Hashtable();\r
-\r
-  static\r
-  {\r
-    chainColours.put("A", Color.red);\r
-    chainColours.put("B", Color.orange);\r
-    chainColours.put("C", Color.yellow);\r
-    chainColours.put("D", Color.green);\r
-    chainColours.put("E", Color.cyan);\r
-    chainColours.put("F", Color.blue);\r
-    chainColours.put("G", Color.magenta);\r
-    chainColours.put("H", Color.pink);\r
-  }\r
-\r
   private ResidueProperties()\r
   {\r
   }\r
@@ -1233,7 +1220,7 @@ public class ResidueProperties
       String key = (String) e.nextElement();\r
       Vector tmp = (Vector) codonHash.get(key);\r
 \r
-      if (tmp.contains(codon))\r
+      if (tmp.contains(codon.toUpperCase()))\r
       {\r
         return key;\r
       }\r
@@ -1241,9 +1228,4 @@ public class ResidueProperties
 \r
     return null;\r
   }\r
-\r
-  public static Hashtable getChainColours()\r
-  {\r
-    return chainColours;\r
-  }\r
 }\r