Nucleotide colours added
authoramwaterhouse <Andrew Waterhouse>
Fri, 21 Jan 2005 18:34:06 +0000 (18:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 21 Jan 2005 18:34:06 +0000 (18:34 +0000)
src/jalview/schemes/ResidueProperties.java

index aa0297e..0a2c43e 100755 (executable)
@@ -28,6 +28,7 @@ public class ResidueProperties {
   public static Hashtable aaHash = new Hashtable();  // stores the number value of the aa\r
   public static Hashtable aa3Hash = new Hashtable();\r
   public static Hashtable aa2Triplet = new Hashtable();\r
+  public static Hashtable nucleotideHash = new Hashtable();\r
 \r
   static {\r
     aaHash.put("A", new Integer(0));\r
@@ -59,6 +60,14 @@ public class ResidueProperties {
     aaHash.put(" ", new Integer(23));\r
   }\r
 \r
+  static {\r
+    nucleotideHash.put("A", new Integer(0));\r
+    nucleotideHash.put("C", new Integer(1));\r
+    nucleotideHash.put("G", new Integer(2));\r
+    nucleotideHash.put("T", new Integer(3));\r
+    nucleotideHash.put("U", new Integer(4));\r
+  }\r
+\r
   // These numbers should correspond to the indices in the Color hashes\r
   public static Hashtable aaSpecialsHash = new Hashtable();\r
   static {\r
@@ -168,6 +177,14 @@ public class ResidueProperties {
     Color.white          // .\r
   };\r
 \r
+  public static Color[] nucleotide = {\r
+      new Color(100,247,63),          // A\r
+      new Color(255,179,64),          // C\r
+      new Color(235,65,60),           // G\r
+      new Color(60,136,238),          // T\r
+      new Color(60,136,238)           // U\r
+  };\r
+\r
   public static Color[] color = {\r
     Color.pink,          // A\r
     midBlue,             // R\r