single-cell-data / SOMA

A flexible and extensible API for annotated 2D matrix data stored in multiple underlying formats.
MIT License
69 stars 9 forks source link

[python] Use ` _index_factory` in `AxisIndexer` class #189

Closed jp-dark closed 3 months ago

jp-dark commented 3 months ago

Replace pd.Index with the user provided _index_factory when construction the cached var/obs indices.

jp-dark commented 3 months ago

It is probably worth running a tiledbsoma pipeline with the somacore dep pointed at this change to make sure it works end-to-end.

Tested this locally and all tests passed.