Template#
- class pyjess.TemplateAtom#
A single template atom.
- __init__(*, chain_id, residue_number, x, y, z, residue_names, atom_names, distance_weight=0.0, match_mode=0)#
Create a new template atom.
- Raises:
MemoryError – When the system allocator fails to allocate enough memory for the template atom storage.
- 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.
- class pyjess.Template#
A template, as a sequence of
TemplateAtomobjects.- __getitem__(key, /)#
Return self[key].
- __init__(atoms=(), id=None)#
Create a new template.
- Parameters:
atoms (sequence of
TemplateAtom) – The atoms of the templates.id (
str, optional) – The identifier of the template.
- Raises:
MemoryError – When the system allocator fails to allocate enough memory for the template storage.
- __len__()#
Return len(self).