File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ rule all:
1313 input :
1414 get_qc_sequencing_plots ,
1515 get_qc_analysis_plots ,
16- get_qc_reports
16+ get_qc_reports ,
17+ get_recurrent_heatmap_plot
Original file line number Diff line number Diff line change @@ -142,7 +142,10 @@ rule make_sample_qc_summary:
142142 alleles = get_run_alleles ,
143143 samplecoverage = "qc_sequencing/{sample}.per_base_coverage.bed" ,
144144 samplevariants = get_variants ,
145- sampleconsensus = get_consensus
145+ sampleconsensus = get_consensus ,
146+ lineagereport = get_lineage_report ,
147+ aa_table = "qc_annotation/{sample}_aa_table.tsv" ,
148+ watch = get_watch_variants_report
146149 output :
147150 "qc_analysis/{sample}.summary.qc.tsv"
148151 params :
@@ -157,6 +160,9 @@ rule make_sample_qc_summary:
157160 --indel \
158161 --consensus {input.sampleconsensus} {params.platform_opt} \
159162 --sample {wildcards.sample} \
163+ --lineage {input.lineagereport} \
164+ --aa_table {input.aa_table} \
165+ --mutations {input.watch} \
160166 --run_name {params.run_name_opt} > {output}"
161167
162168# merge the per-sample summary files into the run-level report
Original file line number Diff line number Diff line change @@ -95,12 +95,17 @@ def get_tree_consensus_sequences(wildcards):
9595 return consensus_sequences
9696
9797def get_tree_plot_input (wildcards ):
98-
99- input_list = ["qc_analysis/{prefix}_tree.nwk" , "qc_analysis/{prefix}_alleles.tsv" ]
100- if "assign_lineages" in config and config ["assign_lineages" ]:
101- input_list .append ("lineages/{prefix}_lineage_report.csv" )
98+ input_list = ["qc_analysis/{prefix}_tree.nwk" , "qc_analysis/{prefix}_alleles.tsv" , "lineages/{prefix}_lineage_report.csv" ]
10299 return input_list
103100
101+ def get_lineage_report (wildcards ):
102+ lineage_report = f"lineages/{ config ['run_name' ]} _lineage_report.csv"
103+ return lineage_report
104+
105+ def get_watch_variants_report (wildcards ):
106+ watch_variants_report = f"qc_reports/{ config ['run_name' ]} _ncov_watch_variants.tsv"
107+ return watch_variants_report
108+
104109def get_qc_sequencing_plots (wildcards ):
105110 prefix = get_run_name ()
106111 out = [ "plots/%s_amplicon_covered_fraction.pdf" % (prefix ),
You can’t perform that action at this time.
0 commit comments