Boltz Template Builder¶
Builds a Boltz-compliant template object from a provided PDB structure. You can limit templating to specific chains, map them to template IDs, and optionally enforce the template with a potential and/or apply a distance threshold.

Usage¶
Use this node when preparing template specifications for Boltz YAML workflows. Feed it PDB structure content, optionally restrict to certain chain IDs, map to specific template IDs, and set enforcement or threshold parameters before combining with sequences, constraints, and properties for prediction or design.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| structure_content | True | PDB | PDB structure content to use for templating. The node consumes the first entry if multiple are present. | {'protein.pdb': 'ATOM ... (PDB text) ... END'} |
| chain_ids | False | STRING | Comma-separated chain IDs from the structure to use in the template. If one chain is provided, it is stored as a single value; multiple chains are stored as a list. Leave empty to use all chains. | A,B |
| template_ids | False | STRING | Comma-separated template chain IDs corresponding to chain_ids. Must match the count of chain_ids; otherwise, they are ignored. | A,B |
| force | False | BOOLEAN | If true, includes a flag to enforce the template via a potential. | True |
| threshold | False | FLOAT | Distance threshold in Angstroms; 0 means no limit. Values > 0 are added to the template. | 2.0 |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| templates | * | A list containing one Boltz template object assembled from the inputs. | [{'pdb': ' |
Important Notes¶
- If structure_content contains multiple entries, only the first is used.
- Leave chain_ids empty to template the whole structure; providing one chain produces a single value, multiple chains produce a list.
- template_ids must match the number of chain_ids; otherwise they are ignored and a warning is logged.
- threshold of 0 disables the distance limit; only positive values are included in the output.
- force adds an enforcement flag to the template object but does not modify geometry.
Troubleshooting¶
- Error: "Structure content is required" — Ensure structure_content is provided and is a PDB-type object with at least one entry.
- Error: "Structure file content cannot be empty" — Confirm the PDB text is non-empty.
- Template IDs not applied — Check that template_ids count exactly matches chain_ids count.
- Unexpected chains in output — Verify chain_ids is set correctly (e.g., "A,B" with no spaces beyond commas).
- Threshold not present in output — Only values > 0 are included; set a positive number within the allowed range.