Skip to content

Commit

Permalink
Merge pull request #32 from /issues/31-fix-low-qual-bug
Browse files Browse the repository at this point in the history
Fix bug in bam parsing that misprocessed low qual mutants (resolves #31)
  • Loading branch information
arkal authored Nov 7, 2017
2 parents 03eca0f + 7b9874c commit 98522b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transgene.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_alignment_info(rna_bam, dna_bam, vcf_record):
for read in pileup.pileups:
if not (read.is_refskip or read.is_del):
base = read.alignment.seq[read.query_position]
if ord(read.alignment.qual[read.query_position]) >= 30:
if ord(read.alignment.qual[read.query_position]) >= 63: # (33PHRED + 30 QUAL)
output_counts_[base]['counts'] += 1
if read.alignment.is_read2:
output_counts_[base]['r'] += 1
Expand Down

0 comments on commit 98522b0

Please sign in to comment.