Alphafold¶
Runs protein structure prediction from MSA (A3M) alignments and returns ranked PDB models. Supports single-chain (monomer) presets and deterministic seeding per sequence. TEST and MOCK modes are available for quick checks or offline examples.

Usage¶
Use after generating MSAs with an MSA search node. Provide the A3M alignments, choose the Alphafold model preset, optionally disable specific model indices, and run to obtain ranked PDB structures. Typical workflow: MSA Search -> Alphafold -> downstream analysis or visualization.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| a3m | True | MSA | Dictionary of MSA results in A3M format, keyed by sequence ID. Each value is the A3M text for that sequence. | {'seq1': '>query/1-100\\nACDEFG...\\n>hit1\\nAC-EFG...', 'seq2': '>query/1-85\\nMKTA...\\n>hit1\\nMK-A...'} |
| search_templates | True | BOOLEAN | Whether to search for structural templates prior to prediction. | True |
| model_preset | True | STRING | Alphafold model preset to use. Options: monomer, monomer_ptm, monomer_casp14, multimer. Multimer is currently not supported. | monomer_ptm |
| models_to_relax | True | STRING | Controls relaxation of predicted models. Options: NONE, BEST, ALL. Relaxation is not supported yet; must be NONE. | NONE |
| enable_gpu_relax | True | BOOLEAN | Whether to run relaxation on GPU or CPU (effective only if relaxation were supported). | True |
| skip_models | True | STRING | Comma-separated indices of Alphafold models to skip (1-5). Cannot skip all five. Example: "3,5". | 2,5 |
| seed | True | INT | Base random seed. If multiple sequences are processed, each sequence uses seed + index to ensure reproducibility. | 42 |
| mode | True | STRING | Execution mode. MOCK uses bundled example outputs, PROD runs full prediction, TEST reduces compute by limiting models and disabling templates. | PROD |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| folding.pdb | PDB | Dictionary of ranked PDB structures keyed by ' | {'seq1_rank_1': 'HEADER ...\\nATOM ...\\nEND', 'seq1_rank_2': 'HEADER ...\\nATOM ...\\nEND'} |
Important Notes¶
- Unsupported features: Multimer preset and relaxation (models_to_relax other than NONE) are not supported and will raise errors.
- Skip models validation: Indices must be in [1,5] and you cannot skip all five models.
- TEST mode behavior: Forces skipping models 2-5 and disables template search to speed up runs.
- Input consistency: The A3M dictionary keys define sequence IDs; internal processing requires consistent IDs across generated features.
- Seeding: For multiple sequences, the node increments the base seed per sequence (seed + sequence_index) for reproducibility.
- MOCK mode: Returns predefined example results for demonstration without running prediction.
Troubleshooting¶
- Error: Multimer model not supported: Set model_preset to a monomer option (e.g., monomer or monomer_ptm).
- Error: Relaxation not supported: Set models_to_relax to NONE.
- Error: Invalid skip_models: Ensure values are comma-separated integers within 1-5 and do not include all five indices.
- No or mismatched outputs: Verify that input A3M keys are correct and correspond to intended sequence IDs; ensure A3M content is valid.
- Unexpected TEST results: Remember TEST mode restricts to a single model and disables templates; switch to PROD for full predictions.
- Empty or low-quality structures: Check MSA quality and coverage. Re-run MSA search with appropriate databases before predicting.