Difference between revisions of "Ball and Stick"

From PyMOLWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
==Ball and Stick==
 
==Ball and Stick==
Balls with sticks really look nice but they are not obvious in PyMOL:
+
The '''ball and stick''' representation is very often used to display macromolecules.  PyMOL allows the user the ability to turn on this representation for certain selections, or roll their own hand-made versions of the command (see below).
 +
 
 +
<gallery>
 +
Image:Ball_stick.png|Example of Bal and Stick Repr.
 +
</gallery>
 +
 
 +
==Usage==
 +
===Builtin===
 +
====GUI====
 +
From the PyMOL representation menu choose, "Ball and Stick".
 +
 
 +
====Command Line/API====
 +
<source lang="python">
 +
# turn on the representation for everything in PyMOL
 +
preset.ball_and_stick('all')
 +
</source>
 +
 
 +
===Hand Made===
 +
Balls with sticks really look nice.  You can even create your own style of this, with control over '''[[sphere_scale]]''' and '''[[stick_radius]]'''.
  
 
<source lang="python">
 
<source lang="python">
Line 22: Line 40:
  
 
----
 
----
[[Image:Ball_stick.png|thumb|Example of Ball and Stick Repr.|200px|right]]
 
 
Ed. As of 0.98bXX there is a GUI-enable Ball & Stick representation available to users.
 
Ed. As of 0.98bXX there is a GUI-enable Ball & Stick representation available to users.
 
 
[[User:Tree|Tree]]
 
[[User:Tree|Tree]]
  
 
[[Category:Representations|Ball and Stick]]
 
[[Category:Representations|Ball and Stick]]

Revision as of 13:42, 23 February 2007

Ball and Stick

The ball and stick representation is very often used to display macromolecules. PyMOL allows the user the ability to turn on this representation for certain selections, or roll their own hand-made versions of the command (see below).

Usage

Builtin

GUI

From the PyMOL representation menu choose, "Ball and Stick".

Command Line/API

# turn on the representation for everything in PyMOL
preset.ball_and_stick('all')

Hand Made

Balls with sticks really look nice. You can even create your own style of this, with control over sphere_scale and stick_radius.

hide lines
show sticks
show spheres
set stick_radius=0.1
set sphere_scale=0.25

Also OK:

show sticks
set valence, on
set stick_ball, on
set stick_ball_ratio, 3
set stick_radius, 0.12

You can adjust the two numbers above to your taste.


Ed. As of 0.98bXX there is a GUI-enable Ball & Stick representation available to users. Tree