Pull workflow.revision into config scopes #3130
-
Hi Nextflow Community, We really like the Nextflow functionality that allows us to run our pipeline with commands like:
The way we have our configuration file set up is that it specifies the output path for files that are generated and as part of that path, we include the pipeline version - i.e., We currently get the pipeline version into the config by specifying it as a parameter and declaring it at runtime. But, then we have to specify that parameter in two places if we want to use One option is to check for this discrepancy as described here. And just specify the pipeline_version/tag in multiple places in the runtime command. Althought it would be nice to specify in just one place. So, currently, we have a bash script that takes the pipeline_version/tag and sticks it in all the places we want it for the runtime command. Although, this is a little suboptimal because the person running it needs to go to the repo directory and We would really like it if in our config we could pull in
Is there a way to do this that we are missing? It seems that when we put any variables within a scope in config, the scope is appended to the front of that variable (e.g., params.workflow.revision) and throws an error. We discussed the possibility of defining the 'results' path in the main.nf script but don't know how to handle the Any thoughts/comments/suggestions would be greatly appreciated! Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Think at this time the best practice is to use a param for that. You may want to open an issue to track this is a feature request. |
Beta Was this translation helpful? Give feedback.
Think at this time the best practice is to use a param for that. You may want to open an issue to track this is a feature request.