6.5.11Systems Biology & Frontiers

Explain spatial transcriptomics

2,440 words11 min readdifficulty · medium1 backlinks

Overview

Spatial transcriptomics is a revolutionary technique that measures gene expression (which genes are being transcribed into RNA) while preserving the spatial location of cells within a tissue. Traditional RNA sequencing (RNA-seq) grinds up tissue into a "soup" of cells, destroying all spatial information. Spatial transcriptomics answers: "What genes are active WHERE in the tissue?"

Figure — Explain spatial transcriptomics

Why this matters:

  • Cells behave differently based on their neighbors and microenvironment
  • Diseases like cancer create spatial patterns (tumor core vs. invasive edge)
  • Development follows spatial gradients (head vs. tail in embryos)
  • The same cell type can have different gene expression in different tissue locations

Without spatial context, we miss critical biology: how cells organize, communicate, and create functional tissue architecture.


Core Concepts

The Central Problem

Traditional RNA-seq workflow:

  1. Dissociate tissue → single cell suspension
  2. Extract RNA from each cell
  3. Sequence and count transcripts
  4. Spatial information is lost forever

The innovation: Capture RNA molecules on a spatially-barcoded surface, where each location has a unique DNA barcode. When you sequence the RNA+barcode together, you can trace each transcript back to its tissue location.


How It Works: First-Principles Derivation

Method 1: Spatial Barcoding (Visium/10x Genomics)

Step 1: Create a spatially-barcoded slide

  • A glass slide is printed with millions of capture probes
  • Each probe has structure: [Spatial Barcode] - [UMI] - [polyT tail]
  • Probes are organized in spots (55 μm diameter, ~10 cells per spot)
  • Each spot has a unique spatial barcode

Why polyT? mRNA molecules have polyA tails. The polyT binds them specifically.

Step 2: Place fresh-frozen tissue on the slide

  • Tissue section (10 μm thick) is placed directly on barcoded spots
  • Tissue is permeabilized → mRNA molecules diffuse out and bind to nearest capture probes

Step 3: Reverse transcription captures spatial information

mRNA-AAAA (from tissue)
     ||||
Probe-TT-[UMI]-[Spatial Barcode]-[on slide]
          ↓ Reverse transcription
        cDNA-[UMI]-[Spatial Barcode]

Why this step is critical: The spatial barcode is now physically attached to the cDNA copy of the mRNA. Even when we remove the cDNA from the slide for sequencing, it carries its location information.

Step 4: Sequence and decode

  • Remove all cDNA from slide, amplify, sequence
  • Each read contains: Gene identity + UMI + Spatial barcode
  • Map reads back to spot coordinates → gene expression matrix with XY positions

For spot ii at position (xi,yi)(x_i, y_i), the expression level of gene gg is:

Eg,i=jUMIs at spot i1(UMIj maps to gene g)E_{g,i} = \sum_{j \in \text{UMIs at spot } i} \mathbb{1}(\text{UMI}_j \text{ maps to gene } g)

Why count UMIs not reads? During PCR amplification, one mRNA molecule creates many identical copies (PCR duplicates). The Unique Molecular Identifier (UMI) is a random barcode added before amplification. Duplicates share the same UMI, so we count unique UMIs to get the true molecule count.

Resolution: Each spot = ~5-10 cells, so this is near-cellular resolution, not single-cell.


Method 2: In Situ Sequencing

Instead of capturing RNA on a slide, sequence it directly in the tissue.

Step 1: Fix tissue to preserve structure

  • Crosslink proteins/RNA with formaldehyde
  • RNA molecules are locked in their original positions

Step 2: Reverse transcribe mRNA → cDNA inside tissue

  • Use padlock probes that circularize around target RNA sequences
  • Create rolling circle amplification (RCA) → bright fluorescent spots

Step 3: Sequence by synthesis in tissue

  • Add fluorescent nucleotides one base at a time
  • Image the tissue after each addition
  • Record color at each XY position → decode sequence

Step 4: Align sequences to genome

  • Each fluorescent spot = one mRNA molecule at a specific XY coordinate
  • Achieve subcellular resolution (~100 nm) but for a limited gene panel

Trade-off: In situ methods have higher spatial resolution but can only measure 100-1000 pre-selected genes (not whole transcriptome).


Worked Examples

Scenario: Map spatial gene expression in mouse hippocampus (memory formation region).

Approach: Use 10x Visium (55 μm spots, whole transcriptome).

Results interpretation:

  • Spot A (in CA1 pyramidal layer): High expression of Camk2a, Grin1 (excitatory neuron markers)
  • Spot B (in dentate gyrus): High expression of Prox1, Calb2 (dentate granule cells)
  • Spot C (in white matter): High expression of Mbp, Plp1 (oligodendrocyte myelin genes)

Why this step matters: These expression patterns confirm known anatomy. A researcher studying Alzheimer's could now ask: "Which spatial regions show abnormal gene expression?"

