> nextflow run . -profile test,docker --outdir results --clonal_threshold -1
N E X T F L O W ~ version 23.10.0
Launching `./main.nf` [special_jennings] DSL2 - revision: 65c2c54ef2
ERROR ~ ERROR: Validation of pipeline parameters failed!
-- Check '.nextflow.log' file for details
The following invalid input values have been detected:
* --clonal_threshold: -1 is not a valid enum value (-1)
* --clonal_threshold: expected type: String, found: Integer (-1)
* --clonal_threshold: -1 is not greater or equal to 0 (-1)
> nextflow run . -profile test,docker --outdir results --clonal_threshold blegh
N E X T F L O W ~ version 23.10.0
Launching `./main.nf` [gigantic_pike] DSL2 - revision: 65c2c54ef2
ERROR ~ ERROR: Validation of pipeline parameters failed!
-- Check '.nextflow.log' file for details
The following invalid input values have been detected:
* --clonal_threshold: blegh is not a valid enum value (blegh)
* --clonal_threshold: expected type: Number, found: String (blegh)
Description of the bug
The
clonal_analysis_options
in the nextflow_schema.json uses a list of types:It should be:
This could also include validation like so:
We can now have enhanced validation:
Command used and terminal output
No response
Relevant files
nextflow_schema.json
System information
No response