Bootcamp / Session 6 / 6.2

Session 6.2 · Background

Spatial transcriptomics: every cell, where it was

Single-cell RNA-seq tells you which cells are in a tissue but throws away where they sat. Spatial methods keep the position. This page covers what that buys you, how imaging methods such as Xenium and seqFISH turn fluorescent spots into a cell by gene table, where that table can mislead you, and the study that anchors the session.

Start Reading · about 20 minutes · Wang et al. 2026

What spatial adds

The resolution ladder on the home page has three rungs. Bulk RNA-seq (Session 4) gives one average per sample. Single-cell (Session 5) resolves every cell and its type, but the cells arrive dissociated, so their neighbors are lost. Spatial is the third rung: the same kind of cell by gene table, plus an x and y position for every cell.

Position answers questions the other two cannot:

Two ways to read RNA in place

Imaging basedSequencing based
ExamplesXenium, seqFISH, MERFISH, CosMxVisium, Visium HD, Slide-seq
HowProbes bind chosen RNAs in the tissue section; rounds of fluorescent imaging decode which gene each spot isThe tissue sits on a slide of barcoded spots; RNA is captured, sequenced, and mapped back to its spot
GenesA targeted panel, from a few hundred to about five thousandClose to the whole transcriptome
ResolutionSingle transcripts, so single cells after segmentationSpots that may hold several cells (finer in newer versions)

This session uses two imaging methods. Xenium (10x Genomics) is the one you run in 6.3. seqFISH (sequential fluorescence in situ hybridization) is the one the Wang study used, with a 511 gene panel.

From spots to a cell by gene table

  1. Decode transcripts. Each fluorescent spot becomes one transcript with a gene name, an x, y, z position, and a quality score. Xenium writes these to transcripts.parquet.
  2. Segment cells. A nuclear stain (and in newer runs, membrane stains) is used to draw a boundary around every cell. This step decides which transcripts belong to which cell.
  3. Count. Transcripts inside each boundary are counted per gene, giving cell_feature_matrix, with one row per cell in cells.csv.gz holding its centroid, area, and counts.
  4. Controls. The panel also carries negative control probes and “blank” codewords that match no gene. Their counts estimate how often decoding calls a gene that is not there.

After that, the analysis looks like Session 5: normalize, reduce dimensions, cluster, name clusters with markers. Then comes the new step, using position.

Where the table can mislead you

Neighborhoods and niches

A niche is a group of cells whose surroundings look alike. The Seurat function the Foundry pipeline uses, BuildNicheAssay, does it in two steps: for each cell, count the cluster labels of its 20 nearest neighbors in space; then group cells with similar counts into a set number of niches, 4 by default. A cell’s cluster says what it is. Its niche says what it lives among.

The number of niches is a choice, like the clustering resolution in Session 5. Four is a default, not a finding.

The study: Wang et al. 2026, Nature Immunology

The study comes from Manuel Garber’s lab at UMass Chan. It asks why skin from people with photosensitive autoimmune disease, including cutaneous lupus and dermatomyositis, becomes inflamed. The authors measured skin with seqFISH on a 511 gene panel and with single-cell RNA-seq. They report a spatially coordinated circuit: keratinocytes and fibroblasts that sit together recruit MMP9+ myeloid cells, which drive type I interferon inflammation.

Read it with three questions in mind:

  1. Which claims need position? Which could single-cell data alone have made?
  2. How do the authors show that two cell types are closer than chance, and what is their null?
  3. With 511 genes, what could they not have seen?

After the session

Two minutes of feedback, so the next session is pitched better. It also records your attendance, so fill it in whether you were in the room, on Zoom, or catching up on the recording.

Session 6 feedback