Calculation: If spot A has 500 UMIs for Camk2a and the spot contains ~8 cells, average expression per cell ≈ 500/8 = 62.5 UMI/cell. (This is approximate since not all cells in the spot are neurons.)


Scenario: Breast cancer biopsy shows a tumor mass surrounded by normal tissue.

Approach: Spatial transcriptomics to measure gene gradients from tumor center → edge → normal tissue.

Finding:

  • Tumor core: High MKI67 (proliferation), VEGFA (angiogenesis)
  • Invasive edge: High MP9 (matrix degradation), SNAI1 (epithelial-mesenchymal transition)
  • Immune infiltrate zone: High CD8A, PDCD1 (T cells, exhaustion markers)

Why spatial matters: Bulk RNA-seq would average these three zones together, hiding the critical biology of tumor invasion. Spatial data reveals that invasive cells at the edge have a different expression program than proliferating cells in the core.

Therapeutic insight: If you target proliferation (tumor core) but ignore invasion genes (tumor edge), cancer may recur from invasive cells that weren't killed.


Common Mistakes & Misconceptions

Why it feels right: The word "spatial" sounds like it means "precise."

Reality: Most commercial platforms (Visium) have spots containing5-10 cells. You measure the average expression across those cells.

The fix:

  • Visium ≈ 55 μm spots = near-cellular resolution
  • In situ methods (MERFISH, seqFISH) = subcellular resolution (~0.1-1 μm) but fewer genes
  • True single-cell spatial = newer methods like Xenium, CosMx, or computationally deconvolving Visium spots

Steel-man: The confusion arises because single-cell RNA-seq exists, and "spatial" sounds like an upgrade. But spatial barcoding trades off: you gain location, but lose single-cell resolution (unless you use specialized in situ methods).


Why it feels right: If spot A has 1000 UMIs and spot B has 500 UMIs for gene X, spot A has 2× more expression, right?

Reality: Total UMI counts vary by spot due to:

  • Tissue thickness variation
  • Cell density differences (10 cells vs. 5 cells per spot)
  • RNA quality (degraded regions have fewer counts)

The fix: Normalize before comparing: E~g,i=Eg,igEg,i×104\tilde{E}_{g,i} = \frac{E_{g,i}}{\sum_{g'} E_{g',i}} \times 10^4

This converts to counts per 10,000 (like TPM in RNA-seq), making spots comparable.

Why this step is essential: Without normalization, you might think spot A expresses a gene more, when really it just captured more total RNA.


Why it feels right: We think of gene expression as a dynamic process in living cells.

Reality: Tissue must be fresh-frozen (Visium) or formaldehyde-fixed (in situ methods). Both kill cells. We're measuring a snapshot of RNA at the moment of preservation.

The fix: Spatial transcriptomics captures the steady-state RNA levels that existed when the tissue was harvested. For dynamic processes (e.g., circadian rhythms), you'd need to harvest tissue at multiple time points.

Implication: You see correlation between spatial patterns and function, but not causation. If gene X is high in region Y, it doesn't prove X causes Y's phenotype—could be a marker of cell type, a response to environment, etc.


Active Recall Questions

#flashcards/biology

What is spatial transcriptomics? :: A technique that measures gene expression (RNA levels) while preserving the XY coordinates of cells within a tissue, creating a spatial map of gene activity.

Why does spatial information matter in transcriptomics?
Because cells behave differently based on their neighbors and microenvironment—diseases, development, and cell communication create spatial patterns that bulk RNA-seq (which averages across tissue) cannot detect.
How does spatial barcoding (Visium) work?
Tissue is placed on a slide with spatially-barcoded capture probes. mRNA diffuses from tissue and binds to probes. Reverse transcription attaches the spatial barcode to cDNA. After sequencing, the barcode maps each transcript back to its tissue location.
What is a UMI and why is it used?
A Unique Molecular Identifier—a random barcode added to each RNA molecule before PCR amplification. It allows counting true RNA molecules (not PCR duplicates) by counting unique UMIs instead of total reads.
What is the resolution of 10x Visium spatial transcriptomics?
~55 μm diameter spots, each containing approximately 5-10 cells (near-cellular resolution, not single-cell).
How does in situ sequencing differ from spatial barcoding?
In situ methods sequence RNA directly inside fixed tissue (subcellular resolution, ~100nm) but can only measure a limited gene panel (100-1000 genes). Spatial barcoding measures whole transcriptome but at lower resolution (multiple cells per spot).
Why must you normalize spatial transcriptomics data before comparing spots?
Because total UMI counts vary by spot due to differences in tissue thickness, cell density, and RNA quality. Normalization (e.g., counts per 10,000) accounts for these technical variations, making expression levels comparable.
What is the difference between near-cellular and single-cell resolution in spatial transcriptomics?
Near-cellular = each measurement averages across 5-10 cells (Visium). Single-cell = each measurement captures one cell (achievable with in situ methods or computational deconvolution).

