--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
On Tue, Jun 20, 2017 at 9:19 PM, Owen S. <owen.s...@gmail.com> wrote:
I have a large number of params that need to be set for different "modes" of my pipeline.// mode 1:params.a = 1params.b = 2params.c = 3(etc)// mode 2:params.a = 10params.b = 20params.c = 30(etc)I would like to put default values for all the params into the nextflow.config file, and then somehow activate the values according to the mode that is requested. This way, instead of specifying all the parameters in a job-specific config file, I can just specify the "mode". I can't figure out a clean way of doing this.I thought of putting the mode specific params in a separate config file, and then from my job-specific config file, I had something like:includeConfig '${workflow.projectDir}/mode1.config'but apparently workflow introspection isn't available when config files are being evaluated. I'd prefer not to resort to absolute paths if possible.Perhaps there is another approach I am not thinking about. Any suggestions would be much appreciated! Thanks.
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
def cfg = file('mode1.config').textdef mode1 = new ConfigSlurper().parse(cfg)params.putAll(mode1)
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.