CW-244 optional report name

This commit is contained in:
Sarah Griffiths 2021-09-09 13:39:17 +00:00
parent d030e654e9
commit 167deee265
2 changed files with 7 additions and 2 deletions

View File

@ -27,6 +27,7 @@ Script Options:
--samples FILE CSV file with columns named `barcode` and `sample_name` --samples FILE CSV file with columns named `barcode` and `sample_name`
(or simply a sample name for non-multiplexed data). (or simply a sample name for non-multiplexed data).
--out_dir DIR Path for output (default: $params.out_dir) --out_dir DIR Path for output (default: $params.out_dir)
--report_name STR Optional report suffix (default: $params.report_name)
""" """
} }
@ -79,9 +80,12 @@ process makeReport {
path "versions/*" path "versions/*"
path "params.json" path "params.json"
output: output:
path "wf-template-report.html" path "wf-template-*.html"
script:
// report naming
report_name = "wf-template-" + params.report_name + '.html'
""" """
report.py wf-template-report.html --versions versions seqs.txt --params params.json report.py $report_name --versions versions seqs.txt --params params.json
""" """
} }

View File

@ -19,6 +19,7 @@ params {
wfversion = "v0.0.7" wfversion = "v0.0.7"
aws_image_prefix = null aws_image_prefix = null
aws_queue = null aws_queue = null
report_name = "report"
} }