annotation-tangram

Map single-cell reference annotations onto spatial transcriptomics data with Tangram.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tangram enables the transfer of cell-type annotations from a matched single-cell reference onto spatial transcriptomics data, providing spatially-resolved cell type labels.

Core Features & Use Cases

  • Cross-modal mapping: projects scRNA-seq cell types onto tissue coordinates for both cell-level annotation and spot-level deconvolution.
  • Flexible workflow: loads the spatial slice and reference, selects cell-type markers, runs Tangram mapping, and stores predictions.
  • Use Case: annotate a tumor biopsy by projecting known cell types onto the spatial map to reveal spatial organization of cell populations.

Quick Start

Provide a reference scRNA-seq dataset and a matching spatial dataset, then run the Tangram pipeline to project cell-type labels onto spatial coordinates.

Frequently Asked Questions about annotation-tangram

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

FAQPage Schema
How do I map scRNA-seq cell types onto spatial transcriptomics data?

To map scRNA-seq cell types onto spatial transcriptomics data, this workflow uses Tangram to project cell-type labels from an annotated single-cell reference onto spatial coordinates. You provide a reference .h5ad file, a spatial dataset, and configure the cell-type key.

Can I perform spot-level deconvolution using a single-cell reference?

Yes, you can perform spot-level deconvolution using a single-cell reference. The Tangram workflow supports both cell-level annotation and spot-level deconvolution, projecting scRNA-seq cell-type labels to spatial locations for accurate tissue characterization.

What inputs do I need to run Tangram spatial mapping?

To run Tangram spatial mapping, you need an annotated scRNA-seq reference dataset in .h5ad format and a matching spatial transcriptomics dataset. You also need to configure the cell-type key and mapping parameters to execute the pipeline.

Does this workflow support both cell-level annotation and spot-level deconvolution?

Yes, this workflow supports both cell-level annotation and spot-level deconvolution. Tangram projects cell-type labels from scRNA-seq references to spatial locations, enabling accurate spatial characterization of tissues across slices for either resolution.

What is the best way to annotate a tumor biopsy spatial map with known cell types?

The best way to annotate a tumor biopsy spatial map is by projecting known cell types from an scRNA-seq reference onto the spatial data using Tangram. This transfers single-cell annotations to reveal the spatial organization of cell populations.

Why do I need marker genes to project scRNA-seq annotations to spatial coordinates?

You need marker genes to project scRNA-seq annotations to spatial coordinates because the Tangram workflow selects cell-type markers to align the single-cell reference with the spatial transcriptomics slice, ensuring accurate mapping of labels and spot-level deconvolution.