[hg] galaxy 2749: Changing an 'and' to 'or' in SNP mutate codon ...
details: http://www.bx.psu.edu/hg/galaxy/rev/822cae6071c1 changeset: 2749:822cae6071c1 user: Dan Blankenberg <dan@bx.psu.edu> date: Tue Sep 22 11:40:41 2009 -0400 description: Changing an 'and' to 'or' in SNP mutate codon tool error checking. 1 file(s) affected in this change: tools/evolution/mutate_snp_codon.py diffs (12 lines): diff -r 9e8901230940 -r 822cae6071c1 tools/evolution/mutate_snp_codon.py --- a/tools/evolution/mutate_snp_codon.py Tue Sep 22 11:37:41 2009 -0400 +++ b/tools/evolution/mutate_snp_codon.py Tue Sep 22 11:40:41 2009 -0400 @@ -87,7 +87,7 @@ #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
participants (1)
-
Nate Coraor