HiFi-16S-workflow
HiFi-16S-workflow copied to clipboard
reports not saved to outdir
Hi,
I noticed that the nextflow reports are not saved correctly when --outdir Output directory name (default: "results")
is a path rather than a local folder as in your demo.
This seems due to the end of the config file where the path is defined as file = "report_$params.outdir/
rather than $params.outdir/report
, leading in the case of a user-provided outdir path to saving the reports in the current repo folder under report_/
(and overwriting the reports if I run concurrent runs as they will all loose track of the custom part of the name)
- current config end
// Generate report
report {
enabled = true
file = "report_$params.outdir/report.html"
}
// Timeline
timeline {
enabled = true
file = "report_$params.outdir/timeline.html"
}
// DAG
dag {
enabled = true
file = "report_$params.outdir/dag.html"
overwrite = true
}
- my modified config end
// Generate report
// file = "report_$params.outdir/report.html"
report {
enabled = true
file = "$params.outdir/report/report.html"
overwrite = true
}
// Timeline
timeline {
enabled = true
file = "$params.outdir/report/timeline.html"
overwrite = true
}
// DAG
dag {
enabled = true
file = "$params.outdir/report/dag.html"
overwrite = true
}
Thanks @splaisan for reporting this!