Skip to content

Commit

Permalink
io.py
Browse files Browse the repository at this point in the history
bqual = read.alignment.query_qualities[qpos] added
  • Loading branch information
yil8 authored Jun 30, 2016
1 parent ae1585e commit 634ff3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyloh/preprocess/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,20 @@ def _parse_pileup_column(self, pileup_column):
if read.is_del:
continue

if hasattr(read, 'qpos') == True:
qpos = read.qpos
elif hasattr(read, 'query_position') == True:
if hasattr(read, 'query_position') == True:
qpos = read.query_position
bqual = read.alignment.query_qualities[qpos]
elif hasattr(read, 'qpos') == True:
qpos = read.qpos
bqual = ord(read.alignment.qual[qpos]) - ascii_offset
else:
raise Exception("Error in pysam qpos/query_position.")

mqual = read.alignment.mapq

if mqual < self.min_mqual:
continue

bqual = ord(read.alignment.qual[qpos]) - ascii_offset


if bqual < self.min_bqual:
continue

Expand Down

0 comments on commit 634ff3d

Please sign in to comment.