From 4142fc75fe6224800b3670cc9a1ddecbd352c6ce Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Tue, 22 Sep 2009 11:40:41 -0400 Subject: [PATCH] Changing an 'and' to 'or' in SNP mutate codon tool error checking. --- tools/evolution/mutate_snp_codon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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