Repository navigation
Conversation
Add tests/rna/rustqc/bigwig.nf.test validating the nf-core/rnaseq-compatible bigWig tracks from `rustqc rna` (RustQC #114): combined, forward and reverse. Binary .bigWig files are not bit-identical to UCSC output, so the tests decode each track to bedGraph intervals (host bigWigToBedGraph, Docker fallback) and: - regression (tag: regression): snapshot line counts + MD5 of bedGraph content - crosscheck (tag: crosscheck): compare decoded intervals exactly against committed bedtools genomecov + bedClip references References under snapshots/rna/small/bigwig/ generated with bedtools v2.31.1 + UCSC bedClip (nf-core/rnaseq params); MD5s and line counts verified, and the full decode/compare path validated end-to-end via a bigWig round-trip. Also: CompareUtils bigWig helpers (bedGraphFromBigWig, bedGraphMatch, md5BedGraphLines), RUSTQC_RNA stub bigWig outputs, RUSTQC_IMAGE override in tests/nextflow.config, README + CHANGELOG updates. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Current ghcr.io/seqeralabs/rustqc:dev rejects the numeric --stranded 2/1/0
form with "invalid value '2' ... [possible values: unstranded, forward,
reverse]". Pass meta.strandedness ('unstranded'/'forward'/'reverse') straight
through to --stranded in both RUSTQC_RNA and RUSTQC_RNA_PROFILE.
Verified: bam_stat regression passes against rustqc:dev
(sha256:8dcaf3dc...) with the string form.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…-09a4 # Conflicts: # modules/local/rustqc_rna.nf # modules/local/rustqc_rna_profile.nf
Resolve conflicts with main's test-library and README changes: - CompareUtils.groovy is now an alias for checks.CompareUtils, so the bigWig helpers (bedGraphFromBigWig, bedGraphMatch, md5BedGraphLines) move to tests/lib/checks/CompareUtils.groovy. - tests/nextflow.config takes main's version; the RUSTQC_IMAGE override now comes from tests/rna/rustqc/rustqc_extra_args.config. - tests/README.md takes main's version, with the bigWig notes moved to their own section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pass nf-test paths straight to bedGraphFromBigWig (they are already java.nio Paths; the .toPath() calls failed with MissingMethodException). - Load rustqc_extra_args.config so RUSTQC_IMAGE selects the RustQC image, as split_bam and featurecounts_mo do. - Add the regression snapshot, generated against an image built from RustQC #114 (0462f37); the crosscheck passed in the same run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ewels
marked this pull request as ready for review
December 3, 2026 14:20
|
❌ nf-test failed with latest Nextflow versionNote Tests with Nextflow's latest version failed but it will not cause a CI workflow failure.
See the full run for details. |
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
Adds
tests/rna/rustqc/bigwig.nf.test, which checks the bigWig coverage tracks thatrustqc rnawrites since RustQC #114. For a stranded library RustQC writes the three files that nf-core/rnaseq makes withbedtools genomecov→bedClip→bedGraphToBigWig:bigwig/{sample}.bigWig:-split -bgbigwig/{sample}.forward.bigWig/.reverse.bigWig:-split -du -strand ±(the strands swap for a reverse-stranded library)bigWig bytes differ between writers, so the tests decode each track to bedGraph with
bigWigToBedGraph(host binary if onPATH, elsequay.io/biocontainers/ucsc-bigwigtobedgraphviadocker run) and compare the intervals. The decode runs in the nf-testthenblock, not in a Nextflow process.tag: regression)tag: crosscheck)bedtools genomecovv2.31.1 + UCSCbedClipreferences insnapshots/rna/small/bigwig/.Changes
tests/rna/rustqc/bigwig.nf.testand.snaprustqc,rna,bigwig,small; the test input issmall/test.bamas a paired, reverse-stranded library.rustqc_extra_args.config, soRUSTQC_IMAGEselects the RustQC image, as forsplit_bamandfeaturecounts_mo.tests/lib/checks/CompareUtils.groovybedGraphFromBigWig,bedGraphMatch,md5BedGraphLines. They moved here fromtests/lib/CompareUtils.groovy, which is now an alias on main.snapshots/rna/small/bigwig/test.{combined,forward,reverse}.bedGraph,test-data/rna/small/chr6.chrom.sizesbedClipreferences (nf-core/rnaseq parameters), unchanged from the first commit.modules/local/rustqc_rna.nfbigwig/files. The script needs no change: it already passes--pairedand--stranded forward|reverse|unstranded, and bigWig output is on by default in #114.tests/rna/rustqc/rustqc_extra_args.config,tests/README.md,CHANGELOG.mdRUSTQC_IMAGEoverride and the new helpers.Testing status
Both tests pass against an image built from RustQC #114 at
0462f37(repo Dockerfile,linux/arm64, nf-test 0.9.5, Nextflow 26.11.0-edge):The decoded tracks are byte-identical to the references:
ad5370cc6ef150d20cff064879f6881b20d27ec2a436abedf7f157b251eb945afd64f43bdd33a977c07f8e18a920713bThe regression snapshot was made in that run with
--update-snapshot, astests/README.mddescribes. Against the currentghcr.io/seqeralabs/rustqc:devthe tests fail with the "requires RustQC #114" message, because that image has no bigWig output yet.For a local image, give the full name (
docker.io/library/...), becausenextflow.configsetsdocker.registry = 'quay.io'.Follow-up after the release
tests/default.nf.test.snap--update-snapshotonce:devwritesrustqc/bigwig/. That is not part of this PR, because the snapshot would fail on the current image.🤖 Generated with Claude Code