git clone --depth 1 https://github.com/UnicomAI/wanwu /tmp/diffdock && cp -r /tmp/diffdock/configs/microservice/bff-service/configs/agent-skills/claude-science/diffdock ~/.claude/skills/diffdockSKILL.md
# 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
```bash
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.万悟平台 SSE 子会话递归嵌套与三明治序列渲染架构指南。涵盖 parentId 领养、order 绝对排序、动静 Chunk 分层及 Vue 2 响应式引用协议。
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Build apps with the Claude API or Anthropic SDK. TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK. DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.