feat(yallhap/classify): Add new module for Y-chromosome haplogroup classification#9704
Draft
trianglegrrl wants to merge 1 commit intonf-core:masterfrom
Draft
feat(yallhap/classify): Add new module for Y-chromosome haplogroup classification#9704trianglegrrl wants to merge 1 commit intonf-core:masterfrom
trianglegrrl wants to merge 1 commit intonf-core:masterfrom
Conversation
…assification Add yallhap/classify module for inferring Y-chromosome haplogroups from VCF files. Features: - Supports modern and ancient DNA samples - Uses YFull phylogenetic tree and YBrowse SNP database - Outputs JSON or TSV format with confidence scores - Compatible with GRCh37, GRCh38, and T2T references
Contributor
prototaxites
left a comment
There was a problem hiding this comment.
Hi @trianglegrrl, looks good - a couple of thoughts to start with.
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def format = task.ext.format ?: 'json' |
Contributor
There was a problem hiding this comment.
Rather than adding a new task.ext directive, could you make this an input to the module (val format) instead?
| tag "yallhap" | ||
| tag "yallhap/classify" | ||
|
|
||
| test("homo_sapiens - chrY vcf - stub") { |
Contributor
There was a problem hiding this comment.
Is it possible to write a minimal test that is not a stub?
Author
There was a problem hiding this comment.
Thanks for the snappy review! Just waiting for bioconda-recipes to accept my yallHap version bump before I push the updates here.
Author
There was a problem hiding this comment.
(It comes with a test-datasets update and tests for classification of BAM and VCF formats. nf-core/test-datasets#1842)
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.
IMPORTANT: Requires this test-datasets PR:
nf-core/test-datasets#1842
Summary
Add new module
yallhap/classifyfor Y-chromosome haplogroup classification from VCF files.yallhap is a modern Y-chromosome haplogroup inference tool that supports:
Module inputs
Module outputs
PR checklist
nf-core modules lint yallhap/classifypasses (47 tests, 2 warnings about container links pending bioconda build propagation)Notes
The container link warnings are expected - yallhap 0.4.0 is available on bioconda but containers may still be building/propagating.
For ancient DNA samples with low coverage, users should pass
--min-depth 1 --min-quality 0viaext.args.