workflow is not defined in the config file #4152
Replies: 3 comments 1 reply
-
One way to achieve such a thing in config files is through closures. You can get |
Beta Was this translation helpful? Give feedback.
-
You can use a parameter to specify the work dir and reference in other settings
|
Beta Was this translation helpful? Give feedback.
-
hey just wanted to mention, I had similar issues as well recently, I threw together this little demo that shows different ways to dig out Nextflow implicit variables in a few different contexts, including within the nextflow.config, might be helpful for this discussion https://github.com/stevekm/nextflow-demos/tree/master/workflow-introspection |
Beta Was this translation helpful? Give feedback.
-
Bug report
I tried to get the
${workflow.workDir}
in the config file for trace path and name. Note theworkDir
andrunName
are specified by the nextflow run command line-w test -name test
Expected behavior and actual behavior
Expected: get the current work dir and
runName
specified by the command lineActual: get an error:
Steps to reproduce the problem
Any job with the trace in config file, and specify the
workDir
and name by command line.Program output
Environment
Beta Was this translation helpful? Give feedback.
All reactions