next up previous contents index
Next: An atom selection example Up: Atom selections in Python Previous: The built-in atomsel type   Contents   Index

The AtomSel class (DEPRECATED)

VMD provides an atom selection class for use in the Python interpreter. Instances of this class correspond to a set of atom indices in a particular molecule for a particular coordinate set. Once an atom selection is made, you can query the properties of the selected atoms, such as their names, residue ids, or coordinates. In a similar fashion, you can set the values of these properties. You can also perform logical operations on atom selections, including finding the intersection or union of two atom selections or finding the inverse of the set. Finally, you can perform tuple operations on the atom selection object to query the indices of the atoms in the selection.

Atom selection macros can be defined using the macro method of the AtomSel module. The syntax is just as in the corresponding atomselect macro and atomselect delmacro Tcl commands; see section 9.3.2 for details.

Below we summarize the methods available from the AtomSel class.


next up previous contents index
Next: An atom selection example Up: Atom selections in Python Previous: The built-in atomsel type   Contents   Index
vmd@ks.uiuc.edu