This skill covers quality control, filtering, normalization, and feature selection for spatial transcriptomics data using Squidpy and Scanpy.
pip install squidpy scanpy matplotlibTell your AI agent what you want to do:
- "Run QC on my spatial data"
- "Filter and normalize my Visium data"
"Calculate QC metrics for my spatial data"
"Show QC metrics on the tissue"
"Filter spots with less than 500 counts"
"Remove spots with high mitochondrial content"
"Normalize my spatial data"
"Find highly variable genes"
- Calculate QC metrics (counts, genes, MT%)
- Visualize QC metrics on tissue
- Filter low-quality spots
- Normalize expression data
- Identify highly variable genes
- Optionally find spatially variable genes
- Spatial QC - Always visualize QC metrics on the tissue to identify spatial artifacts
- Mitochondrial threshold - Often higher for spatial data (~20-25%)
- SVG vs HVG - Spatially variable genes may differ from highly variable genes
- Keep raw counts - Store in
adata.layers['counts']before normalization