alphafold
Route AlphaFold protein structure prediction setup, data preparation, local prediction, model configuration, output interpretation, and relaxation workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- alphafold
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route AlphaFold protein structure prediction setup, data preparation, local prediction, model configuration, output interpretation, and relaxation workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-overview.md4.2 KB
- 参考文档references/repo-provenance.md2.5 KB
- 参考文档references/repo-routing-metadata.json331 B
- 参考文档references/troubleshooting.md4.1 KB
- 脚本scripts/check_install.py4.4 KB
03 SKILL.md 正文
AlphaFold Repo Skill
Use this skill for AlphaFold 2.3.2 repository/package tasks involving protein structure prediction setup, input validation, local inference command planning, model configuration, output confidence interpretation, AlphaFold DB or Server JSON formats, and Amber relaxation.
Start Here
- Read
references/package-overview.mdfor the capability map, public prerequisites, and safe/unsafe operation boundaries. - Read
references/troubleshooting.mdfor cross-cutting install, import, backend, data, Docker, and hardware failures. - Read
references/repo-provenance.mdbefore deciding whether this skill matches a current AlphaFold checkout or should be refreshed. - Use
scripts/check_install.pyto inspect an installed AlphaFold environment without running predictions, downloading data, or starting Docker.
Route by Task
| User task | Go to |
|---|---|
| Build Docker/image commands, plan GPU/container requirements, or plan database/model-parameter downloads and updates | sub-skills/docker-and-data-setup/SKILL.md |
Construct or diagnose direct run_alphafold commands, presets, database flags, MSA reuse, relaxation flags, random seeds, and output locations |
sub-skills/prediction-cli/SKILL.md |
| Validate FASTA/MSA/template inputs, adapt notebook input validation, or reason about monomer/multimer data-pipeline APIs | sub-skills/input-data-and-formats/SKILL.md |
| Inspect model presets/configs, parameter-loading APIs, feature processing, JAX/Haiku/TensorFlow dependency constraints, or backend import errors | sub-skills/model-config-and-api/SKILL.md |
| Interpret prediction folders, ranked structures, confidence JSON, PAE/pTM/ipTM, AFDB formats, or AlphaFold Server JSON | sub-skills/outputs-and-confidence/SKILL.md |
| Decide whether/how to run Amber relaxation, switch GPU/CPU relax, inspect PDB relaxability, or debug OpenMM/PDBFixer failures | sub-skills/relaxation/SKILL.md |
Safe Defaults
- Treat full AlphaFold prediction, Docker builds/runs, database downloads, model-parameter downloads, and AFDB/GCS/BigQuery operations as user-supervised external operations.
- Prefer bundled dry-run helpers first: validate paths, FASTA files, database layout, model presets, confidence files, and relaxation inputs before proposing expensive commands.
- Use
--db_preset=reduced_dbsonly with the small BFD database path; use--db_preset=full_dbsonly with BFD and UniRef30 paths. - Use
--model_preset=multimeronly with multimer FASTA inputs and the UniProt plus PDB SeqRes database paths. - Keep the AlphaFold data directory outside the project/build context to avoid huge Docker builds.
Minimal Environment Check
Run the bundled diagnostic in the environment where AlphaFold is installed:
python scripts/check_install.py --check run_alphafold --check docker --check openmm --json
A passing import check does not prove that prediction is runnable. Full runs also need model parameters, genetic/template databases, external alignment binaries, writable output storage, and suitable CPU/GPU resources.
Common Decisions
- Choose
docker-and-data-setupwhen the user asks how to install, download, update, mount, or run the documented Docker path. - Choose
prediction-cliwhen the user already has an installed package/environment and wants directrun_alphafoldcommand construction or flag diagnosis. - Choose
input-data-and-formatswhen the failure or task is about FASTA contents, multimer chain count, MSA formats, templates, or notebook-style sequence validation. - Choose
outputs-and-confidencewhen the task starts after a prediction folder exists or involves AFDB/Server JSON files. - Choose
relaxationwhen the task mentions Amber, OpenMM, PDBFixer,models_to_relax,use_gpu_relax, or structural violations.
Do Not Do Automatically
- Do not start terabyte database downloads or model-weight downloads without explicit user approval.
- Do not run full prediction, benchmark, Docker build, Docker run, or relaxation minimization as a routine verification step.
- Do not assume cached MSAs are valid after the sequence, database, template cutoff, or model preset changes.
- Do not treat AlphaFold Server JSON as input to the local
run_alphafoldCLI; route Server JSON tasks tooutputs-and-confidence.
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).