Spatial barcoding is a method that assigns a unique positional identifier—a spatial barcode—to each capture spot on a solid-phase array. When a tissue section is placed on this array, cells are permeabilized, releasing mRNA that binds to nearby probes. The captured transcripts are then sequenced, and the spatial barcode is read out alongside the transcript sequence, linking gene expression directly to an x,y coordinate on the tissue.
Glossary
Spatial Barcoding

What is Spatial Barcoding?
Spatial barcoding is a molecular technique that uses spatially indexed oligonucleotide arrays to capture mRNA from tissue sections, enabling the mapping of transcriptomic data back to its original histological location.
This technique enables unbiased, genome-wide spatial transcriptomics without prior knowledge of target genes. The resolution is determined by the density and diameter of the barcoded spots, typically ranging from 2 to 100 microns. Downstream computational analysis involves mapping sequenced reads to a spatial grid, generating a gene-by-spot expression matrix that serves as the foundation for spatial domain detection and cell-type deconvolution.
Key Features of Spatial Barcoding
Spatial barcoding is a foundational technique for spatially resolved transcriptomics, relying on the precise transfer of positional information onto captured mRNA molecules. The following concepts define its core technical components.
Oligonucleotide Array Architecture
The physical substrate is a glass slide patterned with spatially indexed oligonucleotides. Each oligo contains four functional domains: a partial Illumina sequencing handle, a spatial barcode unique to that array coordinate, a unique molecular identifier (UMI) for transcript counting, and a poly(dT) capture sequence to bind mRNA. The barcode sequence directly encodes the X-Y position on the slide.
Polyadenylated mRNA Capture
This technique relies on the poly(A) tail present on most eukaryotic mRNAs. When a permeabilized tissue section is placed on the array, mRNA molecules diffuse vertically downward. The poly(dT) capture probes on the surface hybridize specifically to these poly(A) tails, immobilizing the transcripts directly above their original spatial location in the tissue.
On-Slide Reverse Transcription
Once captured, the immobilized mRNA acts as a template for reverse transcription (RT) directly on the slide. The RT enzyme synthesizes a complementary DNA (cDNA) strand that incorporates the spatial barcode and UMI from the attached oligonucleotide. This step permanently links the positional information to the transcript's identity before the tissue is removed.
Library Preparation and Sequencing
After reverse transcription, the barcoded cDNA is cleaved from the slide and pooled into a single tube. Standard next-generation sequencing (NGS) library preparation is performed. During sequencing, both the transcript insert (identifying the gene) and the spatial barcode (identifying the location) are read, generating a digital map of gene expression across the tissue.
Computational Spatial Mapping
Raw sequencing data is processed by a computational pipeline that demultiplexes reads based on their spatial barcode. A spatial expression matrix is generated where each row is a barcoded spot coordinate and each column is a gene. This matrix is then aligned with the histological image of the tissue using fiducial markers, enabling direct visualization of gene expression patterns.
Resolution and Spot Size
The spatial resolution is defined by the center-to-center distance and diameter of the barcoded spots. Early technologies featured 100 µm spots with 200 µm spacing, capturing multicellular aggregates. Current iterations achieve 55 µm spots or smaller, approaching single-cell resolution in some tissues, though the signal still represents a transcriptome from a small cellular neighborhood rather than a single cell.
Spatial Barcoding vs. Imaging-Based Methods
A comparison of spatial barcoding (array-based capture) and imaging-based (in situ) methods for resolving spatial transcriptomic data.
| Feature | Spatial Barcoding (e.g., Visium) | Imaging-Based (e.g., MERFISH) | In Situ Sequencing (e.g., HybISS) |
|---|---|---|---|
Spatial Resolution | 55 µm spots (multicellular) | ~100 nm (subcellular) | ~0.5 µm (subcellular) |
Transcriptome Coverage | Whole transcriptome (unbiased) | Targeted (100-10,000 genes) | Targeted (100-300 genes) |
Detection Efficiency | Low (capture limited by diffusion) | High (direct imaging of molecules) | Moderate (amplification bias) |
Tissue Morphology Preservation | Good (H&E staining compatible) | Excellent (intact tissue context) | Good (tissue clearing required) |
Single-Cell Resolution | |||
Discovery of Novel Genes | |||
Throughput (Samples per Run) | High (1-8 samples per slide) | Low (1 sample per run) | Low (1 sample per run) |
3D Volumetric Reconstruction |
Frequently Asked Questions
Clear, technically precise answers to the most common questions about how spatially indexed oligonucleotide arrays capture and map transcriptomic data back to tissue architecture.
Spatial barcoding is a transcriptomic technique that uses spatially indexed oligonucleotide arrays to capture mRNA from tissue sections, enabling the mapping of gene expression data back to its original histological location. The workflow begins by placing a fresh-frozen or formalin-fixed paraffin-embedded (FFPE) tissue section onto a glass slide printed with thousands of capture spots. Each spot contains millions of oligonucleotides with a shared spatial barcode—a unique DNA sequence that encodes the spot's x,y coordinates on the array. The oligonucleotides also include a poly(dT) capture sequence to bind mRNA, a unique molecular identifier (UMI) for transcript counting, and a sequencing adapter. After tissue permeabilization releases mRNA, it diffuses vertically and binds to the capture probes directly beneath it. Reverse transcription generates barcoded cDNA, which is then pooled, sequenced, and computationally mapped back to the original spot locations, producing a spatially resolved gene expression matrix.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Core concepts and computational methods that form the analytical foundation for interpreting spatially barcoded transcriptomic data.
Spatially Variable Genes (SVG)
Genes whose expression levels exhibit a statistically significant dependence on spatial location within a tissue. SVGs indicate non-random distribution patterns and often mark tissue regions, anatomical boundaries, or disease-specific microenvironments.
- Identified using SpatialDE, SPARK-X, or Moran's I statistics
- Can reveal gradient-driven developmental genes or region-specific markers
- Distinct from differentially expressed genes—SVGs leverage spatial coordinates, not predefined region labels
Spatial Autocorrelation & Moran's I
A statistical measure quantifying whether nearby locations have more similar gene expression than distant ones. Moran's I is the most widely used metric, producing values from -1 (dispersed) to +1 (highly clustered), with 0 indicating random spatial distribution.
- Global Moran's I: Overall clustering tendency across the entire tissue
- Local Indicators of Spatial Association (LISA): Identifies specific hotspots and coldspots
- Essential for validating that observed patterns are not due to random chance
Ligand-Receptor Co-localization
A computational analysis that identifies spatially proximal cell-type pairs where a ligand gene in one cell type and its cognate receptor gene in another are co-expressed. This infers potential cell-cell communication events within the tissue microenvironment.
- Tools like CellPhoneDB, NicheNet, and stLearn perform these analyses
- Requires both spatial coordinates and cell-type annotations
- Reveals signaling hubs in tumor microenvironments and developmental niches
Spatial Domain Detection
The unsupervised identification of tissue regions with coherent gene expression profiles and histological features. Unlike manual annotation, these algorithms discover domains directly from the data using graph-based clustering or probabilistic models.
- BayesSpace uses spatial hidden Markov models for domain inference
- SpaGCN employs graph convolutional networks on spatial neighborhood graphs
- Outputs define functional tissue compartments for downstream differential analysis
Spatial Registration & Integration
The computational alignment of multiple tissue sections or datasets into a common coordinate system. This enables cross-modality analysis—for example, aligning spatial transcriptomics data with H&E histology images or integrating serial sections for 3D reconstruction.
- Rigid and non-rigid transformations correct for tissue deformation
- Tools like STUtility and PASTE handle multi-sample alignment
- Critical for building spatial transcriptomic atlases across entire organs

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us