Nf schema - #263
Conversation
This PR is against the
|
|
❌ nf-test failed with latest Nextflow versionNote Tests with Nextflow's latest version failed but it will not cause a CI workflow failure.
See the full run for details. |
| // Nextflow plugins | ||
| plugins { | ||
| id 'nf-schema@2.5.1' // Validation of pipeline parameters and creation of an input channel from a sample sheet | ||
| id 'nf-schema@2.7.2' // Validation of pipeline parameters and creation of an input channel from a sample sheet |
There was a problem hiding this comment.
Can we avoid this ? 2.7.2 forces Nextflow 26.04 as the minimum version
There was a problem hiding this comment.
I don't think so, pretty sure 2.7.2 is the first version that supports casting.
We can keep it the current way at the minute, i will just need to have a branch for ASCC until, maybe, the next template update?
There was a problem hiding this comment.
toBoolean() is a native Groovy method. It's not from nf-schema. The changes should work with nf-schema 2.5.1
There was a problem hiding this comment.
Just had a look again, yeah you don't need the toBoolean(). That's a hang over from me trying a couple of things at the same time.
You need the 2.7.2 to cast the params to their proper type to pass validation.
Using the toBoolean() would effect the params after validation.
I guess either way could work.
Changes related to updating nf-schema to allow booleans to work on the cli again.
This change is needed for ASCC.
Allows cli args to be cast to their config defined type.
Also removed an unused ch_versions from Input_check whilst I was mucking around.