Changing an 'and' to 'or' in SNP mutate codon tool error checking.

This commit is contained in:
Daniel Blankenberg
2009-09-22 11:40:41 -04:00
parent 97297d4e3a
commit 4142fc75fe
+1 -1
View File
@@ -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