Open
Conversation
Add new nf-core module wrapping `modkit validate`, which benchmarks modified-base calls in one or more mod-BAMs against paired ground-truth BED files and emits a tab-separated summary of correct / incorrect / filtered calls per class. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0a6b8eb to
c8ad076
Compare
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.
PR checklist
Summary
Adds a new nf-core module wrapping `modkit validate`, which benchmarks base-modification calls in one or more mod-BAMs against paired ground-truth BED files and emits a tab-separated summary of correct / incorrect / filtered calls per class.
The module accepts paired lists of BAMs and truth-BEDs (1:1 by list index) and forwards each pair as a repeated `--bam-and-bed ` argument to modkit.
Why
`modkit validate` is the only canonical way to benchmark ONT methylation-calling accuracy against ground truth and is not currently in nf-core/modules. It's used to compare modkit pileup thresholds, evaluate basecaller-model upgrades, and assess spike-in control performance.
Test data — stub only
`modkit validate` requires a BAM paired with a ground-truth BED whose name column is a single-letter modified-base code (`m`, `h`, ...) or `-` for a canonical reference position. The public nf-core test-datasets modules branch doesn't ship such a BED. Committed test is stub-only with a placeholder `genome.bed` for staging; the meta.yml documents the truth-BED contract for downstream users. Happy to contribute a small curated truth BED to nf-core/test-datasets in a follow-up.
🤖 Generated with Claude Code