-
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
Add in IRIDA Next updates Pipeline Best Practices #7
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 is amazing work. Thanks so much Darian 😄 . You've done a great job with this.
I have some in-line comments for you. Some of these are more meant for later PRs, or just recommendations or comments for your information for later. Please let me know if you have any questions.
"type": "string", | ||
"pattern": "^\\S+$", | ||
"errorMessage": "Sample name must be provided and cannot contain spaces", | ||
"meta": ["id"] |
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.
Just as a note, there are some additional changes we will need to make for identifiers if you wish to use the sample names in IRIDA Next. But, I would recommend we leave this for a later PR, and even a later release to make things simpler.
As the pipeline is right now, this will work in IRIDA Next, but will use the IRIDA Next assigned identifiers (like INXT_1234
) as the sample name instead of user-provided names (like 08-5578
).
}, | ||
"prepped_schema": { | ||
"type": "string", | ||
"default": "data/SeqSphere_1521_schema", |
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 can be for later, but I would recommend a bit of change in logic here for integration with IRIDA Next. Specifically, I'd recommend leaving this to a default of empty and in the pipeline, if empty, using the default data/SeqSphere_1521_schema
that comes with the pipeline code.
That way, in IRIDA Next, we can always override it later on if it needs to be updated, but otherwise will default to the database distributed with the pipeline.
tests/main.nf.test
Outdated
} | ||
|
||
//--- Test 4 | ||
test("Stub Run Test") { |
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.
Thanks so much for including this test 😄
In general, I recommend not using stub runs for testing, but instead creating very small inputs and databases and running the full pipeline including all underlying dependency software.
However, doing that all requires time. This is a good first step and later on a full test can be added in here.
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.
Yeah, echoing this. Testing the stub run only tests that the stub part works, not that the pipeline works under normal circumstances.
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.
Yeah I thought that it may be a good spot to put it as a test but makes sense not to. I've changed it to actual data
tests/main.nf.test
Outdated
} | ||
|
||
//--- Test 4 | ||
test("Stub Run Test") { |
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.
Yeah, echoing this. Testing the stub run only tests that the stub part works, not that the pipeline works under normal circumstances.
Added
nf-schema
plugin and associated functionsparams.input <CSV>
to allow input samplesheetsiridanext
pluginnf-prov
pluginChanged
modules.conf
filemin_reads
to 60,000 from 150,000Updated
Issues Addressed