Skip to content

Commit

Permalink
Merge pull request #83 from nmendiboure/dev
Browse files Browse the repository at this point in the history
Small fix stats.py
  • Loading branch information
cmdoret authored May 16, 2024
2 parents 6521756 + 4a24a06 commit 9f04d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hicstuff/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_pipeline_stats(log_file):

# 2. Number (% of total) of (un)mapped reads
tot_mapped = [s for s in log_lines if re.search("mapped with Q ", s)][0]
tot_mapped = re.sub(".*Q >= 30 \(", "", tot_mapped)
tot_mapped = re.sub(".*Q >= \d+ \(", "", tot_mapped)
tot_mapped = re.sub("/.*", "", tot_mapped)
tot_mapped = int(float(tot_mapped))
tot_unmapped = fastq_pairs*2 - tot_mapped
Expand Down

0 comments on commit 9f04d34

Please sign in to comment.