bio-spatial-transcriptomics-spatial-preprocessing

Preprocess spatial transcriptomics data with Squidpy and Scanpy into PCA-ready .h5ad files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quality control, filtering, normalization, and feature selection for spatial transcriptomics data, enabling robust downstream analysis.

Core Features & Use Cases

  • QC metrics calculation for spatial data (spots, genes, MT%)
  • Filtering and normalization for Visium-like data
  • HVG and spatially variable gene identification and combined selection
  • PCA-ready preprocessing and reproducible pipelines

Quick Start

Tell your AI agent to preprocess spatial transcriptomics data using Squidpy and Scanpy to obtain a preprocessed .h5ad file ready for downstream analysis.

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

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

FAQPage Schema
How do I preprocess spatial transcriptomics data for downstream analysis?

Preprocess spatial transcriptomics data by performing quality control, filtering, normalization, and feature selection to output a PCA-ready .h5ad file. This pipeline calculates spot QC metrics, filters genes, and identifies highly variable genes using Scanpy and Squidpy.

What is the best way to identify spatially variable genes in Visium data?

Identifying spatially variable genes in Visium data involves calculating QC metrics and applying combined feature selection. This Skill uses Squidpy and Scanpy on AnnData objects to perform SVG identification alongside HVG selection for robust downstream analysis.

Does this preprocessing pipeline work with standard AnnData objects?

Yes, this preprocessing pipeline works directly with AnnData objects in Python. It requires raw counts to be stored in adata.layers['counts'] and uses Squidpy with Scanpy to execute QC, normalization, and feature selection before outputting a preprocessed .h5ad file.

How do I calculate QC metrics like MT% for spatial omics spots?

Calculating QC metrics for spatial omics spots involves using Scanpy and Squidpy to evaluate spot quality and mitochondrial percentage. The pipeline filters spots and genes based on these metrics to ensure robust data quality before normalization.

Can I use Squidpy and Scanpy for PCA-ready spatial data normalization?

Yes, you can use Squidpy and Scanpy for PCA-ready spatial data normalization. The workflow normalizes filtered Visium-like data, performs HVG and SVG identification, and prepares the AnnData object for principal component analysis.

Why does my spatial transcriptomics preprocessing require raw counts in a specific layer?

Spatial transcriptomics preprocessing requires raw counts in adata.layers['counts'] to preserve original data integrity. Maintaining this raw layer allows the pipeline to accurately perform normalization and feature selection to yield a preprocessed .h5ad file.