We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e33a61 commit 73f2461Copy full SHA for 73f2461
pathogenprofiler/bam.py
@@ -3,6 +3,7 @@
3
from collections import defaultdict
4
import json
5
from uuid import uuid4
6
+import os
7
8
class bam:
9
"""
@@ -79,6 +80,7 @@ def flagstat(self):
79
80
flagstat = json.load(open(tmpfile))
81
self.num_reads_mapped = flagstat["QC-passed reads"]["mapped"]
82
self.pct_reads_mapped = flagstat["QC-passed reads"]["mapped %"]
83
+ os.remove(tmpfile)
84
return self.num_reads_mapped,self.pct_reads_mapped
85
86
def get_median_coverage(self):
0 commit comments