본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/aipoch/open-science/blob/main/resources/skills/diffdock/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