Skip to content

Commit

Permalink
fix mapped reads in runmetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelNicaise authored Apr 13, 2022
1 parent 3dcf6d5 commit 64fbfec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/runmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_total_mapped_duplicate_reads(sampleDir, sample, aligner):
for l in f:
if l.rstrip().endswith("in total (QC-passed reads + QC-failed reads)"):
stats["total"] = int(l.split(" ")[0])
elif "mapped" in l and "primary mapped" not in l and "different chr" not in l:
elif "mapped" in l and "primary mapped" not in l and "different chr" not in l and "mate mapped" not in l:
stats["mapped"] = int(l.split(" ")[0])
elif l.rstrip().endswith("duplicates") and "primary duplicates" not in l:
stats["dup"] = int(l.split(" ")[0])
Expand Down

0 comments on commit 64fbfec

Please sign in to comment.