AlphaFold 3 Python APIs
Use this sub-skill when a task needs Python-level AlphaFold 3 internals rather than command-line operation.
Route Here For
- Inspecting
alphafold3package availability, version, JSON dialect/version, and key callable signatures. - Parsing or emitting fold-input JSON with
alphafold3.common.folding_input.Input. - Constructing data-pipeline configuration objects or calling pipeline-only helpers safely.
- Building model configuration objects, wiring
ModelRunner, or understanding inference hooks without accidentally starting model inference. - Working with
alphafold3.structureand mmCIF/CCD utilities at a high level. - Diagnosing generated CCD pickle resources, package-data, C++ extension, JAX/GPU, model-directory, or resource-generation failures.
Do Not Handle Here
- For command-line prediction recipes, flags, output directory behavior, and split data-pipeline/inference runs, use
../running-predictions/. - For AlphaFold 3 JSON schema, ligand/user CCD authoring, custom MSA/template fields, and input examples, use
../input-preparation/. - For ranking scores, confidence JSON, embeddings, distograms, and output interpretation, use
../output-interpretation/.
Primary References
- Start with
references/api-reference.mdfor verified signatures, safe snippets, and API caveats. - Use
references/troubleshooting.mdfor import/resource/JAX/model-dir failure modes. - Run
scripts/inspect_alphafold3_api.py --helpto inspect an installed AlphaFold 3 package without performing inference.
Safety Rules
- Treat most Python APIs outside the JSON input classes as internal implementation surfaces; verify signatures against the installed package before generating durable code.
- Never instantiate
ModelRunner.run_inference,predict_structure, orprocess_fold_inputwith a non-Nonemodel runner during harmless inspection. - Prefer pipeline-only or parse-only examples when no model weights, GPU, databases, or external binaries are explicitly available.