Add IVCSC/IVCSR file storage format and default Blosc2+LZ4 compression - #2
Merged
Conversation
VCSCAnnData.write_h5ad/write_zarr gain format="ivcsc", which byte-packs the minor-axis indices (delta+varint) for a smaller file; reading always decompresses straight back into a plain VCSCArray/VCSRArray, so IVCSC is purely an on-disk storage format with no separate in-memory type. Both write methods also now default to Blosc2+LZ4 compression for every array (override via dataset_kwargs). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016hqRfanyt3BKX8GsNPSdK2
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
VCSCAnnData.write_h5ad/write_zarracceptformat="ivcsc", which delta+varint byte-packs the minor-axisindicesarray for a smaller file. This is storage-only — reading a file (viaread_h5ad/read_zarr, oranndata.io.read_elemanywhere in the registry) always decompresses straight back into an ordinaryVCSCArray/VCSRArray; there is no separate in-memory IVCSC type.write_h5ad/write_zarrto Blosc2+LZ4 compression for every array written (viahdf5pluginfor HDF5, zarr's native Blosc codec for zarr), overridable viadataset_kwargs.Test plan
uv run pytest(336 passed, 10 skipped)uv run ruff check .uv run ty checkuv run sphinx-build -b html docs docs/_build/htmlhttps://claude.ai/code/session_016hqRfanyt3BKX8GsNPSdK2