feat: add nf-core-compatible bigWig coverage tracks#114
Open
ewels wants to merge 2 commits into
Open
Conversation
Implement bedtools genomecov-equivalent coverage accumulation in the
existing BAM streaming pass and write bigWig files via bigtools.
Produces nf-core/rnaseq-compatible outputs:
- {sample}.bigWig (combined, -split -bg)
- {sample}.forward/reverse.bigWig for stranded libraries (-split -du -strand)
Validated against bedtools genomecov + UCSC bedClip/bedGraphToBigWig in
integration tests.
Co-authored-by: Phil Ewels <phil.ewels@seqera.io>
Add a dedicated bigWig docs page and update README, AGENTS.md, CONTRIBUTING.md, getting-started guides, credits, CLI/config references, benchmark details, and library doc comments to describe nf-core/rnaseq- compatible genome coverage track output. Co-authored-by: Phil Ewels <phil.ewels@seqera.io>
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.
Summary
Implements genome-wide bigWig coverage tracks in the existing
rustqc rnaBAM streaming pass, matching nf-core/rnaseq parameters (bedtools genomecov -split, optional-du/-strand, UCSCbedClipsemantics).Closes #112.
Changes
src/rna/bigwig/module: coverage accumulation, bedGraph clipping, bigWig writing viabigtoolscount_reads()read loop andmain.rsoutput underbigwig/rna.bigwig.enabled(defaulttrue)Output files
{sample}.bigWig— combined track (all libraries){sample}.forward.bigWig/{sample}.reverse.bigWig— per-strand tracks (stranded libraries only)Validation
genomecovv2.31.1 exactly (738/738 intervals in integration tests).bigWigfiles are not bit-identical to UCSCbedGraphToBigWig(different encoder), but decode to the same coverageFollow-ups
bedGraphToBigWigsubprocess for bit-identical binaries if required