| name | boltz |
| description | Use when predicting biomolecular structures (proteins, RNA, DNA, ligands) with the open-source Boltz diffusion model as an alternative to AlphaFold3. |
| metadata | null |
Boltz Structure Prediction
Predict biomolecular structures using Boltz, an open-source diffusion model. Boltz handles proteins, RNA, DNA, small molecules, ions, and covalent modifications in a single model without requiring multiple sequence alignments (MSA-optional). It serves as a strong open-source alternative to AlphaFold3.
Requirements
- Python 3.10+
- 24 GB GPU VRAM minimum (A10G/A100 recommended)
- ~10 GB disk for model weights
Installation
pip install boltz
Input Format (YAML)
Boltz uses YAML for flexible entity specification:
version: 1
sequences:
- protein:
id: A
sequence: MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSY...
- ligand:
id: B
smiles: "CC1=CC=C(C=C1)S(=O)(=O)N"
ccd: ATP
version: 1
sequences:
- protein:
id: [A, B]
sequence: MTEYKLVVVGAGGVGKS...
count: 2
- protein:
id: C
sequence: EVQLVESGGGLVQPGG...
Running Predictions
boltz predict complex.yaml \
--out_dir results/ \
--accelerator gpu \
--devices 1 \
--num_workers 4
boltz predict inputs/ \
--out_dir results/ \
--accelerator gpu
boltz predict complex.yaml \
--out_dir results/ \
--use_msa_server false
Python API
from boltz.main import predict
predict(
data="complex.yaml",
out_dir="results/",
accelerator="gpu",
devices=1,
num_predictions=1,
recycling_steps=3,
diffusion_samples=1
)
Output Files
results/
boltz_results_complex/
predictions/
complex/
complex_model_0.cif # Predicted structure (CIF format)
complex_confidence_model_0.json # Confidence scores
lightning_logs/ # Training logs (ignore)
Confidence Metrics
import json
with open("complex_confidence_model_0.json") as f:
conf = json.load(f)
plddt = conf["plddt"]
ptm = conf["ptm"]
iptm = conf["iptm"]
ligand_iptm = conf.get("ligand_iptm")
pde = conf.get("pde")
print(f"pTM={ptm:.3f}, ipTM={iptm:.3f}")
Quality Thresholds
| Metric | Marginal | Acceptable | Good |
|---|
| pLDDT (mean) | <60 | 60–80 | >80 |
| ipTM | <0.5 | 0.5–0.7 | >0.7 |
| pTM | <0.4 | 0.4–0.6 | >0.6 |
vs. AlphaFold2/3
| Feature | Boltz | AF2 | AF3 |
|---|
| Open source | ✓ | ✓ (weights) | ✗ |
| Ligands | ✓ | ✗ | ✓ |
| RNA/DNA | ✓ | ✗ | ✓ |
| MSA required | Optional | Yes | Optional |
| Local run | ✓ | ✓ | Limited |
| CIF output | ✓ | PDB | CIF |
Convert CIF to PDB
python3 -c "
from Bio.PDB import MMCIFParser, PDBIO
parser = MMCIFParser()
structure = parser.get_structure('pred', 'complex_model_0.cif')
io = PDBIO()
io.set_structure(structure)
io.save('complex_model_0.pdb')
"