JAL-845 map 'STOP' codons correctly
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 18 Mar 2015 20:24:48 +0000 (20:24 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 18 Mar 2015 20:24:48 +0000 (20:24 +0000)
src/jalview/analysis/AlignmentUtils.java

index 337372d..4576881 100644 (file)
@@ -445,7 +445,7 @@ public class AlignmentUtils
        * ? allow X in protein to match untranslatable in dna ?
        */
       final char aaRes = aaSeqChars[aaResidue];
-      if (translated == null && aaRes == 'X')
+      if ((translated == null || "STOP".equals(translated)) && aaRes == 'X')
       {
         continue;
       }