celltype-deconvolution

Automates RCTD cell-type deconvolution on spatial transcriptomics data, producing per-spot proportions and dominant celltype labels.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Spatial transcriptomics analysis often lacks per-spot cell-type resolutions; this skill provides reference-based deconvolution using RCTD to infer cell-type proportions for each spatial feature.

Core Features & Use Cases

  • RCTD-based deconvolution: estimates cell-type proportions per spatial spot using a single-cell reference.
  • Dominant cell type assignment: derives a per-spot main cell type for visualization.
  • Use Case: annotate tumor microenvironments on Visium slides by mapping spots to immune and tumor cell types.

Quick Start

Provide a spatial dataset and a linked annotated single-cell reference to run the deconvolution.

Frequently Asked Questions about celltype-deconvolution

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

FAQPage Schema
How do I deconvolve spatial transcriptomics data to identify cell types per spot?

Spatial transcriptomics deconvolution using RCTD infers per-spot cell-type proportions by mapping Visium-like spot data against an annotated single-cell reference, producing dominant celltype labels stored in adata.obs.

What is needed to run reference-based deconvolution on Visium slides?

Reference-based deconvolution requires raw UMI counts in spatial data, an annotated single-cell reference with celltype labels, and overlapping gene sets between the spatial and reference datasets to execute successfully.

Can I use scRNA-seq data to annotate cell types in spatial transcriptomics spots?

Yes, scRNA-seq data serves as the annotated single-cell reference for RCTD deconvolution, estimating cell-type proportions for each spatial feature and assigning dominant cell types to Visium-like spots.

How does RCTD assign dominant cell types to spatial spots?

RCTD estimates cell-type proportions per spatial spot using a single-cell reference, then derives a dominant cell type for each spot, storing the results in adata.obsm['deconv_weights'] and adata.obs['celltype'].

Does this deconvolution method work for annotating tumor microenvironments on Visium slides?

Yes, RCTD deconvolution is applicable for annotating tumor microenvironments on Visium slides by mapping spatial spots to immune and tumor cell types using an annotated single-cell reference.

What are the limitations of using RCTD for spatial transcriptomics deconvolution?

RCTD deconvolution requires overlapping gene sets between spatial and reference data, raw UMI counts, and an annotated single-cell reference; spots lacking these prerequisites cannot be accurately deconvolved.