vmd.measure.dihedral

vmd.measure.dihedral()

Measures the dihedral angle between atoms over the trajectory. Can specify multiple molecule IDs to measure over different loaded molecules.

Parameters:
  • atom1 (int) – First atom in dihedral
  • atom2 (int) – Second atom in dihedral
  • atom3 (int) – Third atom in dihedral
  • atom4 (int) – Fourth atom in dihedral
  • molid (int) – Molecule ID to measure in. Defaults to top molecule
  • molid2 (int) – Molecule ID for second atom, if different from molid
  • molid3 (int) – Molecule ID for third atom, if different from molid
  • molid4 (int) – Molecule ID for fourth atom, if different from molid
  • frame (int) – Single frame to measure angle in. Defaults to current frame
  • first (int) – First frame in range to measure in, for multiple frames
  • last (int) – Last frame in range to measure in, for multiple frames
Returns:

(list of float) – Dihedral as measured in frame(s)