You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: keep computeMatrix groups distinct when filenames match - #1502
When two input BED files share a basename, computeMatrix can write group boundaries beyond the row count.
Pass two paths ending in peaks.bed with one and two regions and inspect the matrix header.
The patch counts retained rows by input file position.
The test checks group boundaries, values and both exports with the input order and with sorting enabled.
Does the PR contain new feature?
Does the PR contain bugfix?
Does the PR contain documentation changes?
Does the PR contain changes to the galaxy wrapper?
computeMatrix now tracks region groups by input-file index and derives ordered group sizes from row indices. Matrix headers and sorted-region outputs consume positional counts. A regression test covers same-basename region files under keep and ascend sorting.
Changes: Region group tracking
Layer / File(s)
Summary
Derive groups from input-file indices src/computematrix.rs
Rows retain their input-file index. Group sizes and slices are rebuilt in index order.
Use ordered sizes in output src/matrix/header.rs, src/matrix/writer.rs, pydeeptools/deeptools/test/test_computeMatrix_referencepoint.py
Matrix headers and sorted-region boundaries use positional group sizes. The regression test checks same-basename groups, boundaries, values, and sorting order.
Change: Bug fix
Merge Risk: Minimal · up to c7a25
This change keeps region groups distinct when input files share a basename, so computeMatrix group boundaries no longer exceed the row count. No concrete merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
Title uses the Conventional Commits form fix: ... with lowercase type and no scope. It names the main change: region groups stay distinct when input filenames match.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
Me caveman. PR description talk about bug: computeMatrix group boundaries wrong when two BED files share basename. Patch counts rows by input file position. Test described. Description match changeset…
Full details: Description check
Explanation
Me caveman. PR description talk about bug: computeMatrix group boundaries wrong when two BED files share basename. Patch counts rows by input file position. Test described. Description match changeset. Pass.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
Clippy (1.99.1)
Clippy execution failed
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
When two input BED files share a basename,
computeMatrixcan write group boundaries beyond the row count.Pass two paths ending in
peaks.bedwith one and two regions and inspect the matrix header.The patch counts retained rows by input file position.
The test checks group boundaries, values and both exports with the input order and with sorting enabled.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N