Template

class pyjess.TemplateAtom

A single template atom.

__init__(*args, **kwargs)
classmethod load(file)

Load a template atom from the given file.

Parameters:

file (file-like object) – A file-like object opened in text mode to read the template atom from.

classmethod loads(text)

Load a template atom from the given string.

Parameters:

text (str, bytes or bytearray) – The atom line to read the atom metadata from.

atom_names

The different atom names for this atom.

Type:

list of str

chain_id

The identifier of the chain the atom belongs to.

Type:

str

distance_weight

The distance weight for this atom.

Type:

float

match_mode

The match mode for this particular atom.

Type:

int

residue_names

The different residue names for this atom.

Type:

list of str

residue_number

The residue sequence number.

Type:

int

x

The x coordinate of the atom.

Type:

float

y

The y coordinate of the atom.

Type:

float

z

The z coordinate of the atom.

Type:

float

class pyjess.Template

A template, as a sequence of TemplateAtom objects.

__getitem__(key, /)

Return self[key].

__init__(*args, **kwargs)
__len__()

Return len(self).

dimension

The dimension of the template (i.e. number of residues).

Type:

int