deconvolution-cell2location

Estimate per-spot cell-type proportions with uncertainty using Bayesian deconvolution from scRNA-seq references.

3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/chenyhvvvv/STAT-agent --skill deconvolution-cell2location
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deconvolution-cell2location
Source: https://github.com/chenyhvvvv/STAT-agent/tree/main/stat_agent/skills/deconvolution-cell2location
Command: npx skills add https://github.com/chenyhvvvv/STAT-agent --skill deconvolution-cell2location

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reference-based Bayesian deconvolution of spatial transcriptomics to estimate cell-type proportions per spot, providing uncertainty estimates.

Core Features & Use Cases

  • Two-stage model: learn cell type signatures from scRNA-seq reference, then map to spatial spots.
  • Uncertainty quantification: provides credible intervals for each cell type proportion.
  • Output integration: stores results in adata.obsm['deconv_weights'] and adata.obs['celltype'] for downstream analysis.
  • Use Case: Deconvolve Visium data to map cell-type composition across tissue sections.

Quick Start

Load a annotated scRNA-seq reference and a Visium spot dataset to run Cell2location and obtain per-spot cell-type proportions with uncertainties.

Frequently Asked Questions about deconvolution-cell2location

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

FAQPage Schema
How do I estimate cell-type proportions in spatial transcriptomics data?

Bayesian deconvolution estimates spatial transcriptomics cell-type proportions by using a two-stage model that first learns cell type signatures from a scRNA-seq reference and then maps them to spatial spots to calculate per-spot composition.

What is the best way to deconvolve Visium data using a scRNA-seq reference?

The best way to deconvolve Visium data is using a two-stage Bayesian model that learns cell type signatures from an annotated scRNA-seq reference and maps them to spatial locations, outputting per-spot proportions and dominant cell types.

Do I need a GPU to run cell2location for spatial transcriptomics deconvolution?

Yes, you need a GPU for efficient training when running cell2location to deconvolve single-slice spatial transcriptomics datasets to estimate cell-type proportions and provide uncertainty estimates.

How does Bayesian deconvolution quantify uncertainty in cell-type proportions?

Bayesian deconvolution quantifies uncertainty by providing credible intervals for each cell type proportion estimated per spatial spot, allowing you to assess the confidence of the mapped cell-type composition across tissue sections.

What inputs are required to map cell-type composition across tissue sections?

You need an annotated single-cell RNA-seq reference file with a celltype label column and a spatial spot dataset, which the model uses to output deconvolution weights and dominant cell types per spot.

Where are deconvolution results stored after estimating spatial cell-type proportions?

Deconvolution results are stored in adata.obsm['deconv_weights'] for per-spot cell-type proportions and adata.obs['celltype'] for the dominant cell type, enabling seamless downstream analysis integration.