pestifer.objs.cfusion module

CFusions are user-specified modifications which fuse residues from a named residue range of a named protein chain of a named input coordinate file to the C-terminus of a named segment of base molecule.

class pestifer.objs.cfusion.Cfusion(*args, sourcefile: str, sourceseg: str, resid1: ResID, resid2: ResID, chainID: str, obj_id: int = 0)[source]

Bases: BaseObj

A class for handling fusions of residues represented by an existing coordinate file to the C-termini of base-molecule segments

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.

obj_id: int
resid1: ResID
resid2: ResID
shortcode() str[source]
sourcefile: str
sourceseg: str
class pestifer.objs.cfusion.CfusionList(initlist: Iterable[T] = ())[source]

Bases: BaseObjList[Cfusion]

describe() str[source]

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