Part of #149. wave 3 · 0.17.13 · size M · starts after: B1 (both edit `storage/__init__.py`) **Goal.** The RowWriter rule holds in every converter: each chunk or shard is encoded once. **Owns:** `conversion/{text,mudata,features,spatial}.py`, `formats/table.py`, `storage/__init__.py` (`copy_dataset`'s text compression only) **Approach:** - `storage.RowWriter` for text --dense, `write_table`, the obs index blocks and the spatial tables. - MuData's sparse blocks sized by bytes, as everywhere else. - Zarr to h5ad compresses chunked text with gzip, as anndata does. **Findings** | Ref | Sev | Finding | Where | |---|---|---|---| | F223 | M | MuData export reads sparse X 16,384 rows at a time, whatever their bytes | `conversion/mudata.py:716` | | F224 | M | convert text --dense re-encodes X's chunk once per 4 MiB text block | `conversion/text.py:594` | | F225 | M | write_table writes 1 MiB blocks straight into Zarr columns, 17x re-encoding | `formats/table.py:424` | | F226 | M | Zarr to h5ad writes text uncompressed (obs index ~7x anndata's) | `storage/__init__.py:634` | | F227 | L | obs index blocks of 262,144 barcodes straddle Zarr chunks, re-encoded 4x | `conversion/features.py:273` | | F228 | L | Spatial tables are written straight into the arrays, not through RowWriter | `conversion/spatial.py:184` | Done when one PR on `fix/b10` closes this, with a regression test against an oracle for every finding, and docs and changelog in the same PR.
Activity