Geometry functions¶
- promod3.core.EvaluateGromacsPosRule(rule, number, anchors)¶
Constructs number positions with the given Gromacs rule and anchor positions (see Gromacs manual for details).
- promod3.core.ConstructCTerminalOxygens(c_pos, ca_pos, n_pos)¶
Constructs positions of O and OXT atoms for C terminal.
- promod3.core.ConstructAtomPos(A, B, C, bond_length, angle, dihedral)¶
Constructs position of atom “D” based on bond length (C-D), angle (B-C-D) and dihedral (A-B-C-D).
- promod3.core.ConstructCBetaPos(n_pos, ca_pos, c_pos)¶
Constructs position of C-beta atom given the positions of the backbone nitrogen, C-alpha and C atoms.
- promod3.core.RotationAroundLine(axis, anchor, angle)¶
Creates a geometric transform leading to a rotation with specified angle around a line defined by axis and anchor.
- promod3.core.RotationAroundLine(axis, angle)¶
Creates a 3x3 matrix for a rotation by a specified angle around an axis going through the origin.
- class promod3.core.StemCoords¶
- class promod3.core.StemCoords(res)
Simple container class to store N, CA and C coordinates.
- Parameters:
res (
ost.mol.ResidueHandle
) – Residue handle from which to extract N, CA and C coordinates.- Raises:
RuntimeError
if res does not contain N, CA and C atoms.
- class promod3.core.StemPairOrientation¶
- class promod3.core.StemPairOrientation(n_stem, c_stem)
Relative orientation of a pair of stems. Can be used to define gaps with four angles and one distance and is used in the fragment database for fast lookups.
- Parameters:
n_stem (
StemCoords
) – Coordinates of stem A.c_stem (
StemCoords
) – Coordinates of stem B.