Skip to content

Commit 55d416b

Browse files
committed
small updates
1 parent be59298 commit 55d416b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

tbprofiler/docx.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
from docxtpl import DocxTemplate
33
from collections import defaultdict
4-
import datetime
54

65

76
def sanitize(d):

tbprofiler/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def get_qc(self):
111111
else:
112112
text = "Not available for VCF input"
113113
return text
114-
114+
115115
def get_missing_pos(self,sep="\t"):
116116
if isinstance(self.qc, (BamQC,)):
117117
text = dict_list2text(self.qc.missing_positions,mappings={"pos":"Genome Position","annotation.gene":"Gene","annotation.variant":"Variant", "depth":"Depth"},sep=sep)

tbprofiler/phylo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import argparse
1010

1111
def usher_add_sample(args: argparse.Namespace) -> None:
12-
logging.info(f"Adding sample to phylogeny")
12+
logging.info("Adding sample to phylogeny")
1313

1414

1515
if args.vcf:
@@ -54,7 +54,7 @@ def generate_low_dp_mask(bam: str,ref: str,outfile: str,min_dp: int = 10) -> Non
5454
for p in range(length):
5555
if (chrom,p) not in ok_positions:
5656
missing_positions.append((chrom,p))
57-
57+
5858
# write missing positions to bed file
5959
with open(outfile,"w") as O:
6060
for x in missing_positions:

tbprofiler/reformat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def create_resistance_result(
225225
main_lineage, sub_lineage = get_main_lineage(lineage)
226226
drtype = get_drtypes(dr_variants)
227227
pipeline = Pipeline(
228-
software_version=args.version,
228+
software_version=args.version,
229229
db_version=args.conf['version'],
230230
software=[{'process':k,'software':v} for k,v in shared_dict.items()]
231231
)

0 commit comments

Comments
 (0)