JAL-3725 patch EMBL flat file to exclude stop codon from the mapping (for 2.11.1...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 28 Oct 2020 22:56:38 +0000 (22:56 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 28 Oct 2020 22:56:38 +0000 (22:56 +0000)
src/jalview/io/EmblFlatFile.java

index bfae4ed..21e66d2 100644 (file)
@@ -841,11 +841,9 @@ public class EmblFlatFile extends AlignFile // FileParse
     int exonLength = MappingUtils.getLength(Arrays.asList(exon));
 
     /*
-     * if exon length matches protein, or is shorter, or longer by the 
-     * length of a stop codon (3 bases), then leave it unchanged
+     * if exon length matches protein, or is shorter, then leave it unchanged
      */
-    if (expectedCdsLength >= exonLength
-            || expectedCdsLength == exonLength - 3)
+    if (expectedCdsLength >= exonLength)
     {
       return exon;
     }