Spatial transcriptomics tutorials with omicverse

Guide spatial transcriptomics workflows with OmicVerse across preprocessing, deconvolution, and modeling.

1.2k|145|Updated Mar 22, 2021
One-click install
npx skills add https://github.com/Starlitnightly/omicverse --skill spatial-transcriptomics-tutorials-with-omicverse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Spatial transcriptomics tutorials with omicverse
Source: https://github.com/Starlitnightly/omicverse/tree/main/.claude/skills/spatial-tutorials
Command: npx skills add https://github.com/Starlitnightly/omicverse --skill spatial-transcriptomics-tutorials-with-omicverse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires omicverse, scanpy, anndata, numpy, matplotlib, squidpy, networkx, cellpose, stardist, opencv-python, tifffile, tangram, cell2location, pytorch-lightning, pandas, h5py, torch, scikit-learn, gseapy, commot, flowsig, rpy2, and includes references (resource) components.

What problem does it solves? Analyzing spatial transcriptomics data involves complex steps from image processing and cell segmentation to deconvolution and advanced spatial modeling, often requiring diverse tools and expertise. This Skill provides a comprehensive guide to these workflows, simplifying the analysis of Visium, Visium HD, Stereo-seq, and Slide-seq datasets.

Core Features & Use Cases

  • Spatial Preprocessing: Crop, rotate, and align spatial slides, and perform Visium HD cell segmentation with Cellpose.
  • Spatial Deconvolution: Deconvolute cell types using methods like Tangram, cell2location, and Starfysh.
  • Downstream Spatial Modeling: Conduct spatial clustering, multi-slice integration, trajectory modeling, and cell communication analysis.
  • Use Case: Analyze a Visium HD dataset, segment cells using Cellpose, then deconvolve cell types with cell2location, and finally infer spatial communication networks between identified cell populations.

Quick Start

Preprocess my Visium HD data, segment cells with Cellpose, then run Tangram deconvolution, and visualize the inferred cell-type proportions.

Frequently Asked Questions about Spatial transcriptomics tutorials with omicverse

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

FAQPage Schema
How do I preprocess and segment Visium HD spatial transcriptomics data?

Spatial preprocessing involves cropping, rotating, and aligning slides, then segmenting cells using Cellpose. OmicVerse workflows handle coordinate manipulation, quality control metrics, and tile segmentation for Visium HD datasets, producing preprocessed AnnData objects ready for downstream analysis.

What are the main deconvolution methods for spatial transcriptomics?

Deconvolution infers cell-type proportions from spatial data using methods like Tangram, cell2location, and Starfysh. These pipelines map reference transcriptomics to spatial coordinates, resolving cell types at the tissue level across Visium, Stereo-seq, and Slide-seq platforms.

Can I integrate multiple spatial transcriptomics slices and analyze cell communication?

Yes. OmicVerse enables multi-slice integration for combined analysis, spatial clustering across samples, and trajectory modeling. Cell communication analysis reconstructs interaction networks between identified cell populations using spatial proximity and expression data.

Do I need prior image processing experience to segment cells with Cellpose?

No. OmicVerse tutorials guide cell segmentation configuration and execution without requiring deep image processing expertise. Cellpose handles Visium HD tile segmentation automatically within the workflow, producing segmentation masks for deconvolution downstream.

What input data formats does spatial transcriptomics analysis support?

Workflows load Visium, Visium HD, Stereo-seq, and Slide-seq datasets, importing raw spatial matrices and images. OmicVerse handles coordinate mapping, stores intermediate results as AnnData objects, and exports visualizations and processed data in standard bioinformatics formats.

How does trajectory modeling work in spatial transcriptomics?

Trajectory analysis traces developmental or functional paths through spatial cell populations, identifying differentiation or transition sequences. OmicVerse integrates trajectory methods with spatial coordinates, revealing directional cell state changes within tissue architecture.