Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan committed Mar 23, 2024
1 parent be59298 commit 55d416b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion tbprofiler/docx.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
from docxtpl import DocxTemplate
from collections import defaultdict
import datetime


def sanitize(d):
Expand Down
2 changes: 1 addition & 1 deletion tbprofiler/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_qc(self):
else:
text = "Not available for VCF input"
return text

def get_missing_pos(self,sep="\t"):
if isinstance(self.qc, (BamQC,)):
text = dict_list2text(self.qc.missing_positions,mappings={"pos":"Genome Position","annotation.gene":"Gene","annotation.variant":"Variant", "depth":"Depth"},sep=sep)
Expand Down
4 changes: 2 additions & 2 deletions tbprofiler/phylo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import argparse

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


if args.vcf:
Expand Down Expand Up @@ -54,7 +54,7 @@ def generate_low_dp_mask(bam: str,ref: str,outfile: str,min_dp: int = 10) -> Non
for p in range(length):
if (chrom,p) not in ok_positions:
missing_positions.append((chrom,p))

# write missing positions to bed file
with open(outfile,"w") as O:
for x in missing_positions:
Expand Down
2 changes: 1 addition & 1 deletion tbprofiler/reformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def create_resistance_result(
main_lineage, sub_lineage = get_main_lineage(lineage)
drtype = get_drtypes(dr_variants)
pipeline = Pipeline(
software_version=args.version,
software_version=args.version,
db_version=args.conf['version'],
software=[{'process':k,'software':v} for k,v in shared_dict.items()]
)
Expand Down

0 comments on commit 55d416b

Please sign in to comment.