spatial-stats-neighborhood-enrichment
CommunityUncover spatial co-localization of cell types.
Data & Analytics#spatial-transcriptomics#squidpy#spatial-graphs#neighborhood-enrichment#permutation-testing#cell-type
Authorchenyhvvvv
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Compute neighborhood enrichment z-scores to identify which cell types are spatially co-localized or depleted from each other's neighborhoods using squidpy permutation testing on a spatial neighbor graph. Requires cell type annotations to function correctly.
Core Features & Use Cases
- Detects spatial interactions between cell types by comparing observed neighborhood co-occurrence to randomized expectations.
- Outputs a z-score matrix and counts for downstream visualization (e.g., heatmaps) to interpret tissue organization.
- Applicable to single-slice datasets with x,y coordinates and celltype labels to characterize microenvironment patterns.
Quick Start
Run the neighborhood enrichment workflow on your target slice to obtain the z-score matrix.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: spatial-stats-neighborhood-enrichment Download link: https://github.com/chenyhvvvv/STAT-agent/archive/main.zip#spatial-stats-neighborhood-enrichment Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.