Trajectory inference is a class of algorithms that computationally reconstructs dynamic biological processes from static single-cell transcriptomic data. By measuring the similarity between individual cells' gene expression profiles, these methods arrange cells along a continuous, branching path known as a pseudotime trajectory. This ordering does not represent real clock time but rather a cell's relative position along a developmental continuum, enabling researchers to model processes such as stem cell differentiation, immune cell activation, or oncogenic transformation that are otherwise obscured in a snapshot of heterogeneous cell populations.
Glossary
Trajectory Inference

What is Trajectory Inference?
Trajectory inference, also known as pseudotime analysis, is a computational method that orders individual cells along a continuous developmental path based on their transcriptomic similarity, reconstructing dynamic biological processes like differentiation or disease progression.
The core mechanism involves constructing a graph where nodes represent cells and edges represent transcriptomic similarity, then identifying a path through this graph that minimizes transcriptional change. Leading algorithms like Monocle, Slingshot, and RNA velocity extend this by inferring directed dynamics from unspliced mRNA counts. The output is a quantitative model of gene expression cascades, revealing which transcription factors drive lineage commitment and where critical fate decisions occur, making it an essential tool for mapping developmental hierarchies in complex tissues.
Key Trajectory Inference Algorithms
Trajectory inference algorithms reconstruct dynamic biological processes from static single-cell snapshots. Each method applies distinct mathematical frameworks to order cells along pseudotime, revealing differentiation hierarchies and disease progression paths.
Monocle (Reversed Graph Embedding)
Monocle uses reversed graph embedding to learn a principal tree structure through high-dimensional gene expression space. It orders cells by projecting them onto the tree and calculating their geodesic distance from a user-defined root state.
- Key innovation: Learns branching trajectories without prior knowledge of marker genes
- Output: A minimum spanning tree on cells with pseudotime assignments
- DDRTree: The core dimensionality reduction algorithm that learns tree-structured manifolds
- Application: Widely used for discovering novel branching points in differentiation cascades
Monocle 3 extends this with UMAP initialization and partition-based graph abstraction for scaling to millions of cells.
Slingshot
Slingshot infers lineage hierarchies by fitting simultaneous principal curves through clusters in a reduced-dimensional space. It identifies the global lineage structure by constructing a minimum spanning tree on cluster centers, then smooths curves through individual cells.
- Key innovation: Simultaneous curve fitting handles multiple lineages without iterative pruning
- Input: Requires prior clustering and dimensionality reduction
- Output: Smooth curves with pseudotime values and lineage assignment weights for each cell
- Flexibility: Agnostic to the dimensionality reduction method used
Slingshot excels at reconstructing topologically simple trajectories with clear branching points, making it a robust default choice for many single-cell studies.
RNA Velocity
RNA velocity predicts the future transcriptional state of individual cells by modeling the ratio of unspliced to spliced mRNA. This ratio captures the instantaneous rate of gene expression change, providing a directional vector on the transcriptional manifold.
- Key innovation: Infers directionality without requiring a time series or endpoint states
- Mechanism: Unspliced mRNA indicates nascent transcription; spliced mRNA indicates mature transcripts
- Output: A velocity vector field overlaid on embeddings, showing predicted cellular transitions
- Extensions: scVelo generalizes this with a likelihood-based dynamical model
RNA velocity is fundamentally different from pseudotime methods because it predicts future states rather than ordering past observations, enabling the identification of driver genes and transient populations.
PAGA (Partition-Based Graph Abstraction)
PAGA constructs a coarse-grained graph where nodes represent clusters and edge weights quantify connectivity between them. It measures connectivity by comparing the actual number of inter-cluster edges in a k-nearest neighbor graph against a random expectation.
- Key innovation: Provides a statistically interpretable connectivity measure (PAGA connectivity > threshold indicates connected lineages)
- Topology preservation: Resolves complex topologies including cycles and disconnected components
- Integration: Often combined with diffusion pseudotime for ordering within connected components
- Scalability: Designed for atlas-scale datasets with hundreds of cell types
PAGA is particularly valuable for mapping the global topology of complex differentiation landscapes before applying finer-grained trajectory methods.
Diffusion Pseudotime (DPT)
DPT computes pseudotime as the diffusion distance from a root cell through a random walk on a cell-cell similarity graph. It captures the probabilistic paths a random walker would take, naturally handling noisy data and multiple pathways.
- Key innovation: Robust to noise because it considers all possible paths weighted by probability
- Mechanism: Builds a transition matrix from a k-nearest neighbor graph, then computes distances between diffusion components
- Output: Pseudotime ordering and diffusion components that separate major lineages
- Branch detection: Identifies branching points by analyzing anti-correlated diffusion components
DPT is implemented in Scanpy and is often used alongside PAGA for comprehensive trajectory analysis in single-cell atlases.
Waddington-OT (Optimal Transport)
Waddington-OT applies optimal transport theory to infer developmental trajectories by finding the most efficient mapping between cell populations at consecutive time points. It minimizes a cost function based on gene expression similarity while respecting growth and death rates.
- Key innovation: Explicitly models temporal couplings and cell proliferation
- Input: Requires time-series single-cell data with known collection times
- Output: Ancestor-descendant relationships with probabilistic couplings
- Temporal resolution: Reconstructs continuous trajectories by interpolating between measured time points
This method is uniquely suited for time-course experiments where cells are sampled at defined intervals, providing a mathematically rigorous framework for inferring cellular flows.
Frequently Asked Questions
Clear, technical answers to the most common questions about pseudotime analysis and computational lineage reconstruction in single-cell biology.
Trajectory inference is a computational method that orders individual cells along a continuous developmental path based on their transcriptomic similarity, reconstructing dynamic biological processes without requiring time-series samples. The algorithm first constructs a graph where each node represents a cell and edges connect cells with similar gene expression profiles. It then identifies a root node—typically the most undifferentiated state—and calculates the shortest path distance from this origin to every other cell. This distance, called pseudotime, represents a cell's relative progression through a biological process. Unlike real time, pseudotime is a latent dimension inferred purely from snapshot data. Modern implementations like Monocle 3, Slingshot, and scVelo use minimum spanning trees, principal curves, or RNA velocity to model complex topologies including bifurcations, multifurcations, and cyclical trajectories such as the cell cycle.
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 computational concepts and methods that underpin pseudotime analysis and the reconstruction of dynamic biological processes from static single-cell snapshots.
Pseudotime
A quantitative measure of a cell's progress through a biological process, such as differentiation. Unlike real time measured in hours, pseudotime is an abstract unit representing the distance along a learned transcriptional manifold. The trajectory's starting point is typically a root cell defined by prior biological knowledge or high expression of stemness markers. The ordering is based on the assumption that cells with similar transcriptomic profiles are at similar stages of a dynamic process.
RNA Velocity
A computational method that predicts the future state of individual cells by distinguishing between unspliced (nascent) and spliced (mature) mRNA transcripts. The ratio of these transcript types provides a directional vector, or 'velocity,' indicating whether a gene is being activated or repressed. This allows for the inference of directed trajectories without requiring prior knowledge of start or end states, resolving the directionality ambiguity inherent in static transcriptomic snapshots.
Waddington's Epigenetic Landscape
A foundational metaphor for trajectory inference where a marble (a cell) rolls down a bifurcating valley. The landscape's ridges and valleys represent stable cell states and differentiation paths. Computational methods aim to reconstruct this manifold from high-dimensional gene expression data. Bifurcation points on the trajectory correspond to cell fate decision points where a progenitor commits to one lineage over another.
Minimum Spanning Tree (MST)
A graph-based structure commonly used in early trajectory inference algorithms like Monocle. An MST connects all cells in a reduced-dimensional space with the minimum possible total edge length, creating a skeleton of the differentiation process. The longest path through this tree is often designated as the main trajectory. Modern methods have largely replaced simple MSTs with principal graphs or probabilistic curves to better handle noisy data and complex topologies.
Diffusion Pseudotime (DPT)
A random-walk-based distance metric that measures the transition probability between cells in a diffusion map embedding. Unlike Euclidean distance, DPT respects the underlying data density and manifold structure, making it robust to noise and dropout events in scRNA-seq data. It calculates the cumulative probability of a random walk transitioning from a root cell to any other cell, providing a smooth, robust ordering that naturally handles branching events.
Optimal Transport for Lineage Tracing
A mathematical framework for mapping the distribution of cells from one time point to the next by minimizing a transport cost. In trajectory inference, Waddington-OT uses optimal transport to connect cells across consecutive time points in a time-series experiment, reconstructing the most probable ancestral relationships. This approach explicitly models the temporal coupling between snapshots, providing a probabilistic assignment of each cell to its descendants.

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