Skip to content

Spatial transcriptomics

Spatial transcriptomics connects expression measurements to their position in a specimen. The main workflow follows one public mouse Visium section from archived count matrices to fresh quality maps, expression clusters, neighbor graphs, and spatial statistics. The tissue image stays beside the measurements because an expression pattern loses part of its meaning when its position disappears.

The example uses Mouse Brain Serial Section 1, Sagittal-Anterior, supplied by 10x Genomics under CC BY 4.0. It contains one section from one male C57BL/6 mouse. Its capture spots provide local observations within that specimen, not independent mice or segmented cells.

The deconvolution lesson uses a separate lymph node dataset with measured single-cell profiles and 1,092 tissue spots. It checks a reference model on mixtures with known contributions before applying it to the tissue coordinates.

Lesson Question
What spatial measurements represent What does one observation measure?
Experimental design Which specimens provide independent biological replication?
The dataset and files Do the archived matrices and tissue mask describe the same spots?
Primary processing Which steps produced the archived counts?
Spatial objects Do barcodes, image coordinates, and scale factors agree?
Quality review Where do low counts and unusual fractions occur?
Normalization What changes when counts become relative expression?
Expression maps and clusters Which expression patterns recur across this section?
Spatial graphs Which retained spots count as immediate neighbors?
Spatial autocorrelation Does a fixed gene panel depart from a random placement null?
Cell composition limits What can mixed marker signals establish?
Spatial deconvolution How do reference profiles, RNA contributions, and missing populations affect a mixture estimate?
Comparisons and interpretation Which claims require additional donors or a validated reference?

Readers new to the assay can begin with measurement and experimental design, then follow the lessons in order. Readers familiar with single-cell count matrices can start at the dataset overview and coordinate checks. The later graph and autocorrelation lessons depend on the retained spot set and the expression transformation declared earlier.

The single-cell matrix lesson provides useful preparation for sparse expression objects. The single-cell quality lesson explains counts and detected genes, while the biological replication lesson shows why many observations from one donor do not create a replicated contrast.

Space Ranger 1.1.0 produced the supplied matrices, tissue mask, images, and reports. The examples begin with those archived outputs and calculate fresh downstream results in paired R and Python code. They do not rerun sequencing quality checks, alignment, or primary tissue detection.

R and Python use the same public input files and declared numerical definitions. Shared arithmetic receives direct comparison checks, while Seurat and Scanpy fit expression clusters separately. Their cluster agreement is a measured result, not a requirement for identical labels.

The mouse brain workflow does not estimate disease effects, treatment effects, cell fractions, or cell communication. The separate deconvolution lesson estimates reference-conditional RNA contributions and validates a cell-fraction calibration only in constructed mixtures. Its tissue maps have no independent cell-count truth.