diffdock
Route DiffDock docking, web UI, training/data preparation, and benchmark evaluation tasks to focused repo-specific guidance.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- diffdock
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route DiffDock docking, web UI, training/data preparation, and benchmark evaluation tasks to focused repo-specific guidance.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/install-and-runtime.md4.0 KB
- 参考文档references/repo-provenance.md1.6 KB
- 参考文档references/repo-routing-metadata.json325 B
- 参考文档references/troubleshooting.md2.4 KB
- 脚本scripts/check_runtime_environment.py4.0 KB
03 SKILL.md 正文
DiffDock
Use this repo skill when a user is working with DiffDock: diffusion-based small-molecule docking to protein structures, DiffDock-L inference, the Gradio UI, training/data preparation, or benchmark evaluation.
Start Here
- Read install-and-runtime.md for setup routes, dependency families, backend expectations, and safe preflight checks.
- Use scripts/check_runtime_environment.py to inspect a candidate runtime without launching docking, training, or benchmarks.
- Route to the focused sub-skill below, then use its bundled references and helper scripts before running expensive commands.
- Read troubleshooting.md when failures involve imports, CUDA/Torch/PyG, RDKit/ProDy/ESM/OpenFold, model checkpoints, network downloads, data paths, or GNINA.
- Check repo-provenance.md before deciding whether this skill is current for a checkout.
Routes
- Docking prediction: Use docking-inference for single-complex or batch CSV inference, input validation, command construction, model/config overrides, output files, and confidence-ranked poses.
- Web interface: Use web-ui for the Gradio app, single-complex UI inputs, launch/deploy issues, and downloaded output zip inspection.
- Training and data: Use training-data for score/confidence model training plans, dataset layouts, split files, ESM embeddings, cache checks, and checkpoint compatibility.
- Benchmarks and metrics: Use evaluation-benchmarks for PDBBind, BindingMOAD/DockGen, PoseBusters evaluation, RMSD/confidence metrics, GNINA post-processing, and vendored
spyrmsdchecks.
Repository Model
DiffDock is a script-style research repository rather than a package with console entry points. Future agents should use the bundled command builders to assemble commands, then run those commands only in a user-provided DiffDock runtime checkout or project context that contains the expected DiffDock modules, data, checkpoints, and dependencies.
The generated skill is self-contained for planning, validation, troubleshooting, and command construction. It does not bundle model weights, processed benchmark datasets, GNINA, ESM models, or the full DiffDock source tree.
Safe Defaults
- Prefer PDB protein inputs over sequence folding for lightweight inference smoke tests.
- Use command builders and validators first; they do not import the heavy DiffDock runtime stack.
- Treat full inference, Gradio launch, ESM extraction, training, benchmark evaluation, GNINA, and model downloads as potentially long-running or network/backend dependent.
- Keep user data paths explicit; do not assume the original example or dataset paths exist.
- Preserve
model_parameters.ymlbeside checkpoints when moving trained score or confidence models.
Required References
- install-and-runtime.md covers setup, Docker/conda expectations, optional dependencies, and environment checks.
- troubleshooting.md covers cross-cutting failure modes shared by sub-skills.
- repo-routing-metadata.json is consumed by DisCo's managed repo-skills-router during import.
- repo-provenance.md records the source snapshot and evidence baseline.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).