Skip to content

Commit 09416d1

Browse files
authored
Merge pull request #47 from cellgeni/refactor/mtx-groundwork
Groundwork for MTX folders: shared CSR builder and feature table
2 parents fe7ce47 + 13c8c8f commit 09416d1

10 files changed

Lines changed: 754 additions & 390 deletions

File tree

‎AGENTS.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ Each layer calls only the layers below it:
6161
- `concat.py` concatenates on disk;
6262
- `recast.py` handles dtype, layout and density changes, including an
6363
out-of-core transpose;
64+
- `csr_build.py` builds a CSR matrix from entries in any order, through
65+
row-range buckets on disk. The transpose uses it, and so does anything
66+
that reads entries out of order;
6467
- `query.py` and `select.py` hold the expression language behind
6568
`--obs-query`.
6669
- **`elements/`**: the AnnData on-disk spec.
@@ -82,7 +85,9 @@ Each layer calls only the layers below it:
8285
other formats. To add a format:
8386
- add one `Format` entry in `conversion/__init__.py::FORMATS` with a content
8487
sniffer;
85-
- write a converter module (`tenx.py` is the model);
88+
- write a converter module (`tenx.py` is the model). The feature table that
89+
every 10x-style format shares (var names, feature-type splits, var to
90+
id/name/type on export) is in `features.py`; reuse it;
8691
- add Cell Ranger-style h5py fixtures in `tests/conftest.py`;
8792
- add a scanpy comparison in `tests/test_external_readers.py`.
8893

0 commit comments

Comments
 (0)