relaxation
Guide AlphaFold Amber/OpenMM relaxation, AmberRelaxation APIs, CPU/GPU relax choices, structural violation metrics, and PDB cleanup constraints.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- relaxation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guide AlphaFold Amber/OpenMM relaxation, AmberRelaxation APIs, CPU/GPU relax choices, structural violation metrics, and PDB cleanup constraints.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md8.1 KB
- 参考文档references/troubleshooting.md8.4 KB
- 参考文档references/workflows.md7.5 KB
- 脚本scripts/check_relaxation_inputs.py15.0 KB
03 SKILL.md 正文
AlphaFold Relaxation
Use this sub-skill when a task is about AlphaFold's Amber/OpenMM relaxation step, AmberRelaxation, amber_minimize.run_pipeline, CPU versus GPU relaxation, PDBFixer/OpenMM cleanup failures, or structural violation metrics reported by relaxation.
Start Here
- Read
references/workflows.mdto decide whether to relax, how CLI relaxation maps to API calls, and when to switch GPU relaxation to CPU. - Read
references/api-reference.mdforAmberRelaxation,amber_minimize, cleanup helpers, debug data, and violation metric contracts. - Read
references/troubleshooting.mdfor OpenMM platform errors, missing PDBFixer, poor residue definitions, atom-mask mismatches, repeated minimization failures, unstable GPU relaxation, andmodels_to_relax=nonetradeoffs. - Run
scripts/check_relaxation_inputs.pyon a candidate PDB to inspect ATOM records, residue coverage, single-residue chains, common backbone gaps, heterogens, and optional OpenMM/PDBFixer import availability without running minimization.
Routing Boundaries
- Use this sub-skill for
alphafold.relax.relax.AmberRelaxation,alphafold.relax.amber_minimize,alphafold.relax.cleanup,alphafold.relax.utils, OpenMM/PDBFixer relaxation backend behavior, and structural violation metrics. - Use
../prediction-cli/for choosing top-level--models_to_relax, constructingrun_alphafoldcommands, MSA reuse, model/database presets, and output-directory orchestration. - Use
../outputs-and-confidence/for interpretingrelaxed_*.pdb,unrelaxed_*.pdb,ranked_*.pdb,relax_metrics.json, pLDDT, PAE, pTM, ipTM, AFDB, or AlphaFold Server outputs after files exist. - Use
../model-config-and-api/and the root troubleshooting guidance for shared package/backend conflicts involving JAX, OpenMM, CUDA, TensorFlow, NumPy, or installed dependency pins.
Safe Operating Rules
- Do not run Amber relaxation, OpenMM minimization, or full AlphaFold prediction during routine validation; relaxation can require working OpenMM platforms and can be slow or hardware-sensitive.
- Treat
--models_to_relax=noneas a valid troubleshooting or exploratory choice when OpenMM/PDBFixer is failing; explain that structures may retain distracting stereochemical violations. - Prefer CPU relaxation for stability triage when CUDA/OpenMM errors, GPU nondeterminism, or GPU platform availability is the suspected blocker; warn that CPU relaxation is usually slower.
- Treat relaxation as a stereochemical cleanup step, not a confidence-improvement step. It should not change pLDDT/PAE interpretation, and output confidence routing belongs in
../outputs-and-confidence/. - Keep public guidance environment-neutral: use package APIs and user-owned paths, not local inspection environment paths or source-checkout-only fixtures.
Bundled Helper
python sub-skills/relaxation/scripts/check_relaxation_inputs.py ranked_0.pdb --check-imports --json
The helper is standalone, uses only the Python standard library by default, and never imports AlphaFold, runs PDBFixer cleanup, creates an OpenMM system, or performs minimization.
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).