pestifer.objs.cleavagesite module

CleavageSite is a class for handling chain cleavage in molecular structures. It represents a user-specified modification that cleaves a segment of a chain between two specified residues, creating a new segment.

class pestifer.objs.cleavagesite.CleavageSite(*args, chainID: str, resid1: ResID, resid2: ResID)[source]

Bases: BaseObj

A class for handling chain cleavage. Note that this mod is not expected to be part of an ObjManager so the yaml_header and objcat attributes are irrelevant. It is instead handled as a run task.

chainID: str
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.

resid1: ResID
resid2: ResID
shortcode() str[source]
class pestifer.objs.cleavagesite.CleavageSiteList(initlist: Iterable[T] = ())[source]

Bases: BaseObjList[CleavageSite]

describe()[source]

Abstract method to describe the contents of the BaseObjList. Subclasses should implement this method to provide a meaningful description.