Louis Le Nézet
10/07/2026, 10:25 AMext.args = { "--impute-reference-only-variants --seed ${params.seed} ${params.opt_args_glimpse1}" }
This would allow users to fine tune algorithm without having to dive into all the configs files.
Is it something that you do in other pipeline ?Jim Downie
10/07/2026, 10:27 AMJim Downie
10/07/2026, 10:28 AMNiklas Schandry
10/07/2026, 10:56 AMLouis Le Nézet
10/08/2026, 10:43 AMnextflow.config that call themselves previously define parameters.
Something like
params {
seed = 1
glimpse1_args = "--impute-only-ref --seed ${params.seed}"
}
Doing so allows to expose all default arguments passed down to the software without risking the user defining twice some options.
However sample level infos cannot be injected (e.g. meta.id).Niklas Schandry
10/08/2026, 10:55 AMparams {
seed = 1
glimpse_args = "--impute-only-ref -seed " + params.seed
}
will fail.
I am not completely sure if I get what you are going for, are you suggesting this is an alternative for ext.args?Louis Le Nézet
10/08/2026, 10:57 AMnf-core pipeline lint doesn't like the hack 😅
nextflow_config: Config default value incorrect: params.options_shapeit5 is set as --seed ${params.seed} --hmm-ne ${params.effective_population_size} in nextflow_schema.json but is --seed 1 --hmm-ne 100000 in nextflow.config.
It seems it resolve the default when comparing config and schema.Louis Le Nézet
10/08/2026, 10:59 AMI am not completely sure if I get what you are going for, are you suggesting this is an alternative for ext.args?Kind of, the aim is to expose all options set up for the important process that might need some fine tuning by the user. I wanted a way to show the user which parameters are already in use. If you want for example to remove the seed set up without going in the config file.
Niklas Schandry
10/08/2026, 11:27 AMCopy codenextflow_config: Config default value incorrect: params.options_shapeit5 is set as --seed ${params.seed} --hmm-ne ${params.effective_population_size} in nextflow_schema.json but is --seed 1 --hmm-ne 100000 in nextflow.config.
It seems it resolve the default when comparing config and schema.This you could probably solve by just lying in nextflow_schema.json by manually substituting 😉
Louis Le Nézet
10/08/2026, 12:28 PM