HiFi-16S-workflow icon indicating copy to clipboard operation
HiFi-16S-workflow copied to clipboard

reports not saved to outdir

Open splaisan opened this issue 1 year ago • 1 comments

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
}

splaisan avatar Oct 20 '23 07:10 splaisan

Thanks @splaisan for reporting this!

proteinosome avatar Oct 30 '23 04:10 proteinosome