# Casanovo

**Casanovo** 是一个开源深度学习模型，用于[从头肽段测序](https://www.edgepedia.org/zh/de-novo-peptide-sequencing)：它利用 Transformer 神经网络架构，将串联质谱（MS/MS）谱图中的峰直接转换为产生该谱图的肽段的氨基酸序列。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> 该模型由华盛顿大学保罗·G·艾伦计算机科学与工程学院的 Melih Yilmaz、William E. Fondrie、Wout Bittremieux、Sewoong Oh 和 [William Stafford Noble](https://www.edgepedia.org/zh/william-stafford-noble) 及其合作者于 2022 年提出，并在[国际机器学习大会](https://www.edgepedia.org/zh/international-conference-on-machine-learning)（ICML）上发表。<sup>[2](https://proceedings.mlr.press/v162/yilmaz22a/yilmaz22a.pdf)</sup> 2024 年，*Nature Communications* 上描述了该模型的大幅扩展版本。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup>

| 关键事实 | 详情 |
|---|---|
| 任务 | 从头肽段测序：在无蛋白质序列数据库的情况下为 MS/MS 谱图指定氨基酸序列<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> |
| 架构 | Transformer 编码器-解码器；峰被嵌入为序列，并以自回归方式解码为肽段<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> |
| 训练数据 | 来自 MassIVE-KB 谱图库的 3000 万张标注谱图（2024 版模型）<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> |
| 基准测试结果 | 在九物种基准测试上平均肽段精确度为 0.81，而 Novor 为 0.58、DeepNovo 为 0.70、PointNovo 为 0.74<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> |
| 氨基酸准确度 | 在 MassIVE-KB 上训练的模型平均精确度为 0.98<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> |
| 可用性 | 以 Apache-2.0 许可证开源；可从 PyPI 安装；最新版本 v5.2.1（2026 年 8 月）<sup>[3](https://pypi.org/project/casanovo/)</sup> |
| 应用 | 免疫肽组学、宏蛋白质组学、抗体测序、古蛋白质组学及其他缺乏肽段数据库的场景<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> |

## 背景：为何需要从头测序

在自下而上蛋白质组学实验中，蛋白质被酶解为肽段，串联质谱测量所得碎片离子的质荷比（m/z）。核心分析问题是确定每张谱图由哪个肽段产生。标准方法是数据库搜索，根据来自已知蛋白质数据库的候选肽段对每张谱图进行打分。这种方法对研究充分的生物体效果良好，但无法检测遗传变异等产生的意外肽段，而且对于抗体测序、部分免疫肽组学数据以及微生物群落的宏蛋白质组学而言并不实用，因为这些场景无法预先构建准确的肽段数据库。<sup>[2](https://proceedings.mlr.press/v162/yilmaz22a/yilmaz22a.pdf)</sup>

从头测序无需先验信息，直接从谱图指定肽段序列。在深度学习之前，从头测序工具使用启发式搜索或动态规划对候选序列打分。DeepNovo（2015 年起）和 PointNovo 等机器学习方法达到了当时的最佳性能，但它们依赖卷积和循环神经网络组件，将 m/z 轴离散化，并且需要复杂的后处理步骤，如动态规划质量过滤器或数据库搜索精修。<sup>[2](https://proceedings.mlr.press/v162/yilmaz22a/yilmaz22a.pdf)</sup>

## 架构与方法

Casanovo 将从头测序重新定义为机器翻译问题：就像将一句话从一种语言翻译成另一种语言，该模型将谱图峰的序列翻译为氨基酸序列。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> 它遵循 Vaswani 等人的标准编码器-解码器 Transformer 设计，利用自注意力学习峰之间的关系，无需离散化 m/z 轴，也无需动态规划步骤。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup>

**峰编码。** 谱图中的每个峰被视为变长序列中的一个元素。m/z 值通过一组正弦函数嵌入，这些函数被选择用于捕捉同位素和近同量异位素等精细谱图结构，而强度则通过一个学习到的线性层嵌入；两个嵌入相加。嵌入之前，谱图经过预处理：丢弃 50–2500 m/z 范围之外的峰，移除与观测母离子质量相差不超过 2 Da 的峰，并对强度进行缩放。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup>

**解码。** Transformer 编码器对峰嵌入进行上下文化处理，解码器随后以自回归方式预测肽段，从 C 端到 N 端逐个氨基酸进行，条件为上下文化后的谱图以及母离子质量和电荷状态（电荷 1 至 10）的嵌入。当序列终止或超过母离子质量时解码停止，束搜索过程沿最有希望的候选序列前进，返回得分最高的肽段。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup>

## 性能

在 Tran 等人创建的九物种基准数据集上，用八个物种训练模型并在留出物种上测试，Casanovo 的基准版本达到平均肽段级精确度 0.81，而 Novor 为 0.58、DeepNovo 为 0.70、PointNovo 为 0.74，且在全部九个物种上结果一致。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> 在氨基酸层面，在 MassIVE-KB 上训练的模型达到平均精确度 0.98。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup>

最初的 ICML 论文强调，这一性能伴随着比竞争方法更简单的架构和更低的推理成本，后者组合了多个神经网络和后处理阶段。<sup>[2](https://proceedings.mlr.press/v162/yilmaz22a/yilmaz22a.pdf)</sup> Casanovo 在高母离子电荷状态下的处理也优于竞争对手：对于 4+ 或更高电荷的母离子，其平均精确度相对于 2+ 母离子仅下降 12%，这反映了其训练数据中电荷状态的多样性——其中 11% 的母离子具有 4+ 或更高电荷，而竞争方法的平均精确度下降超过 60%。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC11289372/)</sup>

独立研究和后续工作已将 Casanovo 用作标准基线。NovoBench 基准测试框架将 Casanovo 与 DeepNovo、PointNovo、InstaNovo、AdaNovo 和 π-HelixNovo 一起集成用于统一评估。<sup>[5](https://arxiv.org/abs/2406.11906)</sup> 后继方法以其为参照进行衡量：InstaNovo 是一个带有基于扩散的精修模型的 Transformer 模型，报告称其性能优于包括 Casanovo 在内的最先进方法，<sup>[6](https://pubmed.ncbi.nlm.nih.gov/41847501/)</sup> 而 MemNovo 报告称在九物种基准上相对于 Casanovo 的肽段精确度提升高达 39.1%。<sup>[7](https://arxiv.org/abs/2606.11868)</sup>

## 应用

2024 年的论文在免疫肽组学、宏蛋白质组学以及数据库搜索未能解释的谱图所构成的“暗蛋白质组”上展示了 Casanovo，并表明其从头鉴定结果改善了这些实验的分析。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> 由于无需肽段数据库，它适用于古蛋白质组学、法医学和天体生物学等场景，并能标记由数据库中不存在的肽段产生的“外来”谱图，这可能指示污染物、微生物物种、遗传变异或反式剪接肽段。<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> 在抗体测序中，最近对六种从头测序工具的系统比较将 Casanovo 纳入评估方法之列，<sup>[1](https://www.nature.com/articles/s41467-024-49731-x)</sup> 而针对单克隆抗体的 XA-Novo 工作流程训练了一个 Casanovo 模型，在外部测试数据集上达到 0.7628 至 0.8735 的氨基酸精确度。<sup>[8](https://www.nature.com/articles/s41467-026-70496-y)</sup>

## 扩展与软件

**Casanovo-DIA** 将该模型扩展到数据非依赖采集（DIA）质谱，其中每张谱图包含来自多个母体肽段的碎片离子。该扩展扩展了谱图编码器模块，在与 DeepNovo-DIA 和 PepNet 的比较中，氨基酸级精确度提升 15.14% 至 34.8%，召回率提升 11.62% 至 31.94%，肽段级精确度提升 59% 至 81.36%。它以 GNU GPL 许可证分发。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC11044815/)</sup>

主软件由 Noble 实验室在 GitHub 上开发，通过 PyPI 以 Apache-2.0 许可证分发。<sup>[3](https://pypi.org/project/casanovo/)</sup> 版本 3.2.0（2022 年 11 月）引入了束搜索解码替代贪心解码。<sup>[10](https://github.com/Noble-Lab/casanovo/blob/main/CHANGELOG.md)</sup> 版本 5.0.0（2025 年 7 月）增加了 `db_search` 模式，在给定 FASTA 蛋白质数据库的情况下，将 Casanovo 用作传统序列数据库搜索的学习评分函数，同时带来更快的训练和推理以及改进的肽段和氨基酸评分。<sup>[11](https://github.com/Noble-Lab/casanovo/releases)</sup> 版本 5.2.0（2026 年 6 月）增加了对 Bruker timsTOF 输入文件的原生支持，并移除了从头测序模式中的母离子质量惩罚，仅对数据库搜索应用母离子质量容差。<sup>[11](https://github.com/Noble-Lab/casanovo/releases)</sup> 配套桌面应用 CasanovoGUI 提供跨平台图形界面。<sup>[12](https://github.com/Noble-Lab/CasanovoGUI)</sup>

早期版本发布的单独非酶解模型权重已退役：后续研究得出结论，单一模型可以同时处理胰蛋白酶解和非胰蛋白酶解数据，因此当前发布的权重使用多种酶训练。<sup>[13](https://github.com/Noble-Lab/casanovo/discussions/648)</sup>

## References

1. [Yilmaz M, Fondrie WE, Bittremieux W, et al. (2024). Sequence-to-sequence translation from mass spectra to peptides with a transformer model. Nature Communications 15:6427.](https://www.nature.com/articles/s41467-024-49731-x)
2. [Yilmaz M, Fondrie WE, Bittremieux W, Oh S, Noble WS (2022). De Novo Mass Spectrometry Peptide Sequencing with a Transformer Model. Proceedings of the 39th International Conference on Machine Learning, PMLR 162.](https://proceedings.mlr.press/v162/yilmaz22a/yilmaz22a.pdf)
3. [casanovo, PyPI package page.](https://pypi.org/project/casanovo/)
4. [Sequence-to-sequence translation from mass spectra to peptides with a transformer model, PMC full text.](https://pmc.ncbi.nlm.nih.gov/articles/PMC11289372/)
5. [Zhou J, Chen S, Xia J, et al. (2024). NovoBench: Benchmarking Deep Learning-based De Novo Peptide Sequencing Methods in Proteomics. arXiv:2406.11906.](https://arxiv.org/abs/2406.11906)
6. [InstaNovo enables diffusion-powered de novo peptide sequencing in large-scale proteomics experiments. PubMed.](https://pubmed.ncbi.nlm.nih.gov/41847501/)
7. [MemNovo: Look Back at the Spectrum for Balanced De Novo Peptide Sequencing from Mass Spectrometry. arXiv:2606.11868.](https://arxiv.org/abs/2606.11868)
8. [XA-Novo: high-throughput mass spectrometry-based de novo sequencing technology for monoclonal antibodies and antibody mixtures. Nature Communications.](https://www.nature.com/articles/s41467-026-70496-y)
9. [Transformer-based de novo peptide sequencing for data-independent acquisition mass spectrometry (Casanovo-DIA). PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC11044815/)
10. [Casanovo CHANGELOG, Noble-Lab/casanovo GitHub repository.](https://github.com/Noble-Lab/casanovo/blob/main/CHANGELOG.md)
11. [Releases, Noble-Lab/casanovo GitHub repository.](https://github.com/Noble-Lab/casanovo/releases)
12. [Noble-Lab/CasanovoGUI GitHub repository.](https://github.com/Noble-Lab/CasanovoGUI)
13. [Casanovo v5.2.0 released, GitHub discussion #648.](https://github.com/Noble-Lab/casanovo/discussions/648)

---
*Initially written Oct 22, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Neural network architectures › Attention and transformer architectures

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/casanovo

English original: https://www.edgepedia.org/casanovo
