biomol.CIFMol.concat#
- classmethod CIFMol.concat(mols)#
Concatenate multiple BioMol objects.
- Parameters:
mols (list[Self]) – List of BioMol objects to concatenate.
- Returns:
Concatenated BioMol object.
- Return type:
Self
Notes
All containers must have the same set of feature keys. Metadata from the first BioMol object is retained. Always returns a new BioMol instance, even if only one object is provided.
Examples
mol1 = BioMol(...) mol2 = BioMol(...) concatenated_mol = BioMol.concat([mol1, mol2])