-
Notifications
You must be signed in to change notification settings - Fork 723
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 coptr module #6935
Add coptr module #6935
Conversation
{ assert snapshot(process.out.bam.collect{bam(it[1]).getReads(10)}).match() }, | ||
{ assert snapshot(process.out.bam.collect{bam(it[1]).getStatistics(include:["readCount"])}).match() } |
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.
{ assert snapshot(process.out.bam.collect{bam(it[1]).getReads(10)}).match() }, | |
{ assert snapshot(process.out.bam.collect{bam(it[1]).getStatistics(include:["readCount"])}).match() } | |
{ assert snapshot( | |
process.out.bam.collect{bam(it[1]).getReads(10), | |
process.out.bam.collect{bam(it[1]).getStatistics(include:"readCount"])} | |
).match() } |
This should fix your issue :) nf-test currently had no way to distinguish between both snapshot but my suggestion is the preferred way to fix this since we like to have one snapshot per test in 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.
Very nice job, found a few minor issues but they should be quick to address
@@ -32,29 +32,7 @@ nextflow_process { | |||
|
|||
} | |||
|
|||
test("coptr index with multiple fastqs") { |
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.
What is the reason to remove this 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.
I changed something and the test broke, but I was going to address this in a separate PR as it's a different module
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.
OK, no problem. There might be some issues with tests as they are currently updating the CI workflow to use shards.
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 for the updates, good to go
* Initial addition * Updated snapshot * Updated snapshot * Updated tests. * Updated tests. * Updated snapshot * removed extra directory creation * Added plugin to only compare bam reads, not header * Added plugin to only compare bam reads, not header * Added plugin to only compare bam reads, not header * Output filename now also contains index id so as to not to repeat filenames * Updated snapshot * Updated snapshot * Added paired end test * Added paired end test * Updated tests to deal with bams changing order of reads each time * Updated tests to deal with bams changing order of reads each time * Updated tests to deal with bams changing order of reads each time * Updated tests to deal with bams changing order of reads each time * Updated container used * Added number of lines test for review * Added number of lines test for review * Updated nft-bam plugin * Updated container * Updated counting of reads * Updated counting of reads * removed * updated snapshot * Updated test and snapshot * Updated test and snapshot * fixed versions issue * fixed versions issue * fixed versions issue * fixed versions issue * fixed versions issue * fixed versions issue * Updated test * Updated test * Updated snapshot * Updated tag * Updated tests * Updated tests * Improved descriptions --------- Co-authored-by: James A. Fellows Yates <[email protected]> Co-authored-by: Igor Trujnara <[email protected]>
PR checklist
Closes #XXX
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda
nf-core subworkflows test <SUBWORKFLOW> --profile docker
nf-core subworkflows test <SUBWORKFLOW> --profile singularity
nf-core subworkflows test <SUBWORKFLOW> --profile conda