todo and disable selection sharing between views on same alignment
[jalview.git] / src / jalview / schemes / ResidueProperties.java
index a53b95f..48a9272 100755 (executable)
@@ -101,7 +101,7 @@ public class ResidueProperties
     nucleotideIndex = new int[255];
     for (int i = 0; i < 255; i++)
     {
-      nucleotideIndex[i] = -1;
+      nucleotideIndex[i] = 10; // non-nucleotide symbols are all non-gap gaps.
     }
 
     nucleotideIndex['A'] = 0;
@@ -280,7 +280,13 @@ public class ResidueProperties
       new Color(255, 179, 64), // C
       new Color(235, 65, 60), // G
       new Color(60, 136, 238), // T
-      new Color(60, 136, 238) // U
+      new Color(60, 136, 238), // U
+  Color.white, // I
+  Color.white, // X
+  Color.white, // R
+  Color.white, // Y
+  Color.white, // N
+  Color.white, // Gap
   };
 
   // Zappo
@@ -504,14 +510,27 @@ public class ResidueProperties
     ssHash.put("I", Color.pink);
     ssHash.put("B", Color.yellow);
   }
-
+/*      new Color(60, 136, 238), // U
+  Color.white, // I
+  Color.white, // X
+  Color.white, // R
+  Color.white, // Y
+  Color.white, // N
+  Color.white, // Gap
+*/
   static final int[][] DNA =
   {
-  { 5, -4, -4, -4, 1 }, // C
-      { -4, 5, -4, -4, 1 }, // T
-      { -4, -4, 5, -4, 1 }, // A
-      { -4, -4, -4, 5, 1 }, // G
-      { 1, 1, 1, 1, 1 }, // -
+  { 10, -8, -8, -8, 1, 0  ,0  ,0  ,0  ,0 ,1 }, // C
+  { -8, 10, -8, -8, 1, 0  ,0  ,0  ,0  ,0 ,1 }, // T
+  { -8, -8, 10, -8, 1, 0  ,0  ,0  ,0  ,0 ,1 }, // A
+  { -8, -8, -8, 10, 1, 0  ,0  ,0  ,0  ,0 ,1 }, // G
+  { 1,   1,  1, 1, 10,0  ,0  ,0  ,0  ,0 ,1 }, // -
+  { 1,   1,  1, 1, 1 ,10 ,0  ,0  ,0  ,0 ,1 }, // -
+  { 1,   1,  1, 1, 1 ,0  ,10 ,0  ,0  ,0 ,1 }, // -
+  { 1,   1,  1, 1, 1 ,0  ,0  ,10 ,0  ,0 ,1 }, // -
+  { 1,   1,  1, 1, 1 ,0  ,0  ,0  ,10 ,0 ,1 }, // -
+  { 1,   1,  1, 1, 1 ,0  ,0  ,0  ,0 ,10 ,1 }, // -
+  { 1,   1,  1, 1, 1 ,1  ,1  ,1  ,1  ,1 ,1 }, // -
   };
   /**
    * register matrices in list