Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Queries the CELLxGENE Census single-cell atlas by cell type, tissue, disease or organism, returning AnnData or PyTorch datasets.
36% 100%+64 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Not used yet
CZ CELLxGENE Census provides programmatic access to 61+ million standardized single-cell RNA-seq observations from human and mouse. It enables population-scale queries by cell type, tissue, disease, and donor metadata, returning expression data as AnnData objects or PyTorch dataloaders for ML workflows.
pip install cellxgene-census
# For ML workflows
pip install cellxgene-census[experimental]
API Rate Limits: Census uses TileDB-SOMA cloud backend. No explicit rate limit, but large queries (>1M cells) should use out-of-core processing (Module 4) to avoid memory exhaustion. Always use context managers for proper resource cleanup.
import cellxgene_census
with cellxgene_census.open_soma() as census:
# Get B cells from lung
adata = cellxgene_census.get_anndata(
census=census,
organism="Homo sapiens",
obs_value_filter="cell_type == 'B cell' and tissue_general == 'lung' and is_primary_data == True",
obs_column_names=["cell_type", "disease", "donor_id"],
)
print(f"Retrieved {adata.n_obs} cells × {adata.n_vars} genes")
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.