pestifer.objs.ssbond module¶
Disufulfide bonds are covalent linkages between two CYS residues in a protein. These are represented in PDB files as SSBOND records, and in mmCIF files as struct_conn records.
- class pestifer.objs.ssbond.SSBond(*args, chainID1: str, resid1: ResID, chainID2: str, resid2: ResID, serial_number: int = 0, residue1: Residue = None, residue2: Residue = None, resname1: str = 'CYS', resname2: str = 'CYS', sym1: str = '', sym2: str = '', length: float = 0.0, ptnr1_auth_asym_id: str = '', ptnr2_auth_asym_id: str = '', ptnr1_auth_seq_id: str = '', ptnr2_auth_seq_id: str = '')[source]¶
Bases:
BaseObjA class for handling disulfide bonds between two CYS residues in a protein.
- model_config = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': False}¶
Configuration for
pydantic.BaseModel.
- model_post_init(context: Any, /) None¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self – The BaseModel instance.
context – The context.
- pdb_line() str[source]¶
Write the SSBond as it would appear in a PDB file.
- Returns:
The PDB line for the SSBOND record.
- Return type:
- class pestifer.objs.ssbond.SSBondList(initlist: Iterable[T] = ())[source]¶
Bases:
BaseObjList[SSBond]A class for handling a list of SSBond objects. This class inherits from BaseObjList and provides methods to manage a list of SSBond objects.
- assign_residues(Residues: ResidueList)[source]¶
Assigns a list of Residue objects to the SSBond residues.
- describe()[source]¶
Abstract method to describe the contents of the BaseObjList. Subclasses should implement this method to provide a meaningful description.
- classmethod from_cif(dc: DataContainer) SSBondList[source]¶
Create a SSBondList from a CIF DataContainer.
- Parameters:
dc (DataContainer) – A CIF DataContainer containing the necessary fields to create SSBond objects.
- Returns:
An instance of SSBondList created from the CIF DataContainer.
- Return type:
- classmethod from_pdb(pdb: PDBRecordDict) SSBondList[source]¶
Create a SSBondList from a PDBRecordDict.