alterlab-squidpy-spatial

Featured

Analyzes spatial transcriptomics with squidpy (1.8.x) on AnnData and SpatialData objects, routing platforms correctly: Visium spots use spatial_neighbors(coord_type='grid') and pair with deconvolution, while Xenium/MERFISH single-cell data use coord_type='generic'/Delaunay neighbors and spatialdata-io readers (xenium, visium_hd, merscope). Runs sq.gr.spatial_neighbors, nhood_enrichment, co_occurrence, spatial_autocorr (Moran's I for spatially variable genes), ripley, and ligrec. Use when the user wants spatial transcriptomics, squidpy, Visium/Xenium/MERFISH analysis, neighborhood enrichment, co-occurrence, or spatially variable genes; QC/clustering uses alterlab-scanpy and spot deconvolution (destVI/Tangram) uses alterlab-scvi-tools. Part of the AlterLab Academic Skills suite.

AI & Automation 68 stars 13 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
61
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Squidpy: Spatial Transcriptomics Squidpy is the scverse toolkit for spatially-resolved omics, built on AnnData and SpatialData. It answers questions a non-spatial scRNA-seq pipeline cannot: *which cell types sit next to which* (neighborhood enrichment), *how cell-type pairs co-occur across distance* (co-occurrence), *which genes vary across tissue space* (Moran's I / spatially variable genes), and *what ligand-receptor signalling is plausible* (ligrec). This skill does the spatial analysis; it hands non-spatial QC/clustering to `alterlab-scanpy` and spot deconvolution to `alterlab-scvi-tools`. ## When to Use This Skill Use when the request involves: - Spatial transcriptomics / spatially-resolved omics on **Visium, Visium HD, Xenium, MERFISH/MERSCOPE, or CosMx** data. - Building a **spatial neighbor graph** and running **neighborhood enrichment**, **co-occurrence**, **interaction matrix**, **Ripley's statistics**, or **centrality scores**. - Finding **spatially variable genes** via Moran's I (`spatial_autocorr`) or Sepal. - **Ligand-receptor** analysis in a spatial context (`ligrec`). - Identifying **spatial niches / tissue domains** (`calculate_niche_*`: neighborhood profile, UTAG, CellCharter, SpatialLeiden). - Reading platform output into AnnData/SpatialData and choosing the right `coord_type` for the platform. ### Does NOT Trigger | Request | Route to | |---------|----------| | Non-spatial scRNA-seq QC, normalization, PCA/UMAP, Leiden clustering, marker ge...

Details

Author
AlterLab-IEU
Repository
AlterLab-IEU/AlterLab-Academic-Skills
Created
6 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

alterlab-scanpy

Run the standard single-cell RNA-seq analysis pipeline with Scanpy on AnnData — QC filtering, normalization, dimensionality reduction (PCA, UMAP, t-SNE), Leiden/Louvain clustering, marker/differential expression, PAGA trajectories, and plotting. Use when analyzing scRNA-seq data through clustering, cell-type annotation, DE, or pseudotime workflows; for building or reading the .h5ad data structure itself (layers, obs/var, concatenation, backed mode) prefer alterlab-anndata instead, and for RNA velocity from spliced/unspliced counts prefer alterlab-scvelo instead. Part of the AlterLab Academic Skills suite.

68 Updated 3 days ago
AlterLab-IEU
AI & Automation Featured

alterlab-scvi-tools

Train deep generative models for single-cell omics with scvi-tools — probabilistic batch correction and integration (scVI), reference-mapping transfer learning (scArches), differential expression with uncertainty, and multimodal models (totalVI for CITE-seq, MultiVI for multiome). Use when correcting batch effects, integrating multimodal data, or doing advanced probabilistic single-cell modeling — for standard analysis pipelines use scanpy. Part of the AlterLab Academic Skills suite.

68 Updated 3 days ago
AlterLab-IEU
AI & Automation Featured

alterlab-neuropixels

Analyze Neuropixels 1.0/2.0 extracellular electrophysiology with SpikeInterface — load SpikeGLX/Open Ephys recordings, preprocess and motion-correct, run Kilosort4 spike sorting, compute quality metrics, apply Allen/IBL curation, and do AI-assisted visual inspection. Use when working with neural recordings, spike sorting, or extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation. Part of the AlterLab Academic Skills suite.

68 Updated 3 days ago
AlterLab-IEU