Single-Sample Analysis

Single-Sample Analysis#

This section provides a comprehensive guide to analyzing individual spatial transcriptomics samples using InSituPy’s InSituData class. The tutorials cover the complete workflow from data preparation through advanced spatial analysis.

Tutorials#

The tutorials are organized into two stages: Setup & Preparation and Core Analysis Workflows. The individual tutorials build on each other, making it necessary to run them sequentially starting with the tutorial “01: Automated Image Registration”.

Setup & Preparation#

Follow these tutorials to learn how to download demo datasets and register histological images to the spatial omics data.

00: Download Demo Datasets

Download example datasets to follow along with the tutorials. Includes 10x Xenium mouse brain data and other sample datasets.

Download demo datasets
01: Automated Image Registration

Register histological (H&E) or immunofluorescence images to your spatial transcriptomics data using automated alignment.

Automated image registration

Core Analysis Workflows#

Follow these tutorials sequentially to learn essential analysis steps:

02: Quality Control & Preprocessing

Perform quality control filtering, normalization, feature selection, dimensionality reduction (PCA, UMAP), and clustering.

QC and preprocessing
Working with Annotations & Regions

Import spatial annotations and regions of interest from external tools (QuPath, ImageJ) or create them interactively in napari.

Annotations and regions
04: Cropping & Subsetting Data

Extract regions of interest, subset data by cell type or spatial location, and create focused datasets for detailed analysis.

Crop and subset data
05: Cell Type Annotation

Annotate cell types using marker genes, reference-based methods, or transfer labels from single-cell RNA-seq data.

Cell type annotation
06: Spatial Gene Expression Gradients

Analyze gene expression gradients along anatomical axes or spatial trajectories to identify location-dependent patterns.

Gene expression along axis
07: Differential Expression & Enrichment

Perform differential gene expression analysis between cell types or spatial regions, followed by Gene Ontology enrichment analysis.

Differential expression analysis