Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cellxgene-census

Skill by K-Dense-AI

Queries the CZ CELLxGENE Census for versioned public single-cell and spatial transcriptomics data. Built for researchers who need cell metadata, expression slices and reference atlas comparisons.

  • Score 94
  • 59k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cellxgene-census

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/cellxgene-census ~/.claude/skills/cellxgene-census

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cellxgene-census in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The cellxgene-census skill gives an assistant programmatic access to the CZ CELLxGENE Census, a versioned collection of standardized single-cell and spatial transcriptomics data. It covers population-scale cell metadata, gene expression slices, Census summary counts, source H5AD lookups and downloads, embeddings and spatial data. The skill pins a Census release, such as the 2025-11-08 stable LTS build, so analyses stay reproducible.

The source describes workflows for AnnData, Scanpy, TileDB-SOMA and TileDB-SOMA-ML, including PyTorch data loaders. It is aimed at researchers working with public data across organisms, tissues, diseases, assays and cell types. For analysis of local single-cell data, the skill points users to scanpy, anndata or scvi-tools instead.

Written from the project's SKILL.md and checked against it.

What it can do

  • Explore Census metadataLists datasets, cell counts and metadata by cell type, tissue, disease or assay.
  • Query expression dataLoads small to medium gene expression slices into an AnnData object.
  • Large-scale queriesProcesses slices out of core when the data will not fit in memory.
  • PyTorch data loadersStreams Census batches for model training with TileDB-SOMA-ML.
  • Spatial Census dataAccesses spatial transcriptomics assays when the spatial extra is installed.
  • Scanpy integrationPasses a Census slice into a standard Scanpy analysis workflow.
  • Gene presence checksShows which datasets measured a given gene, using feature_id as the key.
  • Source H5AD lookupFinds source H5AD URIs and downloads for Census datasets.

What you need

  • Linux or macOS
  • Python 3.10 or later
  • Network access to public HTTPS manifests and S3
  • tiledbsoma-ml and PyTorch for ML training

Try asking

  • Count B cells by tissue in the Census for Homo sapiens
  • Pull CD4 and CD8A expression for T cells from the Census
  • Find the source H5AD files for a lung dataset in CELLxGENE

Good to know

  • Remote query snippets are illustrative; verify the release and schema before large loads.
  • Gene symbols are not unique in schema 2.4.0, so use feature_id.
  • The old cellxgene_census.experimental.ml loaders are absent from version 1.18.0.
  • A zero in the presence matrix means the gene was not measured, not zero expression.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cellxgene-census/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Edit Bash

  • SKILL.md13 KB
  • references/api_access.md6 KB
  • references/census_schema.md9 KB
  • references/common_patterns.md15 KB
  • references/core_workflow_patterns.md11 KB

Alternatives to cellxgene-census

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

cellxgene-census: common questions

Which Census release does the skill use?

The examples pin the 2025-11-08 stable LTS build, which the source says was verified on 2026-09-30. The skill advises recording the release date used.

Which organisms does the Census cover?

The source lists human, mouse, marmoset, rhesus macaque and chimpanzee data in the current schema.

Does it need credentials?

The compatibility note says no Census credentials are required. It does need network access to public HTTPS and S3 endpoints.

How do I install cellxgene-census?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cellxgene-census free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is cellxgene-census safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cellxgene-census?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

cellxgene-census Install

Add to stack

Loading.