Python backend for cBioPortal Cell Explorer. Converts single-cell RNA-seq data (h5ad) to Zarr v3 stores optimized for web-based visualization.
This is a uv workspace monorepo:
| Package | Description |
|---|---|
cell2zarr |
h5ad to Zarr conversion pipeline |
cell-explorer-api |
FastAPI API + static file serving |
uv syncTo convert single-cell RNA-seq data for use with Cell Explorer, see the cell2zarr documentation.
Quick start:
# Convert h5ad to Zarr
cell2zarr convert input.h5ad output.zarr --two-phase --encoding-config encoding.json
# Add a UMAP embedding to an existing store
cell2zarr add atlas.h5ad atlas.zarr --key obsm/X_umapuv run pytest packages/cell2zarr/tests/ -v# API only (no static serving)
uv run uvicorn cell_explorer_api.main:app --reload
# With frontend static serving
STATIC_DIR=/path/to/frontend/dist uv run uvicorn cell_explorer_api.main:app --reload
# Export OpenAPI spec
uv run python -m cell_explorer_api.export_openapi > openapi.jsonMIT