Single-word Selectors: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
<TR><TD ALIGN="CENTER">visible</TD><TD ALIGN="CENTER">v.</TD> | <TR><TD ALIGN="CENTER">visible</TD><TD ALIGN="CENTER">v.</TD> | ||
<TD>All atoms in enabled objects with at least one visible representation</TD></TR> | <TD>All atoms in enabled objects with at least one visible representation</TD></TR> | ||
<TR><TD ALIGN="CENTER">polymer</TD><TD ALIGN="CENTER"></TD> | |||
<TD>All atoms on the polymer (not het).</TD></TR> | |||
<TR><TD ALIGN="CENTER">present</TD><TD ALIGN="CENTER">pr.</TD><TD>All atoms with defined coordinates in the current state (used in creating movies)</TD></TR> | <TR><TD ALIGN="CENTER">present</TD><TD ALIGN="CENTER">pr.</TD><TD>All atoms with defined coordinates in the current state (used in creating movies)</TD></TR> | ||
</TABLE> | </TABLE> |
Revision as of 08:41, 19 February 2008
Single-word Selectors
The very simplest selection-expressions are single-word selectors. These selectors do not take identifiers; they are complete by themselves.
Single Word Selector | Short Form Selector | Description |
---|---|---|
all | * | All atoms currently loaded into PyMOL |
none | none | No atoms (empty selection) |
hydro | h. | All hydrogen atoms currently loaded into PyMOL |
hetatm | het | All atoms loaded from Protein Data Bank HETATM records |
visible | v. | All atoms in enabled objects with at least one visible representation |
polymer | All atoms on the polymer (not het). | |
present | pr. | All atoms with defined coordinates in the current state (used in creating movies) |
The selector none won't come up much when you are typing commands directly into PyMOL, but it is useful in programming scripts.
As the table shows, many single-word selectors have short forms to save on typing. Some short forms must be followed by a period and a space, in order to delimit the word. Short forms and long forms have the same effect, so choose the form that suits you.
PyMOL> color blue, all # It all turns blue. PyMOL> color blue, * PyMOL> hide hydro # Representations of all PyMOL> hide h. # hydrogen atoms are hidden. PyMOL> show spheres, hetatom # All the atoms defined as HETATOMS PyMOL> show spheres, het # in the PDB input file # are represented as spheres.