본문으로 건너뛰기
Skillpedia
에이전트51k · #3453

diffdock

하는 일

DiffDock은 작은 분자(예: 약물)가 단백질에 어떻게 맞는지 예측하도록 돕는 도구입니다. 가능한 위치를 여러 개 만들고 순위를 매깁니다.

사용하는 경우

  • ✓잠재적인 약물이 단백질에 어떻게 결합하는지 알고 싶을 때.
  • ✓한 단백질에 대해 많은 분자를 한꺼번에 시험하고 싶을 때.
  • ✓같은 단백질의 여러 모양을 분석하고 싶을 때.

스킬 링크

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/diffdock/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/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에게 요청하는 예시

“단백질 ‘protein.pdb’에 분자 ‘CC(=O)Oc1ccccc1C(=O)O’가 결합하는 자세를 예측해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

단백질 구조와 분자에 대한 설명을 입력하면, 프로그램이 둘이 맞물리는 가능한 방식을 계산하고 가장 가능성이 높은 결과를 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

DiffDock: protein-small-molecule docking

DiffDock-L generates candidate ligand poses and ranks them by model confidence. Confidence is neither a measured probability of correctness nor binding affinity. Use this skill for one pair, batches, or separate receptor conformations; treat library-wide confidence sorting as pose triage, not hit identification.

Verified scope

Targets the current v1.1.3 release. Released source and current main's identical inference.py were checked on 2026-09-30. Bundled helpers were tested on tiny synthetic inputs; pretrained docking, ESMFold, CUDA, Docker, GNINA, and hosted-demo execution were not run in this review. Commands requiring those components are source-verified recipes, not successful end-to-end demonstrations.

Set up the upstream environment

git clone --branch v1.1.3 --depth 1 https://github.com/gcorso/DiffDock.git
cd DiffDock
conda env create --file environment.yml
conda activate diffdock

The upstream environment pins Python 3.9.18, CUDA 11.7 Torch/PyG wheels and old scientific dependencies. Do not substitute current torch or the unrelated PyPI esm package for fair-esm. The published CUDA environment is not a macOS-native installation recipe. Follow upstream Docker instructions if suitable:

docker pull rbgcsail/diffdock
docker run -it --gpus all --entrypoint /bin/bash rbgcsail/diffdock
micromamba activate diffdock

Record the image digest: its unversioned tag need not equal the checked source. PDB-based inference has a CPU path; sequence folding calls .cuda() unconditionally. ESM2 embeddings are needed even for PDB inputs. First use can download docking, ESM2 and (for sequence inputs) ESMFold weights and build SO(2)/SO(3) tables. Budget storage and memory for all components; do not assume a single small checkpoint.

Run this skill's checker from the DiffDock checkout using its absolute path:

python /path/to/diffdock-skill/scripts/setup_check.py

It checks imports/files, not successful model loading, scientific validity, or full version compatibility. An existing but incomplete score-model directory suppresses upstream's automatic download; inspect checkpoint files when restoring a partial run.

Prepare traceable inputs

  1. Select the biological assembly/chains and a defensible protonation/tautomer state. Record receptor and ligand identifiers, file hashes, preparation choices, source coordinates, software versions, and intended stereochemistry. Missing atoms, waters, cofactors, metal coordination, and induced fit need explicit judgment.
  2. Use PDB for the receptor or a complete amino-acid sequence. No ellipses. Upstream ESM2 truncates each chain at 1022 residues; longer chains can cause graph/embedding mismatches. Do not silently trim a biological target to make a run pass.
  3. Use a SMILES or ligand file. Source readers support .sdf, .mol2, .pdb, .pdbqt; SDF input uses its first record. Existing ligand coordinates are discarded and a conformer regenerated. Inputting a pose does not restrain docking.
  4. Use a fresh output directory for each run. Reusing one can leave old rank files from failed or differently sampled jobs. Preserve the expected input-ID manifest.

Single pair

Run from the upstream repository root, with real prepared inputs:

python -m inference \
  --config default_inference_args.yaml \
  --protein_path protein.pdb \
  --ligand_description "CC(=O)Oc1ccccc1C(=O)O" \
  --out_dir results/run_001/ \
  --loglevel INFO

For sequence input, replace --protein_path with --protein_sequence and a full sequence; this adds ESMFold/CUDA requirements and structural uncertainty. Use the registered name --ligand_description, not argparse's implicit abbreviation --ligand from the README.

Typical output (scores shown here are illustrative):

results/run_001/complex_0/
  rank1.sdf
  rank1_confidence0.87.sdf
  rank2_confidence0.42.sdf
  ...
  rank10_confidence-1.23.sdf

rank1.sdf duplicates the top pose. Filename confidence is rounded to two decimals; upstream rank reflects the original model score. --save_visualisation additionally writes rank<N>_reverseprocess.pdb, not the SDFs themselves.

Batch and ensemble runs

CSV columns are complex_name,protein_path,ligand_description,protein_sequence. Use unique explicit names; paths resolve relative to the **inference working

…

자주 묻는 질문

‘자세(pose)’란 무엇인가요?

자세는 공간에서 분자가 놓인 3차원 위치와 방향입니다.

결과가 분자가 반드시 결합한다는 뜻인가요?

아닙니다. 결과는 가능한 위치와 모델의 ‘신뢰도’ 점수를 보여 줄 뿐이며, 실제 결합이나 친화도를 보장하지 않습니다.

단백질 파일 대신 아미노산 서열을 사용할 수 있나요?

네, 프로그램은 아미노산 서열로 단백질 구조를 예측한 다음 결합을 계산할 수 있습니다.

상세 정보

작성자의 원본 설명

Predicts protein-small-molecule binding poses with DiffDock and DiffDock-L from PDB or sequence plus SMILES/SDF/MOL2. Covers batch docking, pose triage, confidence interpretation, and validation. Use for molecular docking and virtual-screening pose generation, not binding-affinity prediction.

repo: K-Dense-AI/scientific-agent-skills

인기도

GitHub 스타
51k
순위
#3453
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