I think this is a question related to nf-validatio...
# nextflow-plugins
a
I think this is a question related to nf-validation. I added a new parameter to my local version of Sarek and now I get this (unwanted) warning:
Copy code
WARN: The following invalid input values have been detected:

* --skip_ngc_hpc_config: false
I tried adding the new parameter (skip_ngc_hpc_config) to
schema_ignore_params
and
validationSchemaIgnoreParams
but that didnโ€™t help.
n
Have you set a default in the
nextflow.config
?
a
Yes,
Copy code
skip_ngc_hpc_config = false
as the very first statement in
nextflow.config
.
n
eh I really need to take a thorough look at that part of the code but I don't have time for it right now ๐Ÿ˜
it's probably something stupid again ๐Ÿ˜›
a
I suspect itโ€™s something stupid on my side ๐Ÿ˜†
n
that's also possible ๐Ÿ˜
is it inside a
params
scope?
a
yes
I was thinking about adding that new parameter to
nextflow_schema.json
- that would silence the warning, right?
n
Oh
yep
a
Itโ€™s still needs to be in the schema.
n
that's the issue
a
ah!
So in Sarek we have
params.genomes
defined nextflow.config, but I donโ€™t see
genomes
defined in our nextflow_schema.json - is that as it should be? ๐Ÿค”
n
yes that's a
map
type which isn't supported by
nf-validation
and
nf-schema
for parameters ๐Ÿ˜›
so it's best to ignore this until it's been implemented
a
ok, guys. Thanks for the prompt answers ๐Ÿค I might just have learn something here. (Iโ€™ll probably forget real fast ๐Ÿ™ˆ )
n
No problem, happens to the best of us ๐Ÿ˜‰
a
N.B. Now that warning is gone ๐Ÿ™‚
๐ŸŽ‰ 1
@Nicolas Vannieuwkerke : I got this:
Copy code
WARN: Access to undefined parameter `monochromeLogs` -- Initialise it to a default value eg. `params.monochromeLogs = some_value`
I see you worked on that here. What would a local quick-fix be?
n
You should set defaults for
params.monochromeLogs
and
params.monochrome_logs
I don't think there's anything else you can do about it in
nf-validation
๐Ÿ‘ 1
a
ok, setting
params.monochromeLogs
seems to have been enough.
n
Awesome!