Skip to content

Commit

Permalink
Fix indent on pctMapped
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmatters committed Sep 9, 2020
1 parent bbb4e95 commit 6313a82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hybpiper_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def enrich_efficiency_bwa(bamfilename):
flagstat_results = [line for line in unpaired_child.stdout.readlines()]
numReads += float(flagstat_results[0].split()[0])
mappedReads += float(flagstat_results[4].split()[0])
try:
pctMapped = mappedReads/numReads
except ZeroDivisionError:
pctMapped = 0.0
try:
pctMapped = mappedReads/numReads
except ZeroDivisionError:
pctMapped = 0.0
return str(int(numReads)),str(int(mappedReads)),"{0:.3f}".format(pctMapped)

def recovery_efficiency(name):
Expand Down

0 comments on commit 6313a82

Please sign in to comment.