bio-spatial-transcriptomics-spatial-statistics

Compute spatial statistics for spatial transcriptomics data with Squidpy and Scanpy.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/ya-way/cytoclaw-skills --skill bio-spatial-transcriptomics-spatial-statistics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bio-spatial-transcriptomics-spatial-statistics
Source: https://github.com/ya-way/cytoclaw-skills/tree/main/workspace/skills/bio-spatial-transcriptomics-spatial-statistics
Command: npx skills add https://github.com/ya-way/cytoclaw-skills --skill bio-spatial-transcriptomics-spatial-statistics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Researchers need to quantify and interpret spatial patterns in spatial transcriptomics data to identify spatially variable genes and interactions.

Core Features & Use Cases

  • Compute Moran's I and Geary's C to identify spatial autocorrelation across genes or features.
  • Co-occurrence and neighborhood enrichment analyses to understand how cell types or clusters co-localize in tissue space.
  • Scalability and workflow notes: easy integration with AnnData; subset to HVGs for speed.

Quick Start

Tell me how to run spatial statistics on my spatial transcriptomics data using Squidpy.

Frequently Asked Questions about bio-spatial-transcriptomics-spatial-statistics

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

FAQPage Schema
How do I compute Moran's I for spatial transcriptomics data in Squidpy?

This Skill computes Moran's I for spatial transcriptomics data by building spatial neighbor graphs on AnnData objects using Squidpy and Scanpy, then saving spatial autocorrelation results directly to adata.uns.

What is the difference between Moran's I and Geary's C in spatial autocorrelation analysis?

Moran's I and Geary's C are both spatial autocorrelation statistics computed by this Skill to identify spatial patterns in tissue sections, with Moran's I measuring global spatial autocorrelation and Geary's C emphasizing local dissimilarities between neighboring spots.

Can I analyze cell type co-occurrence and neighborhood enrichment in tissue sections using AnnData?

Yes, this Skill computes cell type co-occurrence and neighborhood enrichment on AnnData objects using Squidpy, quantifying how specific cell clusters co-localize within the spatial neighborhood graph of your tissue sections.

Do I need to subset highly variable genes before running spatial statistics on my tissue section?

Subsetting to highly variable genes (HVGs) before running spatial statistics is recommended for scalability and speed, as this Skill processes AnnData objects and subsetting HVGs reduces computational overhead when computing spatial autocorrelation.

Does this spatial statistics workflow support Local Moran's I for identifying spatially variable genes?

Yes, this Skill supports computing Local Moran's I to identify spatially variable genes, calculating local indicators of spatial association across genes or cell types in spatial transcriptomics data processed through Squidpy and Scanpy.

What are the limitations of computing spatial statistics on large spatial transcriptomics datasets?

Computing spatial statistics on large spatial transcriptomics datasets is limited by computational overhead when building spatial neighbor graphs across all genes, which is why subsetting to highly variable genes is recommended for faster co-occurrence and autocorrelation processing.