AGENT SKILL

binding-affinity

Plan DGL-LifeSci protein-ligand binding affinity workflows with PDBBind, local complexes, ACNN, PotentialNet, complex graph construction, and safe input checks.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
binding-affinity
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Plan DGL-LifeSci protein-ligand binding affinity workflows with PDBBind, local complexes, ACNN, PotentialNet, complex graph construction, and safe input checks.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Binding Affinity

Use this sub-skill when a task involves protein-ligand binding affinity prediction with DGL-LifeSci structure-based workflows.

Use This For

  • Planning PDBBind core or refined workflows without immediately downloading or training on the full dataset.
  • Preparing local protein-ligand complexes with ligand files, protein/pocket PDB files, 3D coordinates, and load_molecule flags.
  • Choosing between ACNN and PotentialNet and matching each model to the graph object it expects.
  • Constructing complex graphs with ACNN_graph_construction_and_featurization or PN_graph_construction_and_featurization.
  • Running safe, local smoke checks on protein/ligand file paths before launching graph construction or training.

Start Here

  1. Read references/data-formats.md to validate protein/ligand file formats, PDBBind-style layout, coordinate expectations, and load_molecule flags.
  2. Run scripts/check_complex_inputs.py --help, then check the user's local complex pair before constructing graphs.
  3. Read references/workflows.md to pick ACNN or PotentialNet, build the PDBBind/local-complex plan, and map graph outputs into model inputs.
  4. Use references/troubleshooting.md when imports, RDKit parsing, missing conformations, PDBBind paths, config choices, or resource limits fail.

Quick Commands

Check only file presence and supported extensions:

python scripts/check_complex_inputs.py --protein pocket.pdb --ligand ligand.sdf

Inspect ligand metadata and require a usable 3D conformation for binding graph construction:

python scripts/check_complex_inputs.py \
  --protein pocket.pdb --ligand ligand.sdf --inspect-ligand --remove-hs

Routing Boundaries

Stay in this sub-skill for PDBBind, local protein-ligand complexes, ACNN/PotentialNet binding models, complex graph construction, binding-specific splits, and safe input checks.

Route elsewhere when the task asks for:

  • General SMILES/CSV featurizers, MoleculeNet datasets, splitters, or molecular graph validation: use ../molecule-data-prep/SKILL.md.
  • General model-zoo architecture catalogs, pretrained GIN checkpoints, molecule embeddings, or non-binding model constructors: use ../model-zoo-pretraining/SKILL.md.
  • Generic molecular property prediction loops, metrics, masking, or CSV train/eval workflows: use ../property-prediction/SKILL.md.

Bundled Resources

  • references/workflows.md: PDBBind/local complex workflow planning, ACNN/PotentialNet selection, graph construction contracts, and training-smoke guidance.
  • references/data-formats.md: supported protein/ligand file formats, coordinates, binding pockets, PDBBind local paths, and configuration flags.
  • references/troubleshooting.md: import/install, optional dependency, data/config, CLI/API misuse, conformation, RDKit, layout, and resource-limit fixes.
  • scripts/check_complex_inputs.py: offline helper for protein/ligand existence and extension checks, with optional ligand load_molecule metadata inspection.

Safety Notes

The original binding-affinity example runner is long-running and can trigger PDBBind downloads, multiprocessing molecule loading, GPU/CPU training, and multi-epoch evaluation. Treat it as reference-only; adapt the distilled contracts in this sub-skill and run tiny local checks before any full PDBBind execution.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351