Bio.PDB.Model module

Model class, used in Structure objects.

class Bio.PDB.Model.Model(id, serial_num=None)

Bases: Bio.PDB.Entity.Entity

The object representing a model in a structure.

In a structure derived from an X-ray crystallography experiment, only a single model will be present (with some exceptions). NMR structures normally contain many different models.

__init__(self, id, serial_num=None)

Initialize.

Arguments:
  • id - int

  • serial_num - int

__repr__(self)

Return model identifier.

get_chains(self)

Return chains.

get_residues(self)

Return residues.

get_atoms(self)

Return atoms.

atom_to_internal_coordinates(self, verbose: bool = False)None

Create/update internal coordinates from Atom X,Y,Z coordinates.

Internal coordinates are bond length, angle and dihedral angles.

Parameters

bool (verbose) – default False describe runtime problems

internal_to_atom_coordinates(self, verbose: bool = False)None

Create/update atom coordinates from internal coordinates.

Parameters

bool (verbose) – default False describe runtime problems

Raises

Exception – if any chain does not have .pic attribute