Skip to main content

Quick Start Guide

This guide will help you run your first AlphaFold 3 predictions using various input types.
Before starting, ensure you have completed the installation and have obtained model parameters.

Basic Workflow

1

Create input JSON

Define your biomolecular structure prediction task
2

Run AlphaFold 3

Execute the Docker container with your input
3

Analyze outputs

Review predicted structures and confidence metrics

Example 1: Simple Protein Structure

Let’s start with a basic homodimer protein prediction.

Create Input File

Create $HOME/af_input/fold_input.json:
The "id": ["A", "B"] specifies a homodimer with two copies of the same protein chain.

Run Prediction

Expected Output

The prediction creates an output directory $HOME/af_output/2PV7/ containing:
  • 2PV7_model.cif - Top-ranked predicted structure
  • 2PV7_confidences.json - Full confidence metrics
  • 2PV7_summary_confidences.json - Summary confidence scores
  • 2PV7_data.json - Input with MSA and template data
  • ranking_scores.csv - Scores for all predictions
  • seed-1_sample-0/ through seed-1_sample-4/ - Individual sample predictions

Example 2: Protein-Ligand Complex

Predict a protein bound to an ATP molecule.
Using multiple modelSeeds generates multiple predictions with different random seeds, improving confidence in results.

Example 3: RNA Structure with Modifications

Predict an RNA structure with modified nucleotides.

Example 4: Protein with Post-Translational Modifications

Modifications are specified using CCD codes and 1-based residue positions. The first residue in the example won’t be a proline (P) but HY3 instead.

Example 5: DNA-Protein Complex

Example 6: Covalent Ligand with Bond Specification

For covalent ligands, you can specify bonds between atoms.
Bonds are specified as [[entity_id, residue_position, atom_name], [entity_id, residue_position, atom_name]]. Atom names must match CCD definitions.

Running Pipeline in Stages

You can split the pipeline into stages to optimize resource usage.

Stage 1: Data Pipeline Only (CPU)

Generate MSAs and templates without running inference:
This stage is CPU-only and doesn’t require a GPU. Run it on a cheaper CPU-only instance to save costs.

Stage 2: Inference Only (GPU)

Run inference using pre-computed MSAs and templates:

Processing Multiple Inputs

Process a directory of JSON files:

Understanding Output Files

Structure File (.cif)

The mmCIF file contains the predicted 3D coordinates:
  • Compatible with PyMOL, ChimeraX, and other structural biology tools
  • Contains all atoms for all chains
  • Includes B-factor values corresponding to pLDDT confidence

Confidence Metrics

Interpreting Confidence Scores

pLDDT (per-atom)

90-100: Very high confidence 70-90: Confident 50-70: Low confidence <50: Very low confidence

pTM / ipTM

>0.8: High quality prediction 0.6-0.8: Gray zone (may or may not be correct) <0.6: Failed prediction >0.5: Overall fold might be similar to true structure

PAE (Predicted Aligned Error)

Low values (0-5 Å): High confidence in relative positions High values (>10 Å): Low confidence in relative positions Useful for identifying domains and interfaces

Ranking Score

Range: -100 to 1.5 Formula: 0.8×ipTM + 0.2×pTM + 0.5×disorder - 100×clash Use to rank predictions across multiple seeds

Advanced Options

Custom MSA and Templates

Provide your own MSA (in A3M format):

Running MSA-Free

Predict structure without MSA search:

Multiple Seeds for Better Sampling

By default, AlphaFold 3 generates 5 samples per seed. With 5 seeds, you’ll get 25 total predictions to choose from.

Performance Tips

Use SSD for Databases

Place genetic databases on SSD or RAM-backed filesystem for 5-10x faster MSA search

Reuse MSA Data

For multiple predictions with the same chains, run data pipeline once and reuse the output JSON

Enable JAX Compilation Cache

Use --jax_compilation_cache_dir to avoid recompiling between runs

Optimize Bucket Sizes

Adjust --buckets flag to minimize recompilation for your typical input sizes

Common Issues

Out of Memory

RDKit Conformer Generation Failed

If you see “Failed to construct RDKit reference structure”:
  1. Try increasing iterations: --conformer_max_iterations=10000
  2. Or provide a reference structure using user-provided CCD format

Invalid JSON

Ensure SMILES strings are properly escaped:

Next Steps

Input Documentation

Complete JSON format specification

Output Documentation

Detailed output format guide

Performance Tuning

Optimize for speed and throughput

Getting Help

If you encounter issues:
  1. Check Known Issues
  2. Search GitHub Issues
  3. Contact the team at alphafold@google.com