Michael Heuer
10/11/2025, 12:15 AMoutputDir to params.outdir
https://nextflow.io/docs/latest/tutorials/workflow-outputs.html
this works (in that the workflow output writes to results2)
test.conf:
outputDir = "${projectDir}/results2"
params {
outdir = "${projectDir}/results1"
}
but this does not (it does not write to results1, it writes to the default results)
test.conf:
params {
outdir = "${projectDir}/results1"
}
<http://main.nf|main.nf>:
nextflow.preview.output = true
workflow {
outputDir = params.outdir
}
output { ...
and this also does not
test.conf:
params {
outdir = "${projectDir}/results1"
}
<http://main.nf|main.nf>:
nextflow.preview.output = true
outputDir = params.outdir
workflow { ...
}
output { ...Thomas Danhorn
10/11/2025, 6:06 AMparams{}) in a JSON or YAML file and passing that to nextflow via -params-file test.json?Nicolas Vannieuwkerke
10/11/2025, 8:26 AMoutputDir is a configuration option. Can you try placing it in the nextflow.config?Michael Heuer
10/11/2025, 1:27 PMnextflow.config:
profiles {
test {
includeConfig 'conf/test.config'
}
}
I need to overwrite that value with params.outdir though, since that is what nf-core/tower/seqera platform usesNicolas Vannieuwkerke
10/11/2025, 2:42 PMMichael Heuer
10/11/2025, 3:12 PMnextflow.config:
// do not specify this!
outputDir = ""
test.config:
params {
outdir = ${projectDir}/test-results
}
<http://main.nf|main.nf>:
workflow {
...
}
output {
vcf {
path {
meta -> "${params.outdir}/vcf/${meta[0].id}"
}
}
}Nicolas Vannieuwkerke
10/11/2025, 3:14 PMMaxime Garcia
10/16/2025, 8:11 AMMichael Heuer
10/16/2025, 1:25 PMprojectDir twitching eye