pestifer.objs.deletion module

A deletion is a user-specified modification in which a sequence of one or more contiguous residues are deleted.

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

Bases: BaseObj

A class for handling deletions in a molecular sequence.

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.deletion.DeletionList(initlist: Iterable[T] = ())[source]

Bases: BaseObjList[Deletion]

describe()[source]

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