-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stricter rules for initialising params with no default value #992
Comments
|
This is a little tricky because NF doesn't accept empty strings on the command-line e.g. |
Ah and doing |
I do have a case where I want to set an integer parameter to 0 by default (not null). It specifies the start position for e.g. a UMI barcode or a sequencing primer. So I actually need to perform some arithmetics on it later in the pipeline. So I think having an integer default to |
Yes that should be totally fine - set it to This is about being more strict when you don't want to have a default value, which in turn allows to be stricter about defaults that evaluate to false like this. |
In practice this will basically mean deleting / making these workarounds more strict: Lines 504 to 506 in d0a6649
tools/nf_core/pipeline-template/lib/NfcoreSchema.groovy Lines 509 to 519 in d0a6649
tools/nf_core/pipeline-template/lib/NfcoreSchema.groovy Lines 236 to 239 in d0a6649
..and probably more (eg. in website code too etc) |
I can have a go at this, unless anyone has started something already? |
It would be good to standardise how we are defining default / empty parameter values in the pipeline
nextflow.config
. Seeing as we are now validating these parameters against the JSON schema it will be nice to use a uniform approach.As shouted on Slack:
false
innextflow.config
null
innextflow.config
The text was updated successfully, but these errors were encountered: