deconvolution-flashdeconv

Estimate cell type proportions in spatial transcriptomics spots using an scRNA-seq reference.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scanpy, pandas, numpy, flashdeconv.

What problem does it solve?

Fast and scalable deconvolution of spatial transcriptomics spots by using a reference-based method to estimate cell-type composition per spot.

Core Features & Use Cases

  • Ultra-fast, reference-based deconvolution (FlashDeconv) with outputs stored in adata.obsm['flashdeconv'] and per-spot dominant cell type in adata.obs['celltype']
  • Compatible with single-slice gene-expression data and a properly formatted scRNA-seq reference (.h5ad) with a celltype column
  • No GPU needed; Python-based workflow designed for large spatial datasets

Quick Start

Run the FlashDeconv workflow on a spatial slice with a reference scRNA-seq dataset to obtain per-spot proportions and dominant cell types.

Frequently Asked Questions about deconvolution-flashdeconv

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

FAQPage Schema
How do I perform spatial transcriptomics deconvolution to estimate cell type proportions per spot?

Spatial transcriptomics deconvolution estimates per-spot cell type proportions by applying a reference-based method to your gene-expression data. This Skill uses an annotated scRNA-seq reference to return per-spot proportions and a dominant cell type for each spot.

Do I need a GPU to run reference-based spot deconvolution on large spatial datasets?

No GPU is needed to run reference-based spot deconvolution on large spatial datasets. This Skill provides a Python-based workflow using the FlashDeconv method, designed to be ultra-fast and scalable for single-slice gene-expression data on standard compute.

What input format is required for scRNA-seq reference deconvolution of spatial transcriptomics data?

Reference-based deconvolution requires an .h5ad file containing the scRNA-seq reference dataset. The reference must include a cell type column, with the default column name expected to be 'celltype', to successfully map cell proportions to spatial spots.

How are deconvolution results stored in anndata after estimating spatial spot cell types?

Deconvolution results are stored directly within the anndata object. The estimated per-spot cell type proportions are saved in adata.obsm['flashdeconv'], while the dominant cell type identified for each individual spot is stored in adata.obs['celltype'].

What is the best way to deconvolve a single-slice spatial transcriptomics dataset without GPU acceleration?

The best way to deconvolve a single-slice spatial transcriptomics dataset without GPU acceleration is using the FlashDeconv method. It performs ultra-fast, reference-based estimation of cell-type composition per spot using Python, scanpy, pandas, and numpy.

Can I use spatial transcriptomics deconvolution if my scRNA-seq reference lacks a celltype column?

No, spatial transcriptomics deconvolution with this Skill requires a properly formatted scRNA-seq reference containing a celltype column. Without annotated cell types in the reference .h5ad file, the algorithm cannot map reference profiles to estimate per-spot proportions.