New module for mergestr#12015
Merged
KondratievaOlesya merged 7 commits intoJul 2, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new nf-core DSL2 module wrapping mergeSTR (TRTools) to merge multiple TR-genotyper VCFs into a single merged VCF, along with nf-test coverage.
Changes:
- Added
trtools/mergestrmodule implementation (process, container/conda, outputs + versions topic). - Added module metadata (
meta.yml) and conda environment definition. - Added nf-test tests, config overrides, and snapshots using
gangstr-produced VCFs as inputs.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| modules/nf-core/trtools/mergestr/main.nf | Implements the TRTOOLS_MERGESTR process, including bgzip/tabix indexing and versions emission. |
| modules/nf-core/trtools/mergestr/meta.yml | Declares module inputs/outputs and version reporting metadata for nf-core tooling. |
| modules/nf-core/trtools/mergestr/environment.yml | Defines the conda environment (TRTools 6.1.0). |
| modules/nf-core/trtools/mergestr/tests/main.nf.test | Adds nf-test coverage (real + stub) for the new module. |
| modules/nf-core/trtools/mergestr/tests/main.nf.test.snap | Stores expected outputs for nf-test runs. |
| modules/nf-core/trtools/mergestr/tests/nextflow.config | Provides test-specific ext.args overrides for TRTOOLS_MERGESTR and the setup GANGSTR runs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
LouisLeNezet
reviewed
Jul 1, 2026
LouisLeNezet
left a comment
Contributor
There was a problem hiding this comment.
Just a few comments but good to go otherwise
LouisLeNezet
approved these changes
Jul 1, 2026
| assertAll( | ||
| { assert process.success }, | ||
| { assert snapshot( | ||
| process.out.vcf.collect { it.collect { it instanceof Map ? it : file(it).name + ":variantsMD5," + path(it).vcf.variantsMD5 }}, |
Contributor
There was a problem hiding this comment.
This is really nice, we often just do path(process.out.vcf[0][1]).vcf.variantsMD5 but this does work.
Contributor
Author
|
Thank you for the review! |
vagkaratzas
pushed a commit
that referenced
this pull request
Jul 2, 2026
* New module for mergestr * Fix review * Fix typo in stub * Fix typo in stub * Fix review comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new nf-core module for
mergeSTRfrom the TRTools package.PR checklist
Closes #12014
topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda