pestifer.objs.mutation module¶
Single-residue mutations are handled in psfgen by including a “mutate” directive within a protein segment. The mutate directive needs only the resid and 3-letter desired residue name at that resid position. Mutate directives come after all pdb and residue directives in segment, typically.
Mutations can be inferred directly from coordinate-file metadata or supplied by the user.
- class pestifer.objs.mutation.Mutation(*args, chainID: str, origresname: str, resid: ResID, newresname: str, typekey: str, pdbx_auth_seq_num: int | None = None)[source]¶
Bases:
BaseObjA class for handling single-residue mutations
- 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.