-
Notifications
You must be signed in to change notification settings - Fork 3
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
Metagenomic end #158
base: dev
Are you sure you want to change the base?
Metagenomic end #158
Conversation
|
Latest tests with nextflow fail due to an issue in |
This PR addresses the story: STRY0017074 |
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.
It looks good to me. My suggestion would be adding another test for when a sample is metagenomic and the user specifies fail_on_metagenomic = false
, unless it's implicitly covered by another test?
subworkflows/local/clean_reads.nf
Outdated
|
||
// Check if samples are contaminated/metagenomic and save the user computational time | ||
if (params.fail_on_metagenomic){ | ||
temp_channel = ch_cleaned_reads.branch{ v, fastq -> |
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 not the biggest fan of temp_channel
as a name, but I also don't have any suggestions.
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.
The only other thing I can think of is intermediate_channel
but that is just more typing.
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 good
subworkflows/local/clean_reads.nf
Outdated
|
||
// Check if samples are contaminated/metagenomic and save the user computational time | ||
if (params.fail_on_metagenomic){ | ||
temp_channel = ch_cleaned_reads.branch{ v, fastq -> |
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.
Why 'v' ? I didn't get a chance to look at what the channel looks like to see what v was. Might be helpful to be descriptive
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.
fixed in: 86f8630
This test is covered! There is test running just a basic metagenomic assembly that passes. The relevant tests are here: Lines 526 to 611 in 86f8630
|
Added explicit test parameter: 00b2780 |
Added option to prevent metagenomic samples from going through additional downstream processing.