JAL-1013 - employ index parameter rather than hardcode number for gaps in DNA or...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 6 Sep 2012 14:17:35 +0000 (15:17 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 6 Sep 2012 14:17:35 +0000 (15:17 +0100)
src/jalview/analysis/AlignSeq.java

index bb4796f..5d28fc3 100755 (executable)
@@ -382,13 +382,13 @@ public class AlignSeq
     {
       intToStr = pep;
       charToInt = ResidueProperties.aaIndex;
-      defInt = 23;
+      defInt = ResidueProperties.maxProteinIndex;
     }
     else if (type.equals(AlignSeq.DNA))
     {
       intToStr = dna;
       charToInt = ResidueProperties.nucleotideIndex;
-      defInt = 4;
+      defInt = ResidueProperties.maxNucleotideIndex;
     }
     else
     {