skillfed

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/

cellxgene-census v1.18.0 76.9K downloads/30d#14,581 on PyPI129
Permissive license MIT Active released

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-census

uv

uv add cellxgene-census

poetry

poetry add cellxgene-census

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Bio-Informatics

Tags

single-cell genomics data accesscellxgene census apicell metadata querygene expression data retrievalbioinformatics data portalsingle-cell rna-seq database
single-cell-genomicsbioinformaticsdata-portal

More Bio-Informatics packages