cellxgene-census
API to facilitate the use of the CZ CELLxGENE Discover Census. For more information about the API and the project visit https://github.com/chanzuckerberg/cellxgene-census/
What it is and what it does
cellxgene_census is a client library for accessing the CZ CELLxGENE Discover Census, a curated repository of single-cell genomics data. It abstracts the complexity of querying and retrieving cell metadata and gene expression measurements from a large distributed dataset, allowing researchers to filter cells by biological attributes (tissue, cell type, disease status, etc.) and fetch results as pandas DataFrames or other standard formats.
The package depends on tiledbsoma for efficient sparse array access, anndata for in-memory representation of single-cell data, and s3fs for cloud storage integration. It is designed for bioinformaticians and computational biologists who need programmatic access to reference single-cell datasets without managing raw files locally.
Use it for:
- Query cell metadata across tissues and organisms to identify cells matching specific biological criteria for downstream analysis
- Retrieve gene expression matrices for a subset of cells and genes to train machine learning models on reference data
- Integrate Census data with local analysis pipelines by fetching pre-filtered cell populations as DataFrames
- Explore cell type distributions and tissue composition across the human and mouse reference atlases
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python API to query and retrieve cell metadata and expression data from the CZ CELLxGENE Discover Census, a large-scale single-cell genomics dataset.
Yes, if you work with single-cell genomics and need programmatic access to the CELLxGENE Census. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and installs with low friction. It is appropriate for research and production use. Install only if you have network access to the Census service and require Python 3.10 or later.
Install
cellxgene-census on PyPI
pip
pip install cellxgene-censusuv
uv add cellxgene-censuspoetry
poetry add cellxgene-censusInstalling cellxgene-census
Before you install
Low friction installation with a pure-Python wheel. Actively maintained as of 2026-08-04 with recent releases. Requires Python 3.10 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions—suitable for most research and production contexts.
Quickstart
pip install cellxgene_census
import cellxgene_census
with cellxgene_census.open_soma() as census:
cell_metadata = cellxgene_census.get_obs(
census,
"homo_sapiens",
value_filter="cell_type == 'neuron'",
column_names=["cell_type", "tissue"]
)
Requires Python 3.10 or later and network connectivity to the CZ CELLxGENE Discover Census service.
Verify before relying
- Whether the package supports offline access or requires live network connectivity to the Census service
- Performance characteristics when querying large cell populations or complex filters
- Data versioning and reproducibility guarantees across different Census releases
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — tiledbsoma, anndata, numpy, requests, typing_extensions, s3fs |
| Maintenance | actively maintained — 51 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,903/month — #14,581 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cellxgene_census-1.18.0-py3-none-any.whl
Tags
More Bio-Informatics packages
NetworkX provides data structures and…
permissive · top 1,000 on PyPI
biopythonBiopython provides Python tools for…
unclear · top 5,000 on PyPI
firecrawl-pyClient library for the Firecrawl API that…
permissive · top 5,000 on PyPI
intervaltreeA self-balancing interval tree data structure…
permissive · top 5,000 on PyPI
albumentationsAlbumentations applies image transformations to…
permissive · top 5,000 on PyPI
PubChemPyPubChemPy is a Python wrapper around the…
permissive · top 5,000 on PyPI
tiledbsomaTileDB-SOMA is a Python implementation of the…
permissive · top 15,000 on PyPI
somacoreProvides the Python reference implementation of…
permissive · top 15,000 on PyPI
cgcg is a clinical sequencing platform that…
unclear · top 15,000 on PyPI
biontyBionty provides access to and management of…
unclear · top 15,000 on PyPI
biothings-clientbiothings_client provides Python wrappers to…
permissive · top 5,000 on PyPI
scanpyScanpy is a toolkit for preprocessing,…
permissive · top 5,000 on PyPI
pydeseq2PyDESeq2 performs differential expression…
permissive · top 15,000 on PyPI
pyrangesPyRanges provides efficient querying and…
permissive · top 15,000 on PyPI
refgenieRefgenie manages standardized folder structures…
permissive · top 15,000 on PyPI
censusProvides a Python wrapper for the United States…
permissive · top 15,000 on PyPI