Memory Aids

Think: GPS navigation tells you "what stores are WHERE on the map." Spatial transcriptomics tells you "what genes are active WHERE in tissue."


Recall Feynman: Explain to a 12-year-old

Imagine you have a big Lego city (that's your tissue, like a piece of brain or skin). Every Lego brick is a cell, and each cell has a recipe book (genes) telling it what to build.

Now, if you put all the Lego bricks in a blender and ask "what recipes are being used?", you'd lose important information: Are the red bricks (fire trucks) near the fire station? Are the blue bricks (police cars) near the police station?

Spatial transcriptomics is like taking a photo of the Lego city from above and labeling each brick with which recipe it's currently reading. Now you can see patterns: "Oh! All the fire truck recipes are active near the fire station!" or "Uh oh, the villain's lair has weird recipes that shouldn't be there."

In real biology, this helps us understand diseases. Cancer cells (villain's lair) might have different recipes at the center vs. the edge where they're invading. If we only looked at the blended soup, we'd miss that the edge cells are using "break through walls" recipes while center cells use "multiply fast" recipes. To cure cancer, we need to stop BOTH, and spatial transcriptomics shows us where each problem is happening.


Connections & Further Learning

Prerequisites:

  • 6.1-DNAstructure-and-replication
  • 6.2.3-Transcription-and-gene-expression
  • 6.3.5-RNA-sequencing-basics

Related Concepts:

  • 6.5.8-Single-cell-RNA-seq
  • 6.5.9-Immunofluorescence-microscopy
  • 6.5.10-FISH-fluorescence-in-situ-hybridization

Advanced Topics:

  • 6.5.12-Spatial-proteomics
  • 6.5.13-Computational-deconvolution-of-spatial-data
  • 6.5.14-Spatial-multi-omics

Clinical Applications:

  • 7.2.5-Tumor-microenvironment-mapping
  • 7.3.2-Brain-region-specific-gene-expression

Summary

Spatial transcriptomics revolutionizes gene expression profiling by answering "what genes are active WHERE?" It uses spatially-barcoded capture (Visium: whole transcriptome, near-cellular resolution) or in situ sequencing (MERFISH/seqFISH: selected genes, subcellular resolution). The key insight: cells with the same identity can have different gene programs depending on their tissue location and neighbors.

Critical points:

  1. Spatial barcodes physically tag RNA with location coordinates
  2. UMIs count true molecules, not PCR duplicates
  3. Normalization is essential before comparing spots
  4. Resolution vs. gene coverage is a trade-off
  5. Enables discovery of spatial gradients, zones, and microenvironments invisible to bulk RNA-seq

This technique is transforming cancer biology, neuroscience, developmental biology, and immunology by revealing how gene expression creates tissue architecture.

Concept Map

measures

preserves

combined with

combined with

destroys

solves

uses method

slide printed with

polyT binds

reverse transcription

traces back to

reveals

Spatial Transcriptomics

Gene Expression

XY Spatial Location

Spatial Gene Map

Traditional RNA-seq

Spatial Info Lost

Spatial Barcoding Visium

Capture Probes

mRNA polyA Tail

cDNA plus Barcode

Microenvironment and Patterns

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Spatial transcriptomics ek revolutionary technique hai jo ye bata hai ki tissue mein konse genes kahan active hain. Traditional RNA sequencing mein tissue ko grind kar dete hain, jisse sari spatial information (location data) khatam ho jaati hai. Lekin spatial transcriptomics mein hum gene expression measure karte hain aur sath mein ye bhi track karte hain ki wo cell tissue mein exactly kahan tha.

Is technique ka main funda ye hai:ek glass slide par special capture probes print kiye jate hain. Har probe ka apna unique spatial barcode hota hai (jaise har ghar ka apna address). Jab tissue ko is slide par rakhte hain, to cells se mRNA molecules bahar nikalte hain aur nearest probe se bind ho jaate hain. Phir reverse transcription process mein, spatial barcode physically attach ho jaata hai cDNA ke sath. Sequencing ke baad, hum har gene ki expression ko trace kar sakte hain ki wo tissue ke kis location seaayi thi. Is tarah se hume ek spatial map milta hai jahan har XY coordinate par gene expression profile hai.

Ye biology ke liye bahut important hai kyunki cells apne neighbors aur microenvironment ke hisaab se behave karte hain. Cancer mein, tumor ke center mein cells alag genes express karte hain compared to invasive edge ke cells. Brain mein, har region ka apna specific gene expression pattern hota hai. Bulk RNA-seq mein ye sari information average ho jaati hai, lekin spatial transcriptomics reveal karta hai ki tissue architecture kaise gene expression se create hoti hai.Iska use cancer research, neuroscience, aur developmental biology mein bahut ho raha hai.

Test yourself — Systems Biology & Frontiers

Connections