跳到正文
Skillpedia
机器学习5.4k · #14850

boltz

它能做什么

这项技能教智能体如何运行 Boltz-2,这是一个预测蛋白质、核酸和小分子如何结合的开源模型。它适用于结合研究,以及检验设计出的结合物。

适用场景

  • ✓当研究人员需要根据序列和 SMILES 字符串预测蛋白质与配体的复合物时。
  • ✓当团队想要一个开源的复合物预测方案,替代 AlphaFold3 时。
  • ✓当研究人员想估算小分子的结合亲和力时。

技能链接

https://github.com/aipoch/open-science/blob/main/resources/skills/boltz/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/aipoch/open-science/blob/main/resources/skills/boltz/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我预测这个设计的结合物序列与目标蛋白质如何配合,并带有一个小分子配体。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会编写一个 YAML 文件,列出每条链和配体,然后运行预测,并设置从公共服务器获取比对结果。它会返回结构文件和置信度分数。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Boltz-2

Boltz-2 is the open-weights diffusion co-folder closest in surface to AlphaFold3: a YAML describing protein, DNA, RNA, and ligand chains in, mmCIF plus pTM/ipTM/pLDDT confidences out, with an optional small-molecule affinity head. Among our four co-fold skills it is the default for binder-validation campaigns — fully open MIT weights and the fastest sampler; pick chai1 when you want a second independent model for consensus, openfold3 when AF3-faithful settings matter, and esmfold2 when you can live without an MSA. Code and weights are MIT (PyPI boltz, github.com/jwohlwend/boltz).

Running it

# complex.yaml
version: 1
sequences:
  - protein:
      id: A
      sequence: MVTPEGNVSLVDESLLVGVTDEDRAVRS... # target
  - protein:
      id: B
      sequence: AIQRTPKIQVYSRHPAENG... # binder
  - ligand:
      id: L
      smiles: 'N[C@@H](Cc1ccc(O)cc1)C(=O)O' # or  ccd: SAH
boltz predict complex.yaml \
    --use_msa_server --out_dir out/ --recycling_steps 3 --diffusion_samples 5

Each protein chain needs an MSA; without one the run exits before the model loads. --use_msa_server queries api.colabfold.com (expect a 30–90 s pause per chain) and is the right default unless you already have an .a3m to name under msa: in the YAML. Setting msa: empty forces single-sequence mode — that is an accuracy sacrifice, not a speed or memory optimization, because the MSA search runs on CPU before the GPU stage starts.

Per input the output lands at out/boltz_results_complex/predictions/complex/. Read confidence_complex_model_0.json first: iptm > 0.5 is the community pass line for an interface, complex_plddt > 0.7 for the fold itself, and confidence_score is the weighted aggregate the structures are ranked by. Structures themselves are complex_model_{0..N-1}.cif (or .pdb with --output_format pdb).

Affinity head

Add a properties: block naming one ligand chain as the binder and Boltz-2 predicts protein–small-molecule binding affinity alongside the structure:

properties:
  - affinity:
      binder: L # the ligand chain id, not the protein

Output gains affinity_complex.json next to the confidence file: affinity_pred_value is log10(IC50 in μM) — lower is tighter (≈0 → 1 μM, −3 → 1 nM); affinity_probability_binary is the 0–1 binder-vs-non-binder score and is what to rank hits by. One affinity ligand per input; the binder must be a ligand chain (no protein–protein affinity), and Boltz v2.2.x caps affinity ligands at 128 atoms. FASTA inputs cannot request affinity at all.

msa: empty is an accuracy hit, not a memory save

Single-sequence mode has been suggested elsewhere as a way to fit smaller GPUs. It does not help: the MSA search is CPU-side, so --use_msa_server versus msa: empty changes nothing about peak VRAM. If you OOM, lower --diffusion_samples or --max_parallel_samples, or move to an 80 GB tier; do not trade away the MSA for it.

Missing fast kernels are slow, not fatal

ImportError for cuequivariance_ops_torch or its libcue_ops.so means the compiled triangle-kernel package is not on the loader path. --no_kernels falls back to the reference PyTorch path — roughly 2× slower, numerically identical, so it is the right unblock for a one-off and the wrong choice for a campaign.

Errors worth recognizing

You see It means / do this
Missing MSA's in input and --use_msa_server flag not set A protein chain has no MSA — add --use_msa_server or set msa: to an .a3m path in the YAML.
ImportError: ... cuequivariance_ops_torch / libcue_ops.so Fast-kernel wheel not visible — add --no_kernels (slower, correct) or fix the env's LD_LIBRARY_PATH.
KeyError: 'iptm' reading the confidence JSON Single-chain input — ipTM is interface-only; read ptm instead.
No affinity_*.json in output Used FASTA input, or the YAML is missing the properties: block — see Affinity head above.

Next: compute clash and interface metrics on passing complexes, or feed them back to `prote

常见问题

它需要多序列比对吗?

蛋白质链需要。技能说明,如果没有提供比对文件,运行会在没有比对的情况下停止。

它是免费使用的吗?

技能说明,代码和权重都采用 MIT 许可证。

什么时候应该选择其他模型?

技能建议用 Chai-1 作为第二意见,当需要贴近 AlphaFold3 的设置时,则选择 OpenFold3。

详情

作者的原始描述

Structure prediction for protein, nucleic-acid, and small-molecule complexes with Boltz-2 (Passaro & Wohlwend et al. 2025, github.com/jwohlwend/boltz). Reach for this skill to validate designed binders against a target, to co-fold a protein with a SMILES or CCD ligand, or to get an open-source AlphaFold3 alternative with optional binding-affinity prediction.

repo: aipoch/open-science

热度

GitHub 星标
5.4k
排名
#14850
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能