Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Show
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=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]] *[[spheres]] *[[mesh]] *[[ribbon]] *[[cartoon]] *[[sticks]] *[[dots]] *[[surface]] *[[Label|label]] *[[extent]] *[[nonbonded]] *[[nb_spheres]] *[[slice]] *[[cell]] ==USAGE== show show reprentation [,object] show reprentation [,(selection)] show (selection) ==PYMOL API== <source lang="python"> cmd.show( string representation="", string selection="" ) </source> ==EXAMPLES== ====Example==== <source lang="python"> # show the backbone using lines. show lines,(name ca or name c or name n) </source> ====Example==== <source lang="python"> # show the ribbon representation for all objects show ribbon </source> ====Example==== <source lang="python"> # show all hetero atoms as spheres 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> ==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 [[:Category:Script_Library|The Script Library]] or [http://adelie.biochem.queensu.ca/~rlc/work/pymol/ 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]] [[Category:Commands|Show]] [[Category:View Module|Show]]
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Show
(section)
Add topic