biomol.BioMol#
- class BioMol(atom_container, residue_container, chain_container, index_table, metadata=None)[source]#
Bases:
Generic[A_co,R_co,C_co]A class representing a biomolecular structure.
- Parameters:
atom_container (FeatureContainer) – The container holding atom-level features.
residue_container (FeatureContainer) – The container holding residue-level features.
chain_container (FeatureContainer) – The container holding chain-level features.
index_table (IndexTable) – The index table mapping atoms, residues, and chains.
metadata (dict[str, Any] | None, optional) – Additional metadata associated with the biomolecular structure.
Attributes
View of the atoms in the selection.
View of the chains in the selection.
The index table mapping atoms, residues, and chains.
The metadata associated with the biomolecular structure.
View of the residues in the selection.
Methods
Concatenate multiple BioMol objects.
Create a deep copy of the BioMol.
Deserialize the container from zstd-compressed bytes.
Create a BioMol object from a dictionary.
Get the feature container for a specific structure level.
Remove features at a specific structure level.
Serialize the container to zstd-compressed bytes.
Convert the BioMol object to a dictionary.
Update features at a specific structure level.