spatial-domain-stagate

Identify spatial domains in single-slice spatial transcriptomics data using STAGATE's graph-attention auto-encoder.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

STAGATE-based spatial domain detection identifies spatially coherent regions in single-slice spatial transcriptomics data by learning spatially informed embeddings that jointly model gene expression and neighborhood structure.

Core Features & Use Cases

  • STAGATE-based domain detection using a graph-attention auto-encoder that jointly models gene expression and spatial neighbor relationships.
  • Works on cell-level and spot-level data, requires x,y coordinates, and outputs adata.obs['spatial_domain'] with per-cell/spot domain labels.
  • Flexible domain counting via n_domains (or auto-detection); supports Gaussian Mixture (tied covariance) or Leiden-based clustering and stores domain metadata for downstream visualization.

Quick Start

Provide a single-slice spatial transcriptomics dataset and execute the STAGATE workflow to generate spatial_domain labels in the AnnData object.

Frequently Asked Questions about spatial-domain-stagate

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

FAQPage Schema
How do I detect spatial domains in single-slice spatial transcriptomics data?

Spatial domain detection identifies spatially coherent regions in single-slice spatial transcriptomics data by applying a graph-attention auto-encoder that jointly models gene expression and spatial neighborhood structure to generate per-cell or per-spot domain labels.

Can I use this STAGATE workflow for both cell-level and spot-level spatial data?

Yes, the STAGATE workflow works on both cell-level and spot-level spatial transcriptomics data. You need to provide x,y coordinates in your AnnData object to successfully generate the spatial domain assignments.

How does STAGATE clustering assign domain labels to AnnData objects?

STAGATE clustering assigns domain labels by learning spatially informed embeddings through a graph-attention auto-encoder, then applying Gaussian Mixture or Leiden-based clustering to output per-cell/spot labels in adata.obs['spatial_domain'].

Do I need to predefine the number of spatial domains for spatial transcriptomics analysis?

No, you do not need to strictly predefine the number of spatial domains. The STAGATE workflow allows flexible domain counting via the n_domains parameter or supports automatic domain detection directly from the data.

What is the best way to model spatial neighbor relationships in spatial transcriptomics data?

Modeling spatial neighbor relationships is best handled by jointly integrating gene expression and spatial coordinates using a graph-attention auto-encoder, which learns spatially informed embeddings for accurate spatial domain identification.

What dependencies are required to run STAGATE for spatial domain detection?

Running STAGATE for spatial domain detection requires the STAGATE package, with optional support from STAGATE_pyG, to process the AnnData object and output spatial domain assignments in adata.obs.