JAL-3806 more lax allowance (3 positions) for stop codon
[jalview.git] / src / jalview / datamodel / AlignedCodonFrame.java
index 6faf7a6..6ccc0fc 100644 (file)
@@ -171,8 +171,8 @@ public class AlignedCodonFrame
 
       if (length != -1)
       {
-        // add 1 to mapped length to allow for a mapped stop codon
-        if (length + 1 >= (mend - mstart + 1))
+        // add 3 to mapped length to allow for a mapped stop codon
+        if (length + 3 >= (mend - mstart + 1))
         {
           return true;
         }