-
Notifications
You must be signed in to change notification settings - Fork 192
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
modify template to use nf-validation plugin #1771
Conversation
ed1ca1e
to
691720b
Compare
6184747
to
c623783
Compare
<3 |
Codecov Report
@@ Coverage Diff @@
## dev #1771 +/- ##
==========================================
- Coverage 72.93% 72.75% -0.18%
==========================================
Files 77 77
Lines 8446 8446
==========================================
- Hits 6160 6145 -15
- Misses 2286 2301 +15
|
@@ -11,6 +11,8 @@ | |||
- Move registry definitions out of profile scope ([#2286])(https://github.com/nf-core/tools/pull/2286) | |||
- Remove `aws_tower` profile ([#2287])(https://github.com/nf-core/tools/pull/2287) | |||
- Fixed the Slack report to include the pipeline name ([#2291](https://github.com/nf-core/tools/pull/2291)) | |||
- Remove shcema validation from `lib` folder and use Nextflow nf-validation plugin instead ([#1771](https://github.com/nf-core/tools/pull/1771/)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Remove shcema validation from `lib` folder and use Nextflow nf-validation plugin instead ([#1771](https://github.com/nf-core/tools/pull/1771/)) | |
- Remove schema validation from `lib` folder and use Nextflow nf-validation plugin instead ([#1771](https://github.com/nf-core/tools/pull/1771/)) |
// Schema validation default options | ||
validationFailUnrecognisedParams = false | ||
validationLenientMode = false | ||
validate_params = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also make them camel-case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm doubting with validate_params
. For schema_ignore_params
you are right, it should be camelCase as it's part of the nf-validation plugin. But validate_params
is only used in nf-core pipelines, so I think it should be snake_case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd go for all snake_case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's params, then snake_case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately the nf-validation plugin is using camelCase as nextflow uses this notation, and it's ment to be for all NF pipelines and not only nf-core.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, then ok for camelCase
Converting it to a draft again as, after some Slack discussions, we've decided to not include |
…link from singularity to apptainer on the system.
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
… to Version 2.9dev.
…n showing it separately.
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
…onal for Tower downloads. Given that there is the option to provide the list of remote containers to skip their download, I agree that this is reasonable.
…revisions may also be branches. Therefore, I rewrote this function to account for revisions that are not releases.
I messed up this PR too much, so I've decided to open a new one #2300 |
Closes #1543
The validation of nextflow_schema.json files from nf-core pipelines is now part of a core Nextflow plugin: nextflow-io/nf-validation#5
Test in nf-core/testpipeline
Functions can be imported to a pipeline with
include { paramsHelp, paramsSummaryMap, paramsSummaryLog } from 'plugin/nf-validation'
Schema validation code from the pipeline template
NfcoreSchema.groovy
andMainWorkflow.groovy
is removed.Validate a sample sheet with a JSON schema and create a channel from it. Replaces
check_samplesheet
subworkflow and code.PR checklist
CHANGELOG.md
is updateddocs
is updated