Skip to content

Commit b648e4b

Browse files
committed
bug fixes
1 parent 8f41aec commit b648e4b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

pathogenprofiler/bam.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def flagstat(self):
7777
tmpfile = str(uuid4())
7878
run_cmd(f"samtools flagstat -O json {self.bam_file} > {tmpfile}")
7979
flagstat = json.load(open(tmpfile))
80-
self.num_reads_mapped = flagstat["QC-passed reads"]["primary mapped"]
80+
self.num_reads_mapped = flagstat["QC-passed reads"]["mapped"]
8181
self.pct_reads_mapped = flagstat["QC-passed reads"]["mapped %"]
8282
return self.num_reads_mapped,self.pct_reads_mapped
8383

scripts/add_dummy_AD.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /usr/bin/env python3
22
import sys
33

44
for l in sys.stdin:

scripts/combine_vcf_variants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /usr/bin/env python3
22
from collections import defaultdict
33
import sys
44
import argparse

scripts/rename_vcf_chrom.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env python3
12
import pathogenprofiler as pp
23
import sys
34
import argparse

0 commit comments

Comments
 (0)