Skip to content

Commit db7e14c

Browse files
committed
Fix R Markdown rendering path in single-cell RNA report rule
1 parent f1f8db2 commit db7e14c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

rules/singlecell_rna_report.smk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ rule report_rmd:
1212
container: program.Renv4rmd
1313
shell:
1414
"""
15-
Rscript -e 'rmarkdown::render("{analysis}/workflow/scripts/rna/single_cell_report.Rmd", params = list(project = "{params.smp}", dir = "{params.dir}", sample = "{params.smp}"), output_file = "{output}", output_dir = "{params.out}")'
15+
cd {params.dir}
16+
cp {analysis}/workflow/scripts/rna/single_cell_report.Rmd ./
17+
Rscript -e 'rmarkdown::render("single_cell_report.Rmd", params = list(project = "{params.smp}", dir = "{params.dir}", sample = "{params.smp}"), output_file = "{output}", output_dir = "{params.out}")'
18+
rm single_cell_report.Rmd
1619
"""

0 commit comments

Comments
 (0)