next up previous contents index
Next: trans Up: Controlling VMD from Python Previous: render   Contents   Index


topology

Python operations available from the topology module, used to query and set topological relations (bonds, angles, etc.) between atoms in a molecule. For large-scale regeneration of angles and dihedrals given a bonded topology, use topotools via evaltcl, as shown below in an example script.

import topology
from VMD import evaltcl
#Load molecule here... (not shown)

#Delete existing angles and dihedrals
topology.delallangles()
topology.delalldihedrals()
topology.delallimpropers()
evaltcl("package require topotools; topo guessangles")
evaltcl("topo guessdihedrals; topo guessimpropers")


next up previous contents index
Next: trans Up: Controlling VMD from Python Previous: render   Contents   Index
vmd@ks.uiuc.edu