diff --git a/tools/evolution/mutate_snp_codon.py b/tools/evolution/mutate_snp_codon.py index a8c8cce0917..c62a043034d 100644 --- a/tools/evolution/mutate_snp_codon.py +++ b/tools/evolution/mutate_snp_codon.py @@ -87,7 +87,7 @@ def main(): #Extract DNA on neg strand codons will have positions reversed relative to interval positions; i.e. position 0 == position 2 if codon_strand == '-': offset = 2 - offset - if offset < 0 and offset > 2: #assert offset >= 0 and offset <= 2, ValueError( 'Impossible offset determined: %s' % offset ) + if offset < 0 or offset > 2: #assert offset >= 0 and offset <= 2, ValueError( 'Impossible offset determined: %s' % offset ) #codon and snp do not overlap skipped_lines += 1 errors[ 'no_overlap' ]['count'] += 1