cellxgene-census

Access CELLxGENE Census single-cell expression data via Python operations.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/ya-way/cytoclaw-skills --skill cellxgene-census-ya-way
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cellxgene-census
Source: https://github.com/ya-way/cytoclaw-skills/tree/main/workspace/skills/labclaw-cellxgene-census
Command: npx skills add https://github.com/ya-way/cytoclaw-skills --skill cellxgene-census-ya-way

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Query and analyze large-scale single-cell data from the CELLxGENE Census programmatically, enabling reproducible cross-dataset queries across tissues, diseases, and cell types.

Core Features & Use Cases

  • Programmatic access to census data via Python (open_soma, get_anndata, get_obs)
  • Cross-tissue and population-scale querying across millions of cells
  • Seamless integration with Scanpy, scvi-tools, and PyTorch workflows

Quick Start

Run a Census query to fetch expression data for a tissue using the CELLxGENE Census API.

Frequently Asked Questions about cellxgene-census

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query large-scale single-cell expression data across multiple tissues?

You can query large-scale single-cell expression data programmatically using the CELLxGENE Census API to retrieve cross-tissue datasets via operations like open_soma, get_anndata, and get_obs.

Can I integrate CELLxGENE Census data with scanpy and scvi-tools workflows?

Yes, CELLxGENE Census data integrates seamlessly with scanpy, scvi-tools, and PyTorch workflows, allowing you to pull expression matrices directly into your existing Python analysis pipelines.

What is the best way to retrieve population-scale single-cell datasets in Python?

Retrieving population-scale single-cell datasets is best handled by using the cellxgene_census library to programmatically access millions of cells and fetch slices as AnnData objects.

Do I need a specific Python environment setup to access the CELLxGENE Census?

Yes, accessing the CELLxGENE Census requires installing the cellxgene_census library and configuring an appropriate Python environment to perform open_soma, get_anndata, and get_obs operations.

How does cross-dataset single-cell exploration work with the CELLxGENE Census?

Cross-dataset single-cell exploration works by using the Census API to query millions of cells across tissues, diseases, and cell types, enabling reproducible population-scale analyses.

What are the limitations of querying single-cell data through the CELLxGENE Census?

Querying single-cell data through the CELLxGENE Census depends on a chosen census_version and requires appropriate Python environment setup, limiting access to environments lacking these specific dependencies.