Add tests: bamCoverage RPKM/scaleFactor, alignmentSieve fragment/strand filters#1434
Merged
Conversation
…t/strand filtering Fills coverage gaps identified while triaging the stalled #1369 tests: - bamCoverage: --normalizeUsing RPKM (RPKM was untested; suite only had CPM/RPGC) and --scaleFactor. - alignmentSieve: --minFragmentLength/--maxFragmentLength and --filterRNAstrand (neither was tested anywhere). Expected values derived by running the current tools; all pass under `pixi run pytest`. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Fills coverage gaps surfaced while triaging the stalled #1369 tests (the direct-Rust-binding versions couldn't be salvaged, but two of their ideas covered untested paths).
bamCoverage (
test_bamCoverage_and_bamCompare.py)--normalizeUsing RPKM— RPKM was untested; the suite only covered CPM and RPGC.--scaleFactor— manual scale factor (also documents that it takes precedence over--normalizeUsing).alignmentSieve (
test_alignmentseive.py)--minFragmentLength/--maxFragmentLength— fragment-size selection was untested.--filterRNAstrand forward— not exercised anywhere in the suite.Expected values were derived by running the current tools; assertions use the existing filterMetrics/bedgraph style. Verified locally:
pixi run pyteston both files → 26 passed (22 existing + 4 new).🤖 Generated with Claude Code