Skip to content

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.
Preview

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

FieldRequiredTypeDescriptionExample
pdb_1TruePDBFirst PDB input. Accepts a dictionary mapping {pdb_id: pdb_content}. Can also be a batch (multiple entries).{'my_protein': 'ATOM ... END'}
pdb_2FalsePDBSecond PDB input. Revealed after pdb_1 is connected. Accepts a single or batched PDB dictionary.{'another_protein': 'ATOM ... END'}
pdb_3FalsePDBThird PDB input. Revealed after pdb_2 is connected.{'third_protein': 'ATOM ... END'}
pdb_4FalsePDBFourth PDB input. Revealed after pdb_3 is connected.{'fourth_protein': 'ATOM ... END'}
pdb_5FalsePDBFifth PDB input. Revealed after pdb_4 is connected.{'fifth_protein': 'ATOM ... END'}
pdb_6..pdb_31FalsePDBAdditional 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

FieldTypeDescriptionExample
structure.pdbPDBMerged 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

Example
Example