cellxgene-census-query

Query CZ CELLxGENE Census data by cell type, tissue, and disease.

1.1k|132|Updated Apr 13, 2023
One-click install
npx skills add https://github.com/PharMolix/OpenBioMed --skill cellxgene-census-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cellxgene-census-query
Source: https://github.com/PharMolix/OpenBioMed/tree/main/skills/cellxgene-census-query
Command: npx skills add https://github.com/PharMolix/OpenBioMed --skill cellxgene-census-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enables programmatic access to CZ CELLxGENE Census data for scalable, reproducible single-cell analyses by filtering datasets and retrieving expression data and metadata without downloading entire files.

Core Features & Use Cases

  • Programmatic querying by cell type, tissue, disease, and dataset version
  • Retrieval of expression data, metadata, embeddings, and statistics
  • Integration with PyTorch, Scanpy, and other analysis tools for ML and bioinformatics workflows
  • Cross-dataset analyses and out-of-core processing for large population-scale datasets

Quick Start

Open a Soma session and run a minimal query to fetch an AnnData object for a tissue of interest

Frequently Asked Questions about cellxgene-census-query

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

FAQPage Schema
How do I query single-cell expression data from CZ CELLxGENE Census without downloading the entire matrix?

You can query CZ CELLxGENE Census data programmatically by opening a Soma session and filtering by cell type, tissue, and disease to retrieve expression data and metadata as an AnnData object without downloading entire files.

Can I retrieve pre-calculated embeddings from the Census for specific cell types and tissues?

Yes, querying CZ CELLxGENE Census allows you to filter datasets by cell type, tissue, and disease to retrieve expression data, metadata, and pre-calculated embeddings for targeted single-cell analyses.

Does querying CELLxGENE Census data work with Scanpy and PyTorch machine learning workflows?

Yes, querying CELLxGENE Census integrates directly with Scanpy and PyTorch, enabling you to retrieve filtered single-cell expression data and metadata for large-scale multi-dataset integration and ML pipelines.

What Python version and dependencies do I need to query Census data programmatically?

You need Python 3.9+ and dependencies including cellxgene-census, tiledbsoma, scanpy, pyarrow, pandas, and numpy, with optional PyTorch support for experimental ML pipelines.

What is the best way to perform large-scale single-cell analysis across multiple datasets?

The best way is to query the CELLxGENE Census programmatically, utilizing out-of-core processing to integrate cross-dataset single-cell analyses and enable reproducible research without downloading entire matrices.

How does filtering by dataset version and disease state work when accessing single-cell data?

Filtering by dataset version, disease, tissue, and cell type works by querying the Census programmatically to retrieve specific expression data and metadata subsets, enabling targeted and reproducible single-cell analyses.