-
Notifications
You must be signed in to change notification settings - Fork 2
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
nested nextflow schema params #49
Conversation
|
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.
This looks amazing @mattheww95 . Thanks so much for all your hard work. I do have two comments for you.
This reverts commit d84fcb6.
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 have fixed up the tests and I have made some additional changes. The main issue is that Nextflow JSON Schemas don't support nested parameters, so we have to remove these from the JSON schema files (sorry about getting mixed up about that and thinking nested parameters would just be ignored).
So, I have made the following changes:
- Removed
nextflow_schema.json
and re-generated it from the config file usingnf-core schema build
- Re-structured schema to group common parameters together and added descriptions and appropriate minimums for integer parameters.
- Added test cases to verify that validation is happening for parameters and passing incorrect values fails the pipeline with an appropriate error message.
- Added tests to make sure that the identified species is set appropriately
I also tested how this would look in IRIDA Next (see below):
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.
Looks great! I am glad we got everything figured out!
Created a nested nextflow_schema.json