Hi, I'd like to use specific parameters for a tool...
# help
r
Hi, I'd like to use specific parameters for a tool in an nf-test test. I have a specific nf-test nextflow.config where I could add
ext.args
but that overrides the same setting
/conf/modules.conf
. Is there any way to "append" to the
ext
directive?
m
Could you be a bit more specific? How does it differ from the advice https://nf-co.re/docs/specifications/components/modules/testing#configuration-of-extargs-in-tests
Or is this a pipeline test?
And if it's a configuration priority issue are you using the full name/regex in the modules.conf, since that has priority over the simple name and can be used in the test profile config to give a higher priority ( use simple name in the modules.conf )
r
Hi, thanks for your reply and the link. I believe it does not cover my use case. In
conf/modules.config
I have already defined some
ext.args
for a specific module. Now, in and additional config file, I want to append to the existing
ext.args
. So, ideally, I want the second config to contain
ext.args += "--new-arg-on-top"
but that
+=
is not allowed (at least it doesn't compile for me.)
m
So it's a pipeline test?
There's no possibility to append. One has to overwrite it
Or you use a parameter
👍 1
r
Yes, it's a pipeline test, but the question is more general. Thanks for the answer.
m
Using a parameter allows one to keep the part that has to stay and append/overwrite the part that can change
👍 1