Batch PDB¶
Aggregates multiple PDB inputs into a single batch. Each input can be a single PDB dictionary or an existing batch; the node flattens and merges them into one dictionary. It enforces unique PDB IDs across all inputs and raises an error if duplicates are found.

Usage¶
Use this node when you need to merge multiple PDB structures into one consolidated batch for downstream processing (e.g., visualization, format conversion, chain extraction). Start by connecting at least one PDB-producing node (such as Load PDB), then progressively reveal and connect additional pdb_i inputs as needed. Ideal for workflows where multiple structures must be processed together.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| pdb_1 | True | PDB | First PDB input. Accepts a dictionary mapping {pdb_id: pdb_content}. Can also be a batch (multiple entries). | {'my_protein': 'ATOM ... END'} |
| pdb_2 | False | PDB | Second PDB input. Revealed after pdb_1 is connected. Accepts a single or batched PDB dictionary. | {'another_protein': 'ATOM ... END'} |
| pdb_3 | False | PDB | Third PDB input. Revealed after pdb_2 is connected. | {'third_protein': 'ATOM ... END'} |
| pdb_4 | False | PDB | Fourth PDB input. Revealed after pdb_3 is connected. | {'fourth_protein': 'ATOM ... END'} |
| pdb_5 | False | PDB | Fifth PDB input. Revealed after pdb_4 is connected. | {'fifth_protein': 'ATOM ... END'} |
| pdb_6..pdb_31 | False | PDB | Additional PDB inputs up to pdb_31. Each becomes available after the previous one is connected. Each accepts a single or batched PDB dictionary. | {'protX': 'ATOM ... END'} |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| structure.pdb | PDB | Merged batch of PDBs represented as a dictionary {pdb_id: pdb_content}. | {'my_protein': 'ATOM ... END', 'another_protein': 'ATOM ... END'} |
Important Notes¶
- IDs must be unique across all connected inputs; duplicate pdb_id values cause a validation error.
- You can connect either single PDB dictionaries or already-batched PDB dictionaries; the node flattens and merges them.
- Inputs are progressively revealed: pdb_2 appears after connecting pdb_1, pdb_3 after pdb_2, and so on up to pdb_31.
- Provide inputs using compatible PDB outputs (e.g., from Load PDB or other nodes that output type PDB).
- The output is a single PDB dictionary suitable for downstream nodes that accept batched PDBs.
Troubleshooting¶
- Duplicate PDB ID error: Ensure each connected input uses unique keys in its {pdb_id: pdb_content} dictionary.
- No output produced: Verify at least pdb_1 is connected and contains valid PDB content.
- Type mismatch: Confirm each input is of type PDB (a dictionary mapping IDs to PDB strings), not a plain string.
- Unexpectedly missing inputs: Additional pdb_i fields appear only after the previous one is connected; connect sequentially to reveal more slots.
Example Pipelines¶