# 轨迹推断

轨迹推断是一类计算方法，通过将细胞沿伪时间轴而非实测时钟时间排序，从单细胞组学数据中重建连续的细胞状态转变，例如分化或疾病进展。其输入是一个静态快照，通常是来自单细胞RNA测序的基因×细胞矩阵，输出则是一种排序、图或分支树，用以再现一个没有任何单个细胞被随时间追踪观察过的动态过程。

| 关键事实 | 详情 |
|---|---|
| 输出 | 每个细胞的伪时间值（距初始状态的相对距离），通常外加轨迹图或分支树<sup>[1](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)</sup> |
| 奠基性单细胞论文 | Monocle（Trapnell等，Nature Biotechnology，2014）与Wanderlust（Bendall等，Cell，2014）<sup>[2](https://doi.org/10.1038/nbt.2859)</sup><sup> • </sup><sup>[3](https://doi.org/10.1016/j.cell.2014.04.005)</sup> |
| 前身工作 | 微阵列时代的时序排序（Magwene、Lizardi和Kim，2003；Qiu、Gentles和Plevritis，2011）以及用于流式细胞术的SPADE（2011）<sup>[4](https://doi.org/10.1093/bioinformatics/btg081)</sup><sup> • </sup><sup>[5](https://doi.org/10.1371/journal.pcbi.1001123)</sup><sup> • </sup><sup>[6](https://doi.org/10.1038/nbt.1991)</sup> |
| 方法数量 | 截至2019年已有70余种工具；一项基准评估在110个真实数据集和229个合成数据集上评测了其中45种<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> |
| 关键假设 | 表达渐变且瞬态状态采样充分；许多方法需要根细胞作为先验<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC10937865/)</sup> |
| 可扩展性 | 多数图与树方法在10,000个细胞、10,000个特征的数据上无法在一小时内完成；超过半数方法在细胞数量上具有二次或超二次复杂度<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> |
| 方法选择 | 没有放之四海而皆准的方法；选择主要取决于数据集规模和轨迹拓扑结构<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> |

## 工作原理

轨迹推断基于这样一个观察：动态生物学过程在髙维表达空间内的低维流形上推进，因此将单细胞数据投影到低维表示可以保留排序所需的几何结构。<sup>[9](https://www.sc-best-practices.org/trajectories/pseudotemporal.html)</sup> 在该空间中，表达上彼此接近的细胞被视为在过程时间上接近：分化起始处的细胞比终末细胞更类似于一个更早的细胞，因此同时观测到的状态连续体可以替代时间进程。

其结果是伪时间，即为每个细胞赋予一个数值，表示其距初始状态的相对距离。<sup>[1](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)</sup> 伪时间不是物理时间；它是沿推断路径推进程度的序数度量。快照方法从静态快照推断排序，不直接观测时间进程，这一局限被称为时间模糊性；能否纳入实测时间信息取决于具体方法。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup> 成功的推断还假设生物学过程确实是动态的、表达渐变，且数据集包含足够多的细胞、采样深度足以捕获路径上所有瞬态状态；许多方法还额外需要先验信息，例如近似的起始细胞或根细胞。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC10937865/)</sup> 例如，Wanderlust从单个快照中提取轨迹，仅需一个近似的早期细胞作为先验信息。<sup>[3](https://doi.org/10.1016/j.cell.2014.04.005)</sup>

## 实现方式

典型工作流程分阶段进行。首先，预处理和特征选择降低噪声，然后降维投影数据；实践中方法依赖主成分（例如Palantir）或扩散成分（例如扩散伪时间）<sup>[9](https://www.sc-best-practices.org/trajectories/pseudotemporal.html)</sup>，而PCA或ICA通常在学习轨迹之前应用。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC10937865/)</sup> 其次，学习图或曲线结构：Monocle 1在降维空间中构建连接所有细胞的最小生成树（MST），并沿其最长路径对细胞排序<sup>[11](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1008205)</sup>，而TSCAN和[Slingshot](https://www.edgepedia.org/zh/slingshot)则在聚类中心而非单个细胞上构建MST。<sup>[11](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1008205)</sup> 第三，选择根，通常由用户完成；Slingshot要求用户识别初始聚类，随后谱系是共享一个起始聚类、各自通向一个终末聚类的有序聚类集合。<sup>[12](https://link.springer.com/article/10.1186/s12864-018-4772-0)</sup> 第四，对细胞排序并分配到分支。

## 起源

通过推断进展对生物样本排序的想法早于单细胞数据。Magwene、Lizardi和Kim于2003年在[Bioinformatics](https://www.edgepedia.org/zh/bioinformatics)上报道了从微阵列数据重建生物样本的时序排序<sup>[4](https://doi.org/10.1093/bioinformatics/btg081)</sup>，Qiu、Gentles和Plevritis于2011年在PLoS Computational Biology上报道了发现微阵列样本背后的生物学进展<sup>[5](https://doi.org/10.1371/journal.pcbi.1001123)</sup>；同年，Qiu及其同事在[Nature Biotechnology](https://www.edgepedia.org/zh/nature-biotechnology)上报道了SPADE，从高维流式细胞术数据中提取细胞层级结构。<sup>[6](https://doi.org/10.1038/nbt.1991)</sup> Monocle论文的参考文献列表将这些工作列为前身。<sup>[2](https://doi.org/10.1038/nbt.2859)</sup>

对于单细胞数据，2014年出现了两篇论文。Trapnell及其同事在Nature Biotechnology上报道了Monocle，一种用于单细胞RNA-seq数据伪时序排序的无监督算法，应用于原代人成肌细胞的分化。<sup>[2](https://doi.org/10.1038/nbt.2859)</sup> 同年，Bendall及其同事在Cell上报道了Wanderlust，一种基于图的轨迹检测算法，应用于人[B细胞](https://www.edgepedia.org/zh/b-cell)淋巴细胞生成。<sup>[3](https://doi.org/10.1016/j.cell.2014.04.005)</sup> Monocle被描述为轨迹推断的开创性方法<sup>[11](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1008205)</sup>，到2019年该领域已发展出超过70种工具。<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup>

## 变体

方法分为两大算法类别<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup>：

- **显式轨迹图。** 伪时间通过将细胞投影到由MST、主曲线或主图拟合学习得到的图上计算。Monocle 1在ICA空间中构建MST，并通过PQ树沿最长路径对细胞排序；Monocle 2使用反向图嵌入，用DDRTree同时降维和识别主图，伪时间为距所选根细胞的测地距离。<sup>[12](https://link.springer.com/article/10.1186/s12864-018-4772-0)</sup><sup> • </sup><sup>[1](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)</sup> Slingshot同时为各个谱系拟合主曲线，在谱系共享细胞处将曲线向共识路径收缩。<sup>[12](https://link.springer.com/article/10.1186/s12864-018-4772-0)</sup> TSCAN对细胞聚类并在聚类中心上构建MST。<sup>[11](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1008205)</sup>
- **从低维坐标得到伪时间。** 这些方法直接利用k近邻随机游走或最短路径推断排序，包括Wishbone、DPT、PAGA和Palantir。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup> DPT在kNN图上通过任意长度随机游走的转移概率计算距离。<sup>[12](https://link.springer.com/article/10.1186/s12864-018-4772-0)</sup> PAGA对kNN图进行划分，用衡量统计连通性的加权边连接各分区，并丢弃虚假的低权重边以揭示去噪后的拓扑结构；其伪时间使用扩展DPT，对不连通聚类中的细胞赋予无限距离。<sup>[13](https://link.springer.com/article/10.1186/s13059-019-1663-x)</sup> Palantir增加了概率性细胞命运估计。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC10937865/)</sup>

**RNA速率**是一个不同的、具有方向感知的量：一个细胞中某基因的速率是剪接RNA的时间导数，由未剪接（前体mRNA）与剪接（成熟）读段之间的关系预测得到，给出细胞在状态空间中运动的方向和速度。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup><sup> • </sup><sup>[1](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)</sup> Velocyto基于前体mRNA与mRNA的不成比例关系，用稳态模型估计速率；scVelo在稳态、随机和动态模式下用微分方程拟合剪接与未剪接水平。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup><sup> • </sup><sup>[1](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)</sup> 速率与转录组状态伪时间的不同之处在于，它为边定向并预测未来状态，而不仅仅是沿路径对细胞排名。

**时间序列与生成方法**使用实际采样的时间点。Waddington-OT应用最优传输推导时间点之间的转移概率矩阵，TrajectoryNet使用相关思想，而PRESCIENT使用生成式深度学习模型预测长期细胞命运。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup> CellRank将速率信息核与其他核组合成转移矩阵，计算命运概率和终末状态。<sup>[1](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)</sup> 深度生成模型此后移至该领域的中心：scTour于2023年在Genome Biology上报道，直接从原始计数矩阵推断轨迹动态，无需剪接或未剪接层<sup>[14](https://doi.org/10.1186/s13059-023-02988-9)</sup>；CellRank 2于2024年在[Nature Methods](https://www.edgepedia.org/zh/nature-methods)上报道，将来自多个视图（速率、伪时间）的核线性组合成转移矩阵，用于多视图单细胞数据中的统一命运映射。<sup>[15](https://doi.org/10.1038/s41592-024-02303-9)</sup> 单细胞多组学基础模型，如scGPT（Nature Methods，2024），提供预训练表示，轨迹工具越来越多地建立在其上。<sup>[16](https://doi.org/10.1038/s41592-024-02201-0)</sup>

## 应用

轨迹推断常规应用于发育和分化研究。Monocle应用于原代人成肌细胞分化，揭示了关键调控因子的开关式变化、基因调控的序贯波次，以及此前未知参与分化的调控因子。<sup>[2](https://doi.org/10.1038/nbt.2859)</sup> Wanderlust应用于人B细胞淋巴细胞生成。<sup>[3](https://doi.org/10.1016/j.cell.2014.04.005)</sup> PAGA在四个造血数据集、成年涡虫和斑马鱼胚胎上进行了基准测试，使得重建整个成年动物的谱系关系成为可能。<sup>[13](https://link.springer.com/article/10.1186/s13059-019-1663-x)</sup> Waddington-OT识别了重编程中的发育轨迹。<sup>[17](https://doi.org/10.1016/j.cell.2019.01.006)</sup> 多模态扩展延伸了这些用途：MultiVelo利用配对的scRNA-seq和scATAC-seq数据推断RNA速率以及染色质状态变化与转录动力学之间的时间关系。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC10937865/)</sup>

## 局限与替代方案

由于大多数系统缺乏金标准，验证依赖于在轨迹已知或模拟的数据集上进行基准测试。dynverse基准在110个真实数据集和229个合成数据集上评估了45种方法在细胞排序、拓扑结构、[可扩展性](https://www.edgepedia.org/zh/scalability)和可用性方面的表现，定义了从线性、循环、分叉到连通与不连通图的七种拓扑类型。<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> 其代码和金标准数据集可免费获取。<sup>[18](https://github.com/dynverse/dynbenchmark)</sup>

发现结果依赖于拓扑结构和规模。Slingshot在较简单拓扑上通常表现更好，而PAGA、pCreode和RaceID/StemID在树形或更复杂轨迹上得分更高；即使是能检测大多数轨迹类型的方法也并非在所有类型上都是最优。<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> 只有少数方法，如PAGA、Slingshot和SCORPIUS，在准确性、可扩展性、稳定性和可用性方面均表现良好。<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> 可扩展性普遍较差：多数图与树方法在10,000个细胞、10,000个特征的数据上无法在一小时内完成，超过半数方法在细胞数量上具有二次或超二次复杂度，仅有少数几种（PAGA、PAGA Tree、Monocle DDRTree、Stemnet、GrandPrix）能在一天内完成百万细胞规模的计算。<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> 该基准的指南主要根据数据集维度和轨迹拓扑结构指导方法选择。<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup>

若干失败模式反复出现。方法反复高估或低估底层拓扑的复杂度，即使降维已清晰显示该结构。<sup>[7](https://www.nature.com/articles/s41587-019-0071-9)</sup> RNA速率测量因前体mRNA读段计数有限而本身带有噪声，因此速率向量在邻近细胞间进行平滑，结果在很大程度上取决于降维前选择的基因子集以及预处理。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup> 基于速率的命运外推在较长时间尺度上因每次细胞间转移预测的不确定性累积而失去准确性。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)</sup> 训练文档中的进一步警示：轨迹和速率方法可能强行将数据纳入轨迹，或即使不存在生物学上有意义的轨迹也产生向量场。<sup>[1](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)</sup>

替代方案适合不同的问题。PAGA式图抽象总结聚类间的连通性而不强加方向<sup>[13](https://link.springer.com/article/10.1186/s13059-019-1663-x)</sup>，而Waddington-OT和CSHMM等时间进程整合方法使用采样时间点而非快照排序。<sup>[11](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1008205)</sup> Cassiopeia和CoSpar等谱系追踪工具从记录的谱系信息而非表达几何结构推断关系。<sup>[19](https://doi.org/10.1186/s13059-020-02000-8)</sup><sup> • </sup><sup>[20](https://doi.org/10.1038/s41587-022-01209-1)</sup>

## References

1. [Trajectory inference & RNA velocity (NBIS workshop training documentation)](https://nbisweden.github.io/workshop-scRNAseq/lectures/trajectory.pdf)
2. [Cole Trapnell and colleagues (2014). The dynamics and regulators of cell fate decisions are revealed by pseudotemporal ordering of single cells. Nature Biotechnology.](https://doi.org/10.1038/nbt.2859)
3. [Sean C. Bendall and colleagues (2014). Single-Cell Trajectory Detection Uncovers Progression and Regulatory Coordination in Human B Cell Development. Cell.](https://doi.org/10.1016/j.cell.2014.04.005)
4. [Paul M. Magwene, Paul Lizardi, Junhyong Kim (2003). Reconstructing the temporal ordering of biological samples using microarray data. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btg081)
5. [Peng Qiu, Andrew J. Gentles, Sylvia K. Plevritis (2011). Discovering Biological Progression Underlying Microarray Samples. PLoS Computational Biology.](https://doi.org/10.1371/journal.pcbi.1001123)
6. [Peng Qiu and colleagues (2011). Extracting a cellular hierarchy from high-dimensional cytometry data with SPADE. Nature Biotechnology.](https://doi.org/10.1038/nbt.1991)
7. [A comparison of single-cell trajectory inference methods (Saelens et al., dynverse benchmark)](https://www.nature.com/articles/s41587-019-0071-9)
8. [Studying temporal dynamics of single cells: expression, lineage and regulatory networks](https://pmc.ncbi.nlm.nih.gov/articles/PMC10937865/)
9. [15. Pseudotemporal ordering, Single-cell best practices](https://www.sc-best-practices.org/trajectories/pseudotemporal.html)
10. [Current progress and potential opportunities to infer single-cell developmental trajectory and cell fate](https://pmc.ncbi.nlm.nih.gov/articles/PMC8117397/)
11. [Tempora: Cell trajectory inference using time-series single-cell RNA sequencing data (PLOS Computational Biology, 2021)](https://journals.plos.org/ploscompbiol/article?id=10.1371%2Fjournal.pcbi.1008205)
12. [Slingshot: cell lineage and pseudotime inference for single-cell transcriptomics (BMC Genomics 2018)](https://link.springer.com/article/10.1186/s12864-018-4772-0)
13. [PAGA: graph abstraction reconciles clustering with trajectory inference through a topology preserving map of single cells (Genome Biology 2019)](https://link.springer.com/article/10.1186/s13059-019-1663-x)
14. [Qian Li (2023). scTour: a deep learning architecture for robust inference and accurate prediction of cellular dynamics. Genome biology.](https://doi.org/10.1186/s13059-023-02988-9)
15. [Philipp Weiler and colleagues (2024). CellRank 2: unified fate mapping in multiview single-cell data. Nature Methods.](https://doi.org/10.1038/s41592-024-02303-9)
16. [Haotian Cui and colleagues (2024). scGPT: toward building a foundation model for single-cell multi-omics using generative AI. Nature Methods.](https://doi.org/10.1038/s41592-024-02201-0)
17. [Geoffrey Schiebinger and colleagues (2019). Optimal-Transport Analysis of Single-Cell Gene Expression Identifies Developmental Trajectories in Reprogramming. Cell.](https://doi.org/10.1016/j.cell.2019.01.006)
18. [dynverse/dynbenchmark (official benchmark repository)](https://github.com/dynverse/dynbenchmark)
19. [Matthew G Jones and colleagues (2020). Inference of single-cell phylogenies from lineage tracing data using Cassiopeia. Genome biology.](https://doi.org/10.1186/s13059-020-02000-8)
20. [Shou-Wen Wang and colleagues (2022). CoSpar identifies early cell fate biases from single-cell transcriptomic and lineage information. Nature Biotechnology.](https://doi.org/10.1038/s41587-022-01209-1)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/trajectory-inference

English original: https://www.edgepedia.org/trajectory-inference
