X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FEMBLLikeFlatFile.java;h=100fb8d2cb5bd80a10968f48b8ddf71561a4c6b8;hb=07cb43d5a1e477b16582f98519343c162d7428ef;hp=64943b2011be211787fa5eadfc474c5af601fafb;hpb=2ed4d627d3eb73a49299aad68bf719881ec4538d;p=jalview.git diff --git a/src/jalview/io/EMBLLikeFlatFile.java b/src/jalview/io/EMBLLikeFlatFile.java index 64943b2..100fb8d 100644 --- a/src/jalview/io/EMBLLikeFlatFile.java +++ b/src/jalview/io/EMBLLikeFlatFile.java @@ -83,8 +83,7 @@ public abstract class EMBLLikeFlatFile extends AlignFile /** * Truncates (if necessary) the exon intervals to match 3 times the length of - * the protein; also accepts 3 bases longer (for stop codon not included in - * protein) + * the protein(including truncation for stop codon included in exon) * * @param proteinLength * @param exon @@ -102,11 +101,9 @@ public abstract class EMBLLikeFlatFile extends AlignFile 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; }