Skip to content

Commit

Permalink
improve internal deletion detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Jul 4, 2023
1 parent ff368bd commit fda4d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intact/intact.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def get_indel_impact(alignment):
# Max deletion allowed in ORF exceeded
if deletions > e.deletion_tolerence:

if "*" in best_match.aminoseq[1:-1]:
if "*" in best_match.aminoseq[:(-e.deletion_tolerence // 3)]:
errors.append(IntactnessError(
sequence.id, INTERNALSTOP_ERROR,
("Smaller " if is_small else "")
Expand Down

0 comments on commit fda4d64

Please sign in to comment.