Skip to content

Commit

Permalink
update to new hts-nim mapping_quality
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
brentp committed Aug 1, 2018
1 parent 3d390f1 commit e4249bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bam_filter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ example:

for aln in bam:
ex.clear()
discard ke_set_int(ex.ke, "mapq", aln.qual.cint)
discard ke_set_int(ex.ke, "mapq", aln.mapping_quality.cint)
discard ke_set_int(ex.ke, "start", aln.start.cint)
discard ke_set_int(ex.ke, "pos", (aln.start + 1).cint)
discard ke_set_int(ex.ke, "flag", (aln.flag).cint)
Expand Down
2 changes: 1 addition & 1 deletion src/count_reads.nim
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ proc internal_count(bam:Bam, mapq:uint8, eflag:uint16, regions:TableRef[string,
continue
var lap:Lapper[region_t] = lapify(regions[chrom])
for aln in bam.querys(chrom):
if aln.qual < mapq: continue
if aln.mapping_quality < mapq: continue
if (aln.flag and eflag) != 0: continue

lap.each_seek(aln.start, aln.stop, inc_count)
Expand Down

0 comments on commit e4249bf

Please sign in to comment.