cellxgene-census

Query CELLxGENE Census single-cell data across millions of cells.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill cellxgene-census-k-dense-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cellxgene-census
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/cellxgene-census
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill cellxgene-census-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Access and analyze standardized, versioned single-cell data across millions of cells and thousands of datasets from the CELLxGENE Census, enabling scalable population-scale queries and cross-dataset comparisons.

Core Features & Use Cases

  • Programmatic access to census_info and census_data for rapid exploration of datasets, metadata, and expression matrices.
  • In-memory queries for small analyses and out-of-core processing for large-scale analyses, including integration with scanpy and scvi-tools.
  • End-to-end workflows for cross-tissue analyses, dataset integration, and machine learning experiments using PyTorch.

Quick Start

Install the package and run a sample query to retrieve cell type metadata.

Frequently Asked Questions about cellxgene-census

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

FAQPage Schema
How do I query single-cell data across millions of cells from multiple datasets?

To query single-cell data across millions of cells, you programmatically access the CELLxGENE Census to retrieve standardized metadata and expression matrices from thousands of datasets. It supports filtering by is_primary_data to ensure you only retrieve unique cells.

What is the best way to run population-scale analyses on standardized single-cell datasets?

The best way to run population-scale analyses is using the CELLxGENE Census, which provides versioned single-cell data and supports out-of-core processing for large-scale cross-dataset comparisons without loading everything into memory.

Can I use scanpy and scvi-tools for machine learning workflows with CELLxGENE Census data?

Yes, you can use scanpy and scvi-tools with CELLxGENE Census data. The system supports integration with these tools for in-memory analyses and enables end-to-end machine learning experiments using PyTorch for out-of-core workflows.

How do I retrieve cell type metadata from the CELLxGENE Census?

To retrieve cell type metadata, you programmatically query the census_info and census_data modules. This allows rapid exploration of standardized dataset metadata and expression matrices across the entire versioned Census.

Does querying the CELLxGENE Census require filtering for unique cells?

Filtering for unique cells by is_primary_data is required when querying the CELLxGENE Census. This ensures your cross-tissue analyses and dataset integration workflows avoid duplicate data across the millions of indexed cells.