Skip to content
Snippets Groups Projects
Commit fcb0102b authored by Ticlla Ccenhua Monica Roxana's avatar Ticlla Ccenhua Monica Roxana
Browse files

add local rule to make report after MetaPhlAn2 rule has completed

parent 66d2d5f4
Branches
No related tags found
No related merge requests found
......@@ -103,6 +103,7 @@ localrules:
StrainPhlAn,
rawQC_make_report,
preQC_make_report,
MetaPhlAn2_make_report,
PhlAnProf_make_report
##----------------------------------------------------------------------------##
## Run entire workflow
......@@ -194,9 +195,27 @@ rule preQC_make_report:
--report {params.report_path} \
-s {params.workflow_dir}/Snakefile preQC) &>{log}
'''
rule MetaPhlAn2_make_report:
output:
temp(touch(OUT_DIR+'/logs/metaphlan2_make_report.done'))
log:
OUT_DIR+'/logs/MetaPhlAn2_make_report.log'
params:
report_path = OUT_DIR+'/MetaPhlAn2_report.html',
workdir = workdir_path,
workflow_dir = workflow_path
shell:
'''
(snakemake \
--directory={params.workdir} \
--report {params.report_path} \
-s {params.workflow_dir}/Snakefile MetaPhlAn2) &>{log}
'''
rule PhlAnProf_make_report:
output:
temp(touch(OUT_DIR+'/logs/preQC_make_report.done'))
temp(touch(OUT_DIR+'/logs/phlanprof_make_report.done'))
log:
OUT_DIR+'/logs/PhlAnProf_make_report.log'
params:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment