Show: Difference between revisions
m (→PYMOL API) |
MarkusHeller (talk | contribs) |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
'''Show''' displays atom and bond representations for certain selections. | |||
'''Show''' displays atom and bond representations for certain selections. | |||
=Details= | |||
<gallery widths="125px" heights="125px" align="right"> | |||
Image:Ray2.png|Example of a shown surface. | |||
Image:Ray_trace_gain2.png|Ball and sticks shown. | |||
Image:Mesh_w05.png|A cartoon inside a mesh shown. | |||
</gallery> | |||
The '''Show''' command, is one of the most often used commands in PyMOL. For example, you can ''show'' certain atoms as ''[[Lines]]'' or ''[[Sticks]]'' or ''[[Cartoon]]s'' or any of the following representations: | |||
*[[lines]] | *[[lines]] | ||
*[[spheres]] | *[[spheres]] | ||
Line 44: | Line 52: | ||
# show all hetero atoms as spheres | # show all hetero atoms as spheres | ||
show spheres, het | show spheres, het | ||
</source> | |||
====Example==== | |||
<source lang="python"> | |||
# show only polar hydrogens | |||
hide everything, ele h | |||
show lines, ele h and neighbor (ele n+o) | |||
# hide nonpolar hydrogens | |||
hide (h. and (e. c extend 1)) | |||
</source> | |||
Note: | |||
The above code hides all representations of nonpolar hydrogens, including surface representations, resulting in broken surface representations. It might be better to remove the nonpolar hydrogens instead: | |||
<source lang="python"> | |||
# show only polar hydrogens | |||
hide everything, ele h | |||
show lines, ele h and neighbor (ele n+o) | |||
# remove nonpolar hydrogens | |||
remove (h. and (e. c extend 1)) | |||
</source> | </source> | ||
Line 54: | Line 83: | ||
==SEE ALSO== | ==SEE ALSO== | ||
[[Hide]], [[Enable]], [[Disable]], [[Lines]], [[Cartoon]], [[Spheres]], [[Mesh]], [[Ribbon]], [[Sticks]], [[Dots]], [[Surface]], [[Label]], [[Extent]], [[Slice]], [[Cell]], [[Select]] | [[Hide]], [[Enable]], [[Disable]], [[Suspend_updates]], [[Lines]], [[Cartoon]], [[Spheres]], [[Mesh]], [[Ribbon]], [[Sticks]], [[Dots]], [[Surface]], [[Label]], [[Extent]], [[Slice]], [[Cell]], [[Select]], [[Show_as]] | ||
[[Category:Commands|Show]] | |||
[[Category:View Module|Show]] |
Latest revision as of 13:49, 20 October 2014
Show displays atom and bond representations for certain selections.
Details
The Show command, is one of the most often used commands in PyMOL. For example, you can show certain atoms as Lines or Sticks or Cartoons or any of the following representations:
USAGE
show show reprentation [,object] show reprentation [,(selection)] show (selection)
PYMOL API
cmd.show( string representation="", string selection="" )
EXAMPLES
Example
# show the backbone using lines.
show lines,(name ca or name c or name n)
Example
# show the ribbon representation for all objects
show ribbon
Example
# show all hetero atoms as spheres
show spheres, het
Example
# show only polar hydrogens
hide everything, ele h
show lines, ele h and neighbor (ele n+o)
# hide nonpolar hydrogens
hide (h. and (e. c extend 1))
Note:
The above code hides all representations of nonpolar hydrogens, including surface representations, resulting in broken surface representations. It might be better to remove the nonpolar hydrogens instead:
# show only polar hydrogens
hide everything, ele h
show lines, ele h and neighbor (ele n+o)
# remove nonpolar hydrogens
remove (h. and (e. c extend 1))
NOTES
selection can be an object name.
show alone will turn on lines and nonbonded for all bonds.
show cell will show the triclinic unit cell, provided it's described in the PDB. For cell packing, you need a script. See The Script Library or Robert Campbell's Site
SEE ALSO
Hide, Enable, Disable, Suspend_updates, Lines, Cartoon, Spheres, Mesh, Ribbon, Sticks, Dots, Surface, Label, Extent, Slice, Cell, Select, Show_as