Skip to content

Commit

Permalink
adding in depth to txt output
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan committed Jun 21, 2024
1 parent 67ac8f8 commit 3428202
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tbprofiler/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def write_text(
summary_table = pp.get_dr_summary(result.dr_variants,conf)
text_strings["notes"] = "\n".join(result.notes)
text_strings["dr_report"] = pp.dict_list2text(summary_table,sep=sep)
text_strings["dr_var_report"] = pp.object_list2text(result.dr_variants,mappings={"pos":"Genome Position","gene_id":"Locus Tag",'gene_name':'Gene name',"type":"Variant type","change":"Change","freq":"Estimated fraction","drugs.drug":"Drug","drugs.confidence":"Confidence","drugs.comment":"Comment"},sep=sep)
text_strings["other_var_report"] = pp.object_list2text(result.other_variants,mappings={"pos":"Genome Position","gene_id":"Locus Tag",'gene_name':'Gene name',"type":"Variant type","change":"Change","freq":"Estimated fraction","annotation.drug":"Gene associated drug","annotation.confidence":"Confidence","annotation.comment":"Comment"},sep=sep)
text_strings["qc_fail_var_report"] = pp.object_list2text(result.qc_fail_variants,mappings={"pos":"Genome Position","gene_id":"Locus Tag",'gene_name':'Gene name',"type":"Variant type","change":"Change","freq":"Estimated fraction","annotation.drug":"Gene associated drug","annotation.confidence":"Confidence","annotation.comment":"Comment"},sep=sep)
text_strings["dr_var_report"] = pp.object_list2text(result.dr_variants,mappings={"pos":"Genome Position","gene_id":"Locus Tag",'gene_name':'Gene name',"type":"Variant type","change":"Change","depth": "Depth","freq":"Estimated fraction","drugs.drug":"Drug","drugs.confidence":"Confidence","drugs.comment":"Comment"},sep=sep)
text_strings["other_var_report"] = pp.object_list2text(result.other_variants,mappings={"pos":"Genome Position","gene_id":"Locus Tag",'gene_name':'Gene name',"type":"Variant type","change":"Change","depth": "Depth","freq":"Estimated fraction","annotation.drug":"Gene associated drug","annotation.confidence":"Confidence","annotation.comment":"Comment"},sep=sep)
text_strings["qc_fail_var_report"] = pp.object_list2text(result.qc_fail_variants,mappings={"pos":"Genome Position","gene_id":"Locus Tag",'gene_name':'Gene name',"type":"Variant type","change":"Change","depth": "Depth","freq":"Estimated fraction","annotation.drug":"Gene associated drug","annotation.confidence":"Confidence","annotation.comment":"Comment"},sep=sep)
text_strings["coverage_report"] = result.get_qc()
text_strings['lineage_report'] = pp.object_list2text(result.lineage,mappings={"lineage":"Lineage","fraction":"Fraction","family":"Family","rd":"rd"},sep=sep)#result.lineage)
text_strings['strain'] = result.sub_lineage
Expand Down

0 comments on commit 3428202

Please sign in to comment.