Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2772 +/- ##
==========================================
- Coverage 88.60% 86.54% -2.07%
==========================================
Files 51 51
Lines 8892 8901 +9
==========================================
- Hits 7879 7703 -176
- Misses 1013 1198 +185
|
This branch has not been deployed
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.
concat_on_diskuses the first sparse block's dtype for the output. When an int8 input is followed by int32 values[300, 400], the output contains[127, 127]in H5AD or[44, -112]in Zarr. Fractional values and missing-value fills can also be lost.Determine a common dtype from all inputs after reindexing, then convert each block before writing or appending. Empty sparse matrices account for promotion caused by fills without reading input values. Converting every block also fixes HDF5 errors when appending real blocks to complex output.
Functional verification
Wrote small annotated AnnData batches to H5AD and Zarr, concatenated them through the public API with a small chunk budget, and reopened the output files. Compared X and the counts layer separately against explicit expected arrays:
[300, 400]remain intact and sum to700.0.5and1.25survive while the separate counts layer stays integer.NaNor0.5after gene reordering.Also checked cell and gene labels, concatenation along the gene axis, an empty first batch, and integer inputs with an unused NaN fill. Regression tests and project checks pass.
Related work: #2636 proposes pairwise support; #2558 handles missing mapping keys and touches the same writer.
Checklist