From f133411520d32ce26f766f8157c8d10139920140 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 21 Jan 2005 18:34:06 +0000 Subject: [PATCH] Nucleotide colours added --- src/jalview/schemes/ResidueProperties.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/jalview/schemes/ResidueProperties.java b/src/jalview/schemes/ResidueProperties.java index aa0297e..0a2c43e 100755 --- a/src/jalview/schemes/ResidueProperties.java +++ b/src/jalview/schemes/ResidueProperties.java @@ -28,6 +28,7 @@ public class ResidueProperties { public static Hashtable aaHash = new Hashtable(); // stores the number value of the aa public static Hashtable aa3Hash = new Hashtable(); public static Hashtable aa2Triplet = new Hashtable(); + public static Hashtable nucleotideHash = new Hashtable(); static { aaHash.put("A", new Integer(0)); @@ -59,6 +60,14 @@ public class ResidueProperties { aaHash.put(" ", new Integer(23)); } + static { + nucleotideHash.put("A", new Integer(0)); + nucleotideHash.put("C", new Integer(1)); + nucleotideHash.put("G", new Integer(2)); + nucleotideHash.put("T", new Integer(3)); + nucleotideHash.put("U", new Integer(4)); + } + // These numbers should correspond to the indices in the Color hashes public static Hashtable aaSpecialsHash = new Hashtable(); static { @@ -168,6 +177,14 @@ public class ResidueProperties { Color.white // . }; + public static Color[] nucleotide = { + new Color(100,247,63), // A + new Color(255,179,64), // C + new Color(235,65,60), // G + new Color(60,136,238), // T + new Color(60,136,238) // U + }; + public static Color[] color = { Color.pink, // A midBlue, // R -- 1.7.10.2