Skip to content
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

Merged
merged 45 commits into from
Nov 20, 2024
Merged

Add coptr module #6935

merged 45 commits into from
Nov 20, 2024

Conversation

ramirobarrantes
Copy link
Contributor

PR checklist

Closes #XXX

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@mashehu mashehu changed the title Initial addition Add coptr module Nov 6, 2024
Comment on lines 44 to 45
{ 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() }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{ 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

Copy link
Contributor

@itrujnara itrujnara left a 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

modules/nf-core/coptr/map/main.nf Show resolved Hide resolved
@@ -32,29 +32,7 @@ nextflow_process {

}

test("coptr index with multiple fastqs") {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

modules/nf-core/coptr/map/meta.yml Outdated Show resolved Hide resolved
modules/nf-core/coptr/map/meta.yml Outdated Show resolved Hide resolved
modules/nf-core/coptr/map/tests/main.nf.test Show resolved Hide resolved
Copy link
Contributor

@itrujnara itrujnara left a 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

@itrujnara itrujnara added this pull request to the merge queue Nov 20, 2024
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2024
* 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]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 20, 2024
@itrujnara itrujnara added this pull request to the merge queue Nov 20, 2024
Merged via the queue into master with commit 7d5a1e7 Nov 20, 2024
27 checks passed
@itrujnara itrujnara deleted the coptr_map2 branch November 20, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants