Skip to content

Commit

Permalink
fixed percentage unmapped in filter_reads.py (#32)
Browse files Browse the repository at this point in the history
percentage unmapped was always zero due. Fixed.
  • Loading branch information
cfblaeb authored Feb 27, 2024
1 parent aacdf18 commit a95d573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/umi_amplicon_tools/filter_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def filter_reads(args):
logging.info("Reads found: {}".format(n_total))
unmapped_perc = 0
if n_total:
unmapped_perc = int(100.0 * unmapped_perc / n_total)
unmapped_perc = int(100.0 * n_unmapped / n_total)

logging.info("Reads unmapped: {} ({}%)".format(n_unmapped, unmapped_perc))

Expand Down

0 comments on commit a95d573

Please sign in to comment.