-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ERROR ~ Unknown config attribute out
" when adding functions to nextflow.config
#1005
Comments
looks like the error may be originating at this section of the code?
|
Also just realized that the error can be reproduced with something as simple as this: nextflow.config
output:
.nextflow.log
|
I think there is nothing related Nextflow for your question, it's the matter of Groovy. You can replace |
Functions are not expected to be defined in the config file. This may be possible when #940 will be implemented. So far it's not a supported use case. |
Thanks for the feedback all. The use-case here is that I want to have dynamic process directives (e.g. Also @Crabime I am guess I am not familiar enough with Groovy to understand exactly why using edit: looks like you can actually print to a file just fine from within the nextflow.config, so I think that is also a good option in this case.
|
Bug report
When adding custom functions to the
nextflow.config
file, I get an error like this:Expected behavior and actual behavior
Expected that the functions should not affect the
nextflow.config
file parsingSteps to reproduce the problem
(Context: in the middle of trying to write a function to dynamically select the "best" SLURM queue to submit to...)
A base pipeline like this works just fine:
main.nf
nextflow.config
output:
However, when I start to add more functions to my
nextflow.config
file, things start breaking... For example:nextflow.config
output:
^^^ note that the function
get_timestamp()
successfully runs, as can be seen in the stdout.nextflow.log
Another example;
nextflow.config:
output:
^^^ again you can see that the function
runCommand()
works.nextflow.log
Any ideas why this is breaking? Did I miss something?
Environment
The text was updated successfully, but these errors were encountered: