Agent skill · Data & Analytics

bio-spatial-transcriptomics-spatial-statistics

Compute spatial statistics for spatial transcriptomics data using Squidpy. Calculate Moran's I, Geary's C, spatial autocorrelation, co-occurrence analysis, and neighborhood enrichment.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill spatial-statistics-gptomics-bioskills --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/analysis/spatial-statistics-gptomics-bioskills/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Spatial Statistics Compute spatial statistics and identify spatially variable features. ## Required Imports ```python import squidpy as sq import scanpy as sc import pandas as pd import numpy as np ``` ## Compute Spatial Autocorrelation (Moran's I) ```python # Requires spatial neighbors sq.gr.spatial_neighbors(adata, coord_type='generic', n_neighs=6) # Compute Moran's I for all genes (can be slow) sq.gr.spatial_autocorr(adata, mode='moran') # Or for specific genes sq.gr.spatial_autocorr(adata, mode='moran', genes=['GENE1', 'GENE2', 'GENE3']) # Results stored in adata.uns['moranI'] moran_results = adata.uns['moranI'] print(moran_results.head(20)) ``` ## Interpret Moran's I ```python # Moran's I ranges from -1 to 1 # I > 0: positive spatial autocorrelation (similar values cluster) # I = 0: random spatial distribution # I < 0: negative spatial autocorrelation (dissimilar values cluster) # Get significantly spatially variable genes svg = moran_results[moran_results['pval_norm'] < 0.05].sort_values('I', ascending=False) print(f'Found {len(svg)} spatially variable genes (p < 0.05)') print('\nTop 10 spatially variable genes:') print(svg.head(10)[['I', 'pval_norm']]) ``` ## Compute Geary

What's inside
Steps it walks through
  1. Required Imports
  2. Compute Spatial Autocorrelation (Moran's I)
  3. Interpret Moran's I
  4. Compute Geary's C
  5. Co-occurrence Analysis
  6. Interpret Co-occurrence
  7. Neighborhood Enrichment
  8. Extract Enrichment Z-scores
  9. Ripley's Statistics
  10. Centrality Scores
  11. Interaction Matrix
  12. Custom Spatial Statistic
  13. Local Moran's I (LISA)
  14. Batch Spatial Statistics
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the bio-spatial-transcriptomics-spatial-statistics skill do?

Compute spatial statistics for spatial transcriptomics data using Squidpy. Calculate Moran's I, Geary's C, spatial autocorrelation, co-occurrence analysis, and neighborhood enrichment.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill spatial-statistics-gptomics-bioskills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going