本文へスキップ
Skillpedia
機械学習5.4k · #14855

diffdock

できること

このスキルは、DiffDock-L を実行する方法を説明します。このモデルは、あらかじめ定めた探索の箱がなくても、低分子をタンパク質に配置します。研究者が良い候補を確認できるよう、構造の候補を順位付けします。

使う場面

  • ✓化学者が、低分子をタンパク質の構造にドッキングしたいとき。
  • ✓チームが、小さな断片の集合について、順位付けされた3D の構造の候補を必要とするとき。
  • ✓研究者が、後のヒット化合物のスコアリングのために、最初の構造の候補を必要とするとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/aipoch/open-science/blob/main/resources/skills/diffdock/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル