This skill covers estimating cell type composition in spatial transcriptomics spots using reference-based deconvolution methods like cell2location, Tangram, and RCTD.
# cell2location
pip install cell2location
# Tangram
pip install tangram-sc
# RCTD (R package)
# install.packages('spacexr')Tell your AI agent what you want to do:
- "Deconvolve my Visium data using this scRNA-seq reference"
- "Estimate cell type proportions in each spot"
"Run cell2location on my spatial data"
"Use Tangram to map cell types to spatial spots"
"Plot cell type proportions spatially"
"Show the dominant cell type in each spot"
"Compare deconvolution results with marker gene expression"
- Load spatial and reference scRNA-seq data
- Find shared genes and preprocess
- Train deconvolution model
- Estimate cell type proportions per spot
- Visualize results
- Reference quality - Better reference = better deconvolution
- Marker genes - Help Tangram; cell2location learns automatically
- N_cells_per_location - Adjust based on tissue/platform
- Validation - Check correlation with known marker genes