Being lazy by not checking, but as we're here - ho...
# wg-meta-pipelines
p
Being lazy by not checking, but as we're here - how does it work with config inheritance? Does it do anything clever to pass on config from the main Nextflow job to all of the children?
m
The configs are written separately for each child workflow and then passed as a regular file
I haven't tried separating configs and using
includeConfig
within them to include shared chunks. The only thing there is maybe the path resolution, but otherwise that should also work
The idea is to mainly use
profiles
but since any non nf-core workflow could have differently named profiles, it's kept flexible and each child uses it's own config
👍🏻 1
p
It'd be cool if the head nextflow job could dump the resolved config, then pass that on to the child jobs as a config file 🤔 😅
m
I'm not sure I understand what you mean. The parent workflow likely has very little configuration since unless it has processes itself to distribute
p
I was thinking of AWS batch configs etc.
m
I don't know what they look like
But specifics aren't important, I just meant whatever config is needed to submit jobs really
m
So you can definitely pass the same config to multiple workflows as well: https://github.com/mahesh-panchal/nf-cascade/blob/4b83584254fc88fbeb37ebfa421f1ef190da194a/params.yml#L8
p
yeah I guess that's the solution - write a config file, then pass it to the head run and the child runs