This gives you direct access to 61+ million standardized single-cell genomics records from the CZ CELLxGENE Census. You can filter by cell type, tissue, or disease, then pull expression matrices into scanpy for analysis or pipe them into PyTorch dataloaders for training ML models. The API handles both in-memory queries for smaller datasets and streaming iterators when you're working with millions of cells that won't fit in RAM. It's built on top of SOMA, so you get versioned snapshots for reproducibility. If you're doing population-scale single-cell work or need large labeled datasets for cell type classification, this beats scraping individual studies from GEO.

skills.sh installs
219
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill cellxgene-census --agent claude-code

Installs into .claude/skills of the current project.

Files

CZ CELLxGENE Census

Overview

The CZ CELLxGENE Census provides programmatic access to a comprehensive, versioned collection of standardized single-cell genomics data from CZ CELLxGENE Discover. This skill enables efficient querying and analysis of millions of cells across thousands of datasets.

The Census includes:

  • 61+ million cells from human and mouse
  • Standardized metadata (cell types, tissues, diseases, donors)
  • Raw gene expression matrices
  • Pre-calculated embeddings and statistics
  • Integration with PyTorch, scanpy, and other analysis tools

When to Use This Skill

This skill should be used when:

  • Querying single-cell expression data by cell type, tissue, or disease
  • Exploring available single-cell datasets and metadata
  • Training machine learning models on single-cell data
  • Performing large-scale cross-dataset analyses
  • Integrating Census data with scanpy or other analysis frameworks
  • Computing statistics across millions of cells
  • Accessing pre-calculated embeddings or model predictions

Installation and Setup

Install the Census API:

uv pip install cellxgene-census

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Data Science & ML
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1davila7 avatarlamindbdavila7/claude-code-templatesThis skill should be used when working with LaminDB, an open-source data framework for biology that makes data queryable, traceable, reproducible, and FAIR. Use219skills.sh installs
2davila7 avatargenimldavila7/claude-code-templatesThis skill should be used when working with genomic interval data (BED files) for machine learning tasks. Use for training region embeddings (Region2Vec, BEDspa214skills.sh installs
3davila7 avatarmolfeatdavila7/claude-code-templatesMolecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular M209skills.sh installs
4levnikolaevich avatarln-813-optimization-plan-validatorlevnikolaevich/claude-code-skillsUse when validating optimization plans through the evaluation platform with mandatory research, parallel agent evidence, sequential merge, and bounded refinemen185skills.sh installs
5delphine-l avatarfolder-organizationdelphine-l/claude_globalBest practices for organizing project folders, file naming conventions, and directory structure standards for research and development projects149skills.sh installs
6opensensenova avatarsn-da-excel-workflowopensensenova/sensenova-skillsExcel 数据分析多步编排器。覆盖:(1) 读取多 Sheet Excel 文件并统计行数,(2) 大文件检测(≥10k 行自动 Parquet 优化),(3) 数据清洗(缺失值、文本标准化、无效字符),(4) 条件筛选与分类提取,(5) 跨 Sheet 统计聚合,(6) 导出 Excel/CSV 并提供下载链接。覆147skills.sh installs