vmd.topology.dihedrals

vmd.topology.dihedrals()

Get all unique dihedrals within a specified molecule. Optionally, can get dihedral type as well

Parameters:
  • molid (int) – Molecule ID to query. Defaults to top molecule
  • type (bool) – Whether to include dihedral type information in the result Defaults to False.
Returns:

(list of lists) Information about each dihedral in the system. Each

dihedral will be a list with the indices of the four atoms comprising the dihedral, followed by dihedral type (as a string) if requested.