Skip to content

Commit

Permalink
cast min_mapq to str instead of bytes (#912)
Browse files Browse the repository at this point in the history
Fix to re-enable `coverage -q/--min-mapq` option.
  • Loading branch information
rach-kennedy authored Sep 22, 2024
1 parent 453d70c commit b873b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cnvlib/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def bedcov(bed_fname, bam_fname, min_mapq, fasta=None):
# Count bases in each region; exclude low-MAPQ reads
cmd = [bed_fname, bam_fname]
if min_mapq and min_mapq > 0:
cmd.extend(["-Q", bytes(min_mapq)])
cmd.extend(["-Q", str(min_mapq)])
if fasta:
cmd.extend(["--reference", fasta])
try:
Expand Down

0 comments on commit b873b86

Please sign in to comment.