Spatial transcriptomics analysis

From swaruplab/operon · View interactive version

Spatial transcriptomics analysis is an AI agent skill from the GitHub repository swaruplab/operon. Automated analysis pipeline for Spatial Transcriptomics (Visium, Xenium) integrating histology and gene expression.

How to use this skill

Skill file

Spatial Transcriptomics Skill

Version: 1.0.0

Date: February 2026

Overview

This skill provides automated analysis capabilities for Spatial Transcriptomics data, specifically designed for 10x Visium and Xenium platforms. It enables the integration of histological data with gene expression profiles to uncover spatial organization of cell types.

Capabilities

  1. Data Loading: Supports Spaceranger output (h5, images).
  2. QC & Preprocessing: Spatial QC metrics, normalization.
  3. Spatial Variable Features: Identification of spatially variable genes (SVGs) using Moran's I and Geary's C.
  4. Deconvolution: Interface for cell type deconvolution (mapping scRNA-seq to spatial).
  5. Visualization: Interactive spatial plots overlaying gene expression on tissue images.

Usage

from Skills.Genomics.Spatial_Transcriptomics.spatial_analyzer import SpatialAnalyzer

# Initialize
sa = SpatialAnalyzer(data_path="./data/visium_sample1")

# Run Pipeline
sa.load_data()
sa.preprocess()
sa.find_spatial_features()
sa.plot_spatial("INS", save_path="./output/insulin_spatial.png")

Requirements

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.