diffdock
它能做什么
这项技能教智能体如何运行 DiffDock-L,这是一个无需预设搜索框就能把小配体放入蛋白质中的模型。它会对构象排序,方便研究人员查看最佳结果。
适用场景
- ✓当化学家想把小分子对接到蛋白质结构中时。
- ✓当团队需要一组小片段的排序三维构象时。
- ✓当研究人员需要一个起始构象,以便之后对命中化合物进行评分时。
技能链接
https://github.com/aipoch/open-science/blob/main/resources/skills/diffdock/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把这个小分子对接到我的蛋白质结构中,并给出排名最靠前的构象。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会对蛋白质文件和配体描述运行 DiffDock-L,然后读取包含排序构象及其置信度分数的输出文件夹。批量运行使用列出每个复合物的 CSV 文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
DiffDock-L
DiffDock-L is a blind pose predictor: given a protein structure and a ligand,
it samples ligand placements over the whole surface with a diffusion model and
ranks them with a separately trained confidence head. The confidence score
correlates with pose correctness, not with binding free energy — DiffDock does
not predict whether or how tightly the ligand binds, so for hit triage you
still pair it with a scorer (GNINA, MM-GBSA) or with boltz's affinity head.
For protein–protein and nucleic-acid co-folding, route to boltz or chai1.
Code and weights are MIT (github.com/gcorso/DiffDock).
Running it
cd $DIFFDOCK_REPO # a clone of github.com/gcorso/DiffDock
python3 -m inference \
--config default_inference_args.yaml \
--protein_path target.pdb \
--ligand_description "COc1ccc(C#N)cc1" \
--out_dir out
For more than one complex, give --protein_ligand_csv batch.csv instead of the
two single-complex flags; the CSV has four columns — complex_name,
protein_path, ligand_description (SMILES or an .sdf/.mol2 path), and
protein_sequence. Leave protein_path empty and fill protein_sequence to
have DiffDock fold the receptor with ESMFold first; that path and a
larger-library screening recipe are in references/workflows.md.
Under --out_dir/<complex_name>/ each sample is written as
rank{N}_confidence{score}.sdf, plus a copy of rank1.sdf for convenience.
The confidence value in the filename is a logit, so it is unbounded and can be
negative; among samples for the same complex higher is better, but values are
not comparable across different complexes or ligands.
The YAML config overwrites your CLI flags
inference.py loads --config default_inference_args.yaml after argparse
and replaces every key it finds, so passing --samples_per_complex 40 or
--model_dir ... on the command line is silently ignored if the same key sits
in the YAML. To change sampling depth or any other key the YAML defines, copy
the YAML, edit the copy, and point --config at it.
The first run is silent for ~11 minutes and needs ≥32 GB host RAM
Before the first complex, DiffDock precomputes SO(3) and torus lookup tables.
That step is silent on stderr, takes ~11 minutes, and on the default Modal
tier runs out of host memory and SIGKILLs mid-precompute. Set
provider_params.modal.memory: 65536 (or your provider's equivalent), and do
not assume a hang means a crash.
The README's --ligand works on the CLI by accident — use --ligand_description
The upstream README shows --ligand, which only works because argparse
prefix-matches it to the real flag --ligand_description. That shortcut is
CLI-only: as a CSV column header or YAML key, ligand matches nothing and the
row is silently treated as having no ligand. Spell the flag and the column
header out in full.
Errors worth recognizing
| You see | It means / do this |
|---|---|
ValueError: not allowed to raise maximum limit at startup |
setrlimit(NOFILE, 64000) exceeds the sandbox hard limit — sed the constant in inference.py to min(64000, rlimit[1]). |
| Silent SIGKILL a few minutes into the SO(3) precompute | Host RAM exhausted — see the gotcha above. |
python3: not found |
You are on the upstream rbgcsail/diffdock image — that one runs from /home/appuser/DiffDock under micromamba. |
Next: rescore the rank1.sdf poses before ranking ligands against each
other — boltz's affinity head is the in-tree option — since the DiffDock
confidence head alone is not an affinity predictor.
常见问题
它能显示分子结合得有多紧吗?
不能。技能说明,置信度分数与构象正确性有关,而与结合强度无关,因此还需要另一个评分工具来评估结合强度。
使用什么许可证?
技能说明,代码和权重采用 MIT 许可证。
它能先折叠蛋白质吗?
可以。技能说明,当没有提供结构文件时,它可以使用 ESMFold 折叠受体。
详情
作者的原始描述
Predict small-molecule binding poses with DiffDock-L (Corso et al. 2023/2024, github.com/gcorso/DiffDock) — blind diffusion docking that places a ligand into a protein pocket without a predefined search box and ranks the samples with a learned confidence model. Reach for this skill to dock a SMILES or SDF against a PDB, to generate ranked 3D poses for a small fragment library, or to get a starting pose for downstream rescoring. DiffDock predicts geometry, not affinity.
repo: aipoch/open-science
热度
- GitHub 星标
- 5.4k
- 排名
- #14855
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
alphafold2
5.4k帮你的智能体通过 ColabFold 运行器,使用 AlphaFold2 根据蛋白质序列预测其三维结构,包括蛋白质复合物。
boltz
5.4k帮你的智能体使用开源的 Boltz-2 模型预测蛋白质、DNA、RNA 和小分子复合物的结构,并可选择估算结合亲和力。
borzoi
5.4k帮你的智能体根据 DNA 序列预测全基因组的活性轨迹,例如表达和可及性,并通过预测效果比较变异。
chai1
5.4k帮你的智能体通过一个 FASTA 文件,使用 Apache 许可的 Chai-1 模型预测蛋白质、核酸和配体复合物的结构。