Repository navigation
fix(io): read legacy AnnData modality encodings - #212
Open
viranovskaya wants to merge 5 commits into
Open
viranovskaya wants to merge 5 commits into
viranovskaya wants to merge 5 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #212 +/- ##
=======================================
Coverage 91.45% 91.46%
=======================================
Files 12 12
Lines 1885 1887 +2
=======================================
+ Hits 1724 1726 +2
Misses 161 161
🚀 New features to boost your workflow:
|
viranovskaya
marked this pull request as ready for review
October 11, 2026 14:19
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.
Summary
Fixes #209: read
.h5mufiles written by MuData 0.1.1 and earlier, which used the legacyAnnData/0.1.0modality encoding.Recognize only that exact encoding pair and read its child elements through the existing callbacks. Keep the modern reader, subtype reconstruction, backed reads, and raw handling unchanged. Unknown encodings and unsupported versions still raise an error.
Add regression tests for full-file and single-modality reads, dense and sparse matrices, all three read modes, string and byte attributes, and input-file immutability. Include a changelog entry.
Synced with current main, including the static typing changes in #218. The net diff is limited to the reader, tests, and changelog: three files, +62/−3 lines.
Local validation
IORegistryErroron current main; the two unknown-encoding checks pass.hatch check types: no issues in 30 source files, using the upstream-configured AnnData-main dependency.minipbcite.h5mureads through both APIs in all three modes without changing its SHA-256.Baseline limitations
read_zarrcallsrequire_groupon a read-only Zarr 2 group, raisingReadOnlyError. All 26 added regression/control cases pass.-W -E -a, Sphinx 9.1.1) reports 16 unresolved type-reference warnings for_AlignedAnyandAlignedArrayinMuData.obsm/obsp/varm/varp. Unmodified current main produces the identical 16 warnings in the same environment.These upstream issues are not included in this legacy-reader fix. No dependency pins, warning filters, or type-check suppressions are added.
AI assistance: Codex assisted with implementation, regression tests, and local validation.