Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added parallel version of ltrharvest #4968

Merged
merged 3 commits into from
Feb 22, 2024
Merged

Conversation

GallVp
Copy link
Member

@GallVp GallVp commented Feb 22, 2024

PR checklist

Closes #XXX

  • Added parallel version of ltrharvest
  • 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

@GallVp GallVp requested a review from a team as a code owner February 22, 2024 03:42
@GallVp GallVp requested review from ahvigil and removed request for a team February 22, 2024 03:42
Comment on lines 14 to 28
tools:
- "edta":
description: Extensive de-novo TE Annotator (EDTA)
homepage: "https://github.com/oushujun/EDTA"
documentation: "https://github.com/oushujun/EDTA"
tool_dev_url: "https://github.com/oushujun/EDTA"
doi: "10.1186/s13059-019-1905-y"
licence: ["GPL v3"]
- "gt":
description: "The GenomeTools genome analysis system"
homepage: "https://genometools.org/index.html"
documentation: "https://genometools.org/documentation.html"
tool_dev_url: "https://github.com/genometools/genometools"
doi: "10.1109/TCBB.2013.68"
licence: ["ISC"]
Copy link
Member

Choose a reason for hiding this comment

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

This is unusual, but I guess it makes sense.
Include an entry specifically for 'ltrharvest' so it's origin is clear

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you @mahesh-panchal

I have added an entry for LTR_harvest_parallel.

Copy link
Contributor

@ahvigil ahvigil left a comment

Choose a reason for hiding this comment

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

minor nitpick about simplifying test snapshot, otherwise looks good

assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() },
{ assert snapshot(path(process.out.versions[0]).text).match("stub_versions") }
Copy link
Contributor

Choose a reason for hiding this comment

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

the stub_versions and script_versions snapshots look the same. I think you can share those snapshots between test cases (.match("versions")) since the script and stub blocks use the exact same logic

Copy link
Contributor

Choose a reason for hiding this comment

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

it would also be ok to remove this check entirely or loosen it a bit to just check for existence, so you don't need to update the snapshots for minor version bumps... but its fine if you want to be conservative here

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @ahvigil

Thank you for the feedback. It is not possible anymore to use the same snapshot name. nf-test doesn't allow that anymore.

Copy link
Contributor

Choose a reason for hiding this comment

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

ugh thats too bad but it seems you're right: askimed/nf-test#188

however, there is an open issue to provide an opt in for cases like this where it might be useful to remove repetition: askimed/nf-test#197. Hope they can implement something like that!

@GallVp GallVp added this pull request to the merge queue Feb 22, 2024
Merged via the queue into nf-core:master with commit e12e44e Feb 22, 2024
11 checks passed
@GallVp GallVp deleted the ltrharvest branch February 22, 2024 21:54
jch-13 pushed a commit to jch-13/modules that referenced this pull request Mar 19, 2024
* Added parallel version of ltrharvest

* Removed scn from snapshot

* Added entry for LTR_HARVEST_parallel in meta.yml
jennylsmith pushed a commit to RSC-RP/modules that referenced this pull request Mar 20, 2024
* Added parallel version of ltrharvest

* Removed scn from snapshot

* Added entry for LTR_HARVEST_parallel in meta.yml
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants