Allow for DNA alignments in imgMap
authoramwaterhouse <Andrew Waterhouse>
Tue, 6 Dec 2005 17:42:28 +0000 (17:42 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 6 Dec 2005 17:42:28 +0000 (17:42 +0000)
src/jalview/gui/AlignmentPanel.java

index e3bc620..af24c9f 100755 (executable)
@@ -921,9 +921,14 @@ public class AlignmentPanel extends GAlignmentPanel
           for(res =0; res<alwidth; res++)\r
           {\r
             text = new StringBuffer();\r
-            Object obj = ResidueProperties.aa2Triplet.get(\r
+            Object obj = null;\r
+            if(av.alignment.isNucleotide())\r
+              obj = ResidueProperties.nucleotideName.get(seq.getCharAt(res)+"" );\r
+            else\r
+              obj = ResidueProperties.aa2Triplet.get(\r
                     seq.getCharAt(res) + "");\r
-            if (obj == null)\r
+\r
+              if (obj == null)\r
                   continue;\r
 \r
             String triplet = obj.toString();\r