# GNINA

**GNINA**（读作“NEE-na”）是一款开源分子对接程序，用于预测小分子如何与蛋白质受体结合。它与此前同类工具的区别在于，在对接流程中使用一组三维卷积神经网络（convolutional neural networks，CNN）作为打分函数。它是Smina的分支，而Smina本身又是AutoDock Vina的分支，由[匹兹堡大学](https://www.edgepedia.org/zh/university-of-pittsburgh)计算与系统生物学系开发。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup><sup> • </sup><sup>[2](https://proteiniq.io/app/gnina)</sup><sup> • </sup><sup>[3](https://pubmed.ncbi.nlm.nih.gov/34108002/?dopt=Abstract)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 带CNN打分的开源分子对接软件，从Smina和AutoDock Vina分支而来<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup> |
| 首版论文 | GNINA 1.0，《Journal of Cheminformatics》，2021年6月9日（McNutt、Francoeur、Aggarwal、Masuda、Meli、Ragoza、Sunseri、Koes）<sup>[3](https://pubmed.ncbi.nlm.nih.gov/34108002/?dopt=Abstract)</sup> |
| 构象精度提升 | CNN重新打分后，在给定口袋的重新对接中，Top1（构象在2 Å RMSD以内）从58%升至73%；交叉对接中从27%升至37%<sup>[3](https://pubmed.ncbi.nlm.nih.gov/34108002/?dopt=Abstract)</sup> |
| 打分输出 | CNNscore（构象与实验结构在2 Å以内的概率）和CNNaffinity（预测的pK）<sup>[4](https://pubs.acs.org/doi/10.1021/acs.jcim.4c01429)</sup> |
| 默认CNN用法 | `rescore`：CNN只对最终构象重新排序；`refinement`在GPU上约慢10倍；`all`不推荐<sup>[5](https://github.com/gnina/gnina)</sup> |
| 当前版本 | 1.3.3（初始pygnina实现）；1.3将后端从Caffe迁移到PyTorch<sup>[6](https://github.com/gnina/gnina/releases)</sup><sup> • </sup><sup>[7](https://jcheminf.biomedcentral.com/counter/pdf/10.1186/s13321-025-00973-x.pdf)</sup> |
| 许可证 | Apache-2.0和GPL-2.0<sup>[5](https://github.com/gnina/gnina)</sup> |

## 工作原理

GNINA沿用AutoDock Vina惯常的对接流程：[马尔可夫链蒙特卡洛](https://www.edgepedia.org/zh/markov-chain-monte-carlo)（Markov chain Monte Carlo，MCMC）链在指定结合位点内随机扰动配体，对生成的蛋白质-配体构象打分排序，并将最优构象输出给用户。变化发生在打分环节。GNINA的CNN模型在原子密度网格表示上运行——实质上是蛋白质-配体复合物的三维“图像”——并被训练来同时预测构象得分（该构象与真实结合构象的均方根偏差较小的概率）和结合亲和力（pK）。<sup>[7](https://jcheminf.biomedcentral.com/counter/pdf/10.1186/s13321-025-00973-x.pdf)</sup><sup> • </sup><sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup>

`--cnn_scoring`选项控制CNN在流程中应用的位置：<sup>[5](https://github.com/gnina/gnina)</sup>

- **none**：不使用CNN；运行实质上就是采用经验打分函数的Smina流程。<sup>[5](https://github.com/gnina/gnina)</sup><sup> • </sup><sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup>
- **rescore**（默认）：经验函数精修完成后，CNN对最终构象重新排序；这是计算开销最小的CNN选项，也是对接的首选设置。<sup>[5](https://github.com/gnina/gnina)</sup><sup> • </sup><sup>[8](https://github-wiki-see.page/m/dkoes/docs/wiki/Gnina)</sup>
- **refinement**：[蒙特卡洛](https://www.edgepedia.org/zh/monte-carlo)链结束后由CNN精修构象并排序输出；在GPU上约比`rescore`慢10倍。<sup>[5](https://github.com/gnina/gnina)</sup>
- **all**：CNN全程打分，包括蒙特卡洛链内的能量最小化；计算量极大，不建议使用。<sup>[5](https://github.com/gnina/gnina)</sup><sup> • </sup><sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup>

默认CNN打分函数是由三个模型组成的集成，选取时兼顾构象预测性能与运行时间：dense_1_3、dense_1_3_PT_KD_3和crossdock_default2018_KD_4。GNINA 1.0的默认集成仍以`default1.0`提供。CNN与Vina打分函数线性组合时Vina的权重由`cnn_empirical_weight`设定（默认1.0），蒙特卡洛链数由`exhaustiveness`设定（默认8）。<sup>[5](https://github.com/gnina/gnina)</sup><sup> • </sup><sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup>

每个输出构象带有若干分数：以kcal/mol为单位的经验亲和力（越低越好）、CNNscore（构象在实验结构2 Å RMSD以内的概率，0到1之间）和CNNaffinity（预测的pK，越高越好）。构象默认按CNNscore排序，也可按`CNNaffinity`和`Energy`排序。<sup>[4](https://pubs.acs.org/doi/10.1021/acs.jcim.4c01429)</sup><sup> • </sup><sup>[9](https://github.com/gnina/gnina/blob/master/gninasrc/main/main.cpp)</sup><sup> • </sup><sup>[8](https://github-wiki-see.page/m/dkoes/docs/wiki/Gnina)</sup>

## 性能

**构象预测。** 在GNINA 1.0评估中，使用CNN重新打分在重新对接、交叉对接、柔性对接和全蛋白对接任务上均优于AutoDock Vina打分。在显式定义结合口袋时，Top1（最优构象在2 Å RMSD以内的靶标百分比）在重新对接中从58%升至73%，交叉对接中从27%升至37%；以全蛋白定义口袋时，分别从31%升至38%和从12%升至16%。<sup>[3](https://pubmed.ncbi.nlm.nih.gov/34108002/?dopt=Abstract)</sup>这些提升在被排除于CNN训练之外的蛋白质-配体对上依然存在：在过滤后的数据集上，重新对接Top1默认集成为68%，Vina约为57%；交叉对接Top1为42%对23%。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup>

CNN分数还可作为置信度指标。交叉对接中当CNN输出分数高于0.8时，构象在正确构象2 Å RMSD以内的概率至少为56%；重新对接中该概率为79%。高分构象在交叉对接中较少见，仅15%的交叉对接配体有分数高于0.8的构象。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup>

**虚拟筛选。** 在DUD-E和LIT-PCBA基准上，GNINA 1.0默认打分在117个靶标中的89个上优于经验AutoDock Vina打分函数，1%早期富集因子的中位数是Vina的两倍以上。<sup>[10](https://www.mdpi.com/1420-3049/26/23/7369)</sup>后来一项跨十个异质蛋白靶标的比较发现，GNINA在几乎所有情况下AUC均高于0.70，而Vina仅在六个靶标上AUC超过0.5；在30项富集因子比较中GNINA有25项胜过Vina。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC12388557/)</sup>独立评估一致发现GNINA优于Vina，性能与商业工具相当。<sup>[7](https://jcheminf.biomedcentral.com/counter/pdf/10.1186/s13321-025-00973-x.pdf)</sup>

性能取决于工作流程。在DUD-E共价对接基准上，未启用共价对接的CNN打分成功率为27.5%，Vina为15.8%；但纳入共价复合物后CNN反而不及Vina，因为CNN未在任何共价复合物上训练过——这是对在训练域之外应用模型的一个警示。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC11874439/)</sup>一项大规模机器学习对接框架基准也发现，基于GNINA 1.3分数的混合重新打分方法是强有力的基线。<sup>[13](https://www.sciencedirect.com/science/article/pii/S1520480426009610)</sup>

## 版本

2021年描述的1.0版引入了CNN打分流程和默认集成。<sup>[3](https://pubmed.ncbi.nlm.nih.gov/34108002/?dopt=Abstract)</sup>1.1版增加了便捷的共价对接：由SMARTS模式指定配体原子，由chain:resid:atomname规范标识受体原子，将采样限制在这些原子形成共价键的构象上；共价复合物几何结构可选择用UFF优化。<sup>[6](https://github.com/gnina/gnina/releases)</sup>

2025年3月发布的1.3版用PyTorch替换了Caffe深度学习框架，对接计算效率更高（尤其在纯CPU模式下，构象性能不变），新深度学习方法的集成也更方便。其CNN在更新的CrossDocked2020 v1.3数据集上重新训练，并引入了用于高通量虚拟筛选的知识蒸馏CNN打分函数——学生模型通过Kullback-Leibler散度损失训练，以匹配教师集成的构象分数分布。<sup>[7](https://jcheminf.biomedcentral.com/counter/pdf/10.1186/s13321-025-00973-x.pdf)</sup><sup> • </sup><sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC11874439/)</sup>在DUD-E基准上，GNINA 1.3的中位AUC达0.78，1%归一化富集因子为0.27，而1.0为0.75和0.25，在102个靶标中的68个上优于1.0。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC11874439/)</sup>后续小版本修复了缺陷并加入了pygnina的初步实现。<sup>[6](https://github.com/gnina/gnina/releases)</sup>

## 使用说明

典型命令提供受体、配体和结合位点定义，例如`gnina -r rec.pdb -l lig.sdf --autobox_ligand orig.sdf --cnn_scoring refinement -o out.sdf.gz`。程序警告：不建议在对接本身过程中使用CNN打分，CNN打分最好配合`--minimize`或`--score_only`使用；在1.0评估中，CNN打分的梯度并未显著改善对接结果，说明需要专门训练能提供更平滑能量面的模型。<sup>[5](https://github.com/gnina/gnina)</sup><sup> • </sup><sup>[14](https://github.com/gnina/gnina/issues/100)</sup><sup> • </sup><sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)</sup>

PyTorch模型的训练脚本和预训练权重可在独立的gnina-torch仓库中获取，自1.3版起GNINA本身原生支持PyTorch模型。<sup>[5](https://github.com/gnina/gnina)</sup><sup> • </sup><sup>[15](https://github.com/RMeli/gnina-torch)</sup>

## References

1. [GNINA 1.0: molecular docking with deep learning, Journal of Cheminformatics (PMC8191141)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8191141/)
2. [GNINA Online, ProteinIQ](https://proteiniq.io/app/gnina)
3. [GNINA 1.0: molecular docking with deep learning, PubMed abstract](https://pubmed.ncbi.nlm.nih.gov/34108002/?dopt=Abstract)
4. [CACHE Challenge #1: Docking with GNINA Is All You Need, J. Chem. Inf. Model.](https://pubs.acs.org/doi/10.1021/acs.jcim.4c01429)
5. [gnina/gnina GitHub repository](https://github.com/gnina/gnina)
6. [Releases, gnina/gnina GitHub](https://github.com/gnina/gnina/releases)
7. [GNINA 1.3: the next increment in molecular docking with deep learning, Journal of Cheminformatics (PDF)](https://jcheminf.biomedcentral.com/counter/pdf/10.1186/s13321-025-00973-x.pdf)
8. [Gnina wiki, dkoes/docs (GitHub wiki mirror)](https://github-wiki-see.page/m/dkoes/docs/wiki/Gnina)
9. [gnina main.cpp source, GitHub](https://github.com/gnina/gnina/blob/master/gninasrc/main/main.cpp)
10. [Virtual Screening with Gnina 1.0, Molecules](https://www.mdpi.com/1420-3049/26/23/7369)
11. [High-Throughput, High-Quality: Benchmarking GNINA and AutoDock Vina, Molecules (PMC12388557)](https://pmc.ncbi.nlm.nih.gov/articles/PMC12388557/)
12. [GNINA 1.3 paper (PMC11874439)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11874439/)
13. [NextTopDocker: A Large-Scale Docking-Power Benchmark, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S1520480426009610)
14. [CNN refinement yields decreasing affinity and score, gnina issue #100](https://github.com/gnina/gnina/issues/100)
15. [RMeli/gnina-torch GitHub repository](https://github.com/RMeli/gnina-torch)

---
*Initially written Oct 22, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Application software by domain

Copyright 2026 Edgepedia

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

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

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