<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vossman</id>
	<title>PyMOL Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vossman"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Vossman"/>
	<updated>2026-04-04T22:18:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Transparency&amp;diff=10581</id>
		<title>Transparency</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Transparency&amp;diff=10581"/>
		<updated>2006-06-27T19:54:59Z</updated>

		<summary type="html">&lt;p&gt;Vossman: new page, needs help&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Transparency''' is used to adjust the transparency of surfaces. To use try:&lt;br /&gt;
&lt;br /&gt;
 set transparency, 0.5&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 set transparency=0.5, selection&lt;br /&gt;
&lt;br /&gt;
Where 1.0 will be an invisible and 0.0 a completely solid surface.&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Mutagenesis&amp;diff=14373</id>
		<title>Mutagenesis</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Mutagenesis&amp;diff=14373"/>
		<updated>2006-05-11T20:40:48Z</updated>

		<summary type="html">&lt;p&gt;Vossman: linearized for clarity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Mutagenesis =&lt;br /&gt;
PyMol has a '''Mutagenesis Wizard''' to make mutagenesis very easy for the end user.&lt;br /&gt;
&lt;br /&gt;
To mutate a residue follow these easy steps:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Load a PDB file&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Mutag1.png|180px|none]]&lt;br /&gt;
&amp;lt;LI&amp;gt;Under the '''Wizard''' menu select '''Mutagenesis'''&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Mutag2.png|180px|none]]&lt;br /&gt;
&amp;lt;LI&amp;gt;In the PyMol viewer window select a residue&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Mutag3.png|180px|none]]&lt;br /&gt;
&amp;lt;LI&amp;gt;Select '''No Mutation''' and select resultant residue&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Mutag4.png|180px|none]]&lt;br /&gt;
&amp;lt;LI&amp;gt;Select Apply&lt;br /&gt;
&amp;lt;LI&amp;gt;Select Done&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Stereo_ray&amp;diff=10480</id>
		<title>Stereo ray</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Stereo_ray&amp;diff=10480"/>
		<updated>2006-04-25T18:48:57Z</updated>

		<summary type="html">&lt;p&gt;Vossman: +manual method&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Stereo_ex_l.png|Left Image|200px|thumb|left]]&lt;br /&gt;
[[Image:Stereo_ex_r.png|Right Image|200px|thumb|right]]&lt;br /&gt;
[[Image:Stereo_complete.png|Combined Images|center|thumb|250px]]&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;br /&gt;
== Manually ==&lt;br /&gt;
&lt;br /&gt;
To get a stereo diagram you need to images. The left image is rotated +3 degrees and the right image is rotated -3 degrees.&lt;br /&gt;
&lt;br /&gt;
To obtain the left image, type:&lt;br /&gt;
 ray angle=+3&lt;br /&gt;
 png left-image.png&lt;br /&gt;
Likewise, to obtasin the right image, type:&lt;br /&gt;
 ray angle=-3&lt;br /&gt;
 png right-image.png&lt;br /&gt;
&lt;br /&gt;
You still use any other [[ray]] based modifications, such as:&lt;br /&gt;
 ray 1600,1200,angle=+3&lt;br /&gt;
 png big-left-image.png&lt;br /&gt;
&lt;br /&gt;
== Script ==&lt;br /&gt;
&lt;br /&gt;
A user on the PyMol list wrote a very nice little stereo ray tracing script.  Just copy this to a text file.  Then, in PyMol run&lt;br /&gt;
 run dirName/scriptName.pym&lt;br /&gt;
where '''dirName''' is where you put it, and '''scriptName''' is what you named the file then run one something like the example lines given:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
EXAMPLE&lt;br /&gt;
   stereo_ray output, 1000, 600&lt;br /&gt;
   stereo_ray secondImage.png&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create to images, one with an L and one with an R suffix.  Just paste the two images next to each other (in some image editing program) and you're done.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from pymol import cmd&lt;br /&gt;
&lt;br /&gt;
def stereo_ray(output='', width='', height=''):&lt;br /&gt;
   '''&lt;br /&gt;
DESCRIPTION&lt;br /&gt;
   &amp;quot;stereo_ray&amp;quot; ray-traces the current scene twice (separated by &lt;br /&gt;
   a six-degree rotation around the y axis)&lt;br /&gt;
   and saves a pair of images that can be combined in any image&lt;br /&gt;
   manipulation software to form a stereoimage.&lt;br /&gt;
   The first argument, the output file name, is mandatory.&lt;br /&gt;
   The second and third arguments, the size of the image, are not.&lt;br /&gt;
   If the width is given, the height will be calculated.&lt;br /&gt;
&lt;br /&gt;
USAGE&lt;br /&gt;
   stereo_ray filename [, width [, height]]&lt;br /&gt;
&lt;br /&gt;
EXAMPLE&lt;br /&gt;
   stereo_ray output, 1000, 600&lt;br /&gt;
   stereo_ray secondImage.png&lt;br /&gt;
   '''&lt;br /&gt;
&lt;br /&gt;
   if output == '':&lt;br /&gt;
      print 'no output filename defined\n'&lt;br /&gt;
      print 'try: \'stereo_ray filename\''&lt;br /&gt;
      return -1&lt;br /&gt;
      # abort if no output file name given&lt;br /&gt;
&lt;br /&gt;
   if width == '':&lt;br /&gt;
      width,height = cmd.get_session()['main'][0:2]&lt;br /&gt;
      # get dimensions from viewer if not given&lt;br /&gt;
&lt;br /&gt;
   elif height == '':&lt;br /&gt;
      oldWidth,oldHeight = cmd.get_session()['main'][0:2]&lt;br /&gt;
      height = int(width)*oldHeight/oldWidth&lt;br /&gt;
      # calculate height from proportions of viewer if&lt;br /&gt;
      # only width is given&lt;br /&gt;
&lt;br /&gt;
   cmd.ray(width, height, angle=-3)&lt;br /&gt;
   cmd.png(output+&amp;quot;_r&amp;quot;)&lt;br /&gt;
   cmd.ray(width, height, angle=3)&lt;br /&gt;
   cmd.png(output+&amp;quot;_l&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
cmd.extend('stereo_ray',stereo_ray)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Library|Stereo Ray]]&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Util.mroll&amp;diff=10606</id>
		<title>Util.mroll</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Util.mroll&amp;diff=10606"/>
		<updated>2006-03-20T22:28:46Z</updated>

		<summary type="html">&lt;p&gt;Vossman: + See Alse&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''util.mroll''' issues mdo commands to create full rotation&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 util.mroll(start, finish, loop-flag)&lt;br /&gt;
&lt;br /&gt;
=== EXAMPLE ===&lt;br /&gt;
&lt;br /&gt;
In this next example, the protein is rotated through a full 360 sweep about the Y-axis over 120 frames&lt;br /&gt;
&lt;br /&gt;
 load test/dat/pept.pdb       # load a structure&lt;br /&gt;
 mset 1 x120                  # define the movie&lt;br /&gt;
 util.mroll(1,120,1)          # issues [[mdo]] commands to create full rotation over 120 frames&lt;br /&gt;
 mpng                         # outputs png files of rotation&lt;br /&gt;
&lt;br /&gt;
=== SEE ALSO ===&lt;br /&gt;
* PyMol User Manual [http://pymol.sourceforge.net/newman/user/S0300movies.html Movie Page]&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Util.mroll&amp;diff=10605</id>
		<title>Util.mroll</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Util.mroll&amp;diff=10605"/>
		<updated>2006-03-20T22:27:37Z</updated>

		<summary type="html">&lt;p&gt;Vossman: /* EXAMPLE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''util.mroll''' issues mdo commands to create full rotation&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 util.mroll(start, finish, loop-flag)&lt;br /&gt;
&lt;br /&gt;
=== EXAMPLE ===&lt;br /&gt;
&lt;br /&gt;
In this next example, the protein is rotated through a full 360 sweep about the Y-axis over 120 frames&lt;br /&gt;
&lt;br /&gt;
 load test/dat/pept.pdb       # load a structure&lt;br /&gt;
 mset 1 x120                  # define the movie&lt;br /&gt;
 util.mroll(1,120,1)          # issues [[mdo]] commands to create full rotation over 120 frames&lt;br /&gt;
 mpng                         # outputs png files of rotation&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Util.mroll&amp;diff=10604</id>
		<title>Util.mroll</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Util.mroll&amp;diff=10604"/>
		<updated>2006-03-20T22:25:23Z</updated>

		<summary type="html">&lt;p&gt;Vossman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''util.mroll''' issues mdo commands to create full rotation&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 util.mroll(start, finish, loop-flag)&lt;br /&gt;
&lt;br /&gt;
=== EXAMPLE ===&lt;br /&gt;
&lt;br /&gt;
In this next example, the protein is rotated through a full 360 sweep about the Y-axis over 120 frames&lt;br /&gt;
&lt;br /&gt;
 load test/dat/pept.pdb       # load a structure&lt;br /&gt;
 mset 1 x120                  # define the movie&lt;br /&gt;
 util.mroll(1,120,1)          # issues [[mdo]] commands to create full rotation over 120 frames&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Spheres&amp;diff=10340</id>
		<title>Spheres</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Spheres&amp;diff=10340"/>
		<updated>2005-11-13T21:09:45Z</updated>

		<summary type="html">&lt;p&gt;Vossman: Tip for changing sphere sizes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Spheres_ex.png|thumb|Normal Sphere Representation Example|center]]&lt;br /&gt;
&lt;br /&gt;
==Representation==&lt;br /&gt;
To enable the '''spheres''' representation do the following for any selection SEL,&lt;br /&gt;
 show spheres, SEL&lt;br /&gt;
&lt;br /&gt;
==Adjusting Sphere Size==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
alter selection, vdw=number&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
Shrink the size of all Iron atoms:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
alter elem fe, vdw=1.0&lt;br /&gt;
rebuild&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Dramatically enlarge all spheres in an object&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
alter object, vdw=4.0&lt;br /&gt;
rebuild&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==OpenGL Shaders &amp;amp; Spheres==&lt;br /&gt;
Newer OpenGL supported cards (like the NVidia 5950 Ultra, or the 6800 GT Ultra) support '''Shaders'''.  Shaders are best used for massive numbers of molecules that are to be represented as spheres.  Typical ranges will now include 500 000 to 3 000 000 atoms!  Take a look, the following example is of a viral nucleocapsid: 261 240 atoms!  Performance and visual quality -- without rendering -- are far improved.&lt;br /&gt;
&lt;br /&gt;
===Comparing Shaders and No-Shaders===&lt;br /&gt;
[[Image:No_shader.jpg|thumb|Normal spheres: no shaders|center]]&lt;br /&gt;
[[Image:Shader.jpg|thumb|(sphere_mode=5) Shader Spheres|center]]&lt;br /&gt;
&lt;br /&gt;
To turn on Sphere Shaders use&lt;br /&gt;
 set sphere_mode, 5&lt;br /&gt;
 as spheres, SEL&lt;br /&gt;
where '''SEL''' is the name of your selection.  Getting normal sphere mode back is easy:&lt;br /&gt;
 set sphere_mode, 4&lt;br /&gt;
 as spheres, SEL&lt;br /&gt;
&lt;br /&gt;
===Enabling Shaders===&lt;br /&gt;
If the above doesn't work, then you may need to rebuild PyMol so that it builds the shaders source code.  To do this, you simply need to edit the '''setup.py''' file before you build PyMol.&lt;br /&gt;
&lt;br /&gt;
Find the appropriate line in your '''setup.py''' file depending on your system.  The relevant lines are, first for Windows,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
if sys.platform=='win32':&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and for Windows using Cygwin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
elif sys.platform=='cygwin':&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and finally for *nix or other systems as the following&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
else:&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Under this code, find the&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
def_macros=[(&amp;quot;_PYMOL_MODULE&amp;quot;,None),&lt;br /&gt;
            (&amp;quot;_PYMOL_INLINE&amp;quot;,None),&lt;br /&gt;
#           (&amp;quot;_PYMOL_NUMPY&amp;quot;,None),&lt;br /&gt;
            (&amp;quot;_HAVE_LIBPNG&amp;quot;,None)]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and make it&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
  def_macros=[(&amp;quot;_PYMOL_MODULE&amp;quot;,None),&lt;br /&gt;
              (&amp;quot;_PYMOL_INLINE&amp;quot;,None),&lt;br /&gt;
#             (&amp;quot;_PYMOL_NUMPY&amp;quot;,None),&lt;br /&gt;
              (&amp;quot;_HAVE_LIBPNG&amp;quot;,None),&lt;br /&gt;
              (&amp;quot;_PYMOL_OPENGL_SHADERS&amp;quot;,None)]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
I just added the&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
(&amp;quot;_PYMOL_OPENGL_SHADERS&amp;quot;,None)]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
line.&lt;br /&gt;
&lt;br /&gt;
See the [[:Category:Installation|Installation Page]] to find out how to build PyMol.&lt;br /&gt;
&lt;br /&gt;
[[Category:Representations|Spheres]]&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Color&amp;diff=5171</id>
		<title>Color</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Color&amp;diff=5171"/>
		<updated>2005-11-13T20:55:22Z</updated>

		<summary type="html">&lt;p&gt;Vossman: adding technique to use RGB&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
   &amp;quot;color&amp;quot; changes the color of an object or an atom selection.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 color color-name&lt;br /&gt;
 color color-name, object-name&lt;br /&gt;
 color color-name, (selection)&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;cmd.color( string color, string selection )&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using RGB for Color==&lt;br /&gt;
If you prefer RGB to color any object&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_color newcolor, [r,g,b]&lt;br /&gt;
color newcolor&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===EXAMPLES===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;color yellow, (name C*)&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RGB Example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_color khaki, [195,176,145]&lt;br /&gt;
color khaki&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Objects_and_Selections]]&lt;br /&gt;
[[Category:Commands|color]]&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Cartoon&amp;diff=4375</id>
		<title>Cartoon</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Cartoon&amp;diff=4375"/>
		<updated>2005-10-24T14:20:02Z</updated>

		<summary type="html">&lt;p&gt;Vossman: /* Adjusting width of cartoon */ info for loops; had to google it&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Cartoon Command==&lt;br /&gt;
===DESCRIPTION===&lt;br /&gt;
&amp;quot;cartoon&amp;quot; changes the default cartoon for a set of atoms.&lt;br /&gt;
 &lt;br /&gt;
===USAGE===&lt;br /&gt;
   cartoon type, (selection)&lt;br /&gt;
 &lt;br /&gt;
   type = skip | automatic | loop | rectangle | oval | tube | arrow | dumbbell&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
 &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
   cmd.cartoon(string type, string selection )&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===EXAMPLES===&lt;br /&gt;
   cartoon rectangle,(chain A)&lt;br /&gt;
   cartoon skip,(resi 145:156)&lt;br /&gt;
&lt;br /&gt;
===NOTES===&lt;br /&gt;
    the &amp;quot;automatic&amp;quot; mode utilizes ribbons according to the&lt;br /&gt;
   information in the PDB HELIX and SHEET records. &lt;br /&gt;
 &lt;br /&gt;
[[Category:Commands|cartoon]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adjusting width of cartoon==&lt;br /&gt;
&lt;br /&gt;
Try varying the following.&lt;br /&gt;
&lt;br /&gt;
For &amp;amp;beta;-strands:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cartoon_rect_length&lt;br /&gt;
cartoon_rect_width&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;amp;alpha;-helices:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cartoon_oval_length&lt;br /&gt;
cartoon_oval_width&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For loops:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cartoon_loop_radius&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For &amp;quot;fancy&amp;quot; &amp;amp;alpha;-helices:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cartoon_dumbell_length&lt;br /&gt;
cartoon_dumbell_width&lt;br /&gt;
cartoon_dumbell_radius  (radius of cylinder at edge of helix ribbon)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In each case &amp;quot;length&amp;quot; refers to what some might call the width and &amp;quot;width&amp;quot; refers to what some might call the thickness.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Cartoon_ex.png|thumb|center|Cartoon Representation Example|300px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Forcing Exact Boundaries in Coloring Secondary Structures===&lt;br /&gt;
To force PyMol to respect secondary structural elements color-wise (PyMol smooths out colors near color chagnes for a prettier image) use the following &lt;br /&gt;
PyMol command:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
set cartoon_discrete_colors, on&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Cartoon_discrete_color0.png|Discrete Coloring Off|center|thumb]] [[Image:Cartoon_discrete_color1.png|Discrete Coloring On|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Sausage Representation ==&lt;br /&gt;
The familiar sausage representation in PyMol is called, &amp;quot;putty&amp;quot;.  To enable the putty/sausage view simply do,&lt;br /&gt;
 show cartoon&lt;br /&gt;
 cartoon putty&lt;br /&gt;
 unset cartoon_smooth_loops&lt;br /&gt;
 unset cartoon_flat_sheets&lt;br /&gt;
&lt;br /&gt;
As of v 0.98 or so, there's a Putty option.  Use this.&lt;br /&gt;
&lt;br /&gt;
[[Image:B_factor_putty.png|thumb|Example of B-factor Putty|center|250px]]&lt;br /&gt;
&lt;br /&gt;
==Black and White Representation==&lt;br /&gt;
For those who want a nifty black and white representation of their protein try the following:&lt;br /&gt;
# Ray trace your protein of choice in a cartoon representation use a BLACK background&lt;br /&gt;
# Save the image&lt;br /&gt;
# Load the image in GIMP. [[Image:Bw1.jpeg|thumb|Black BG Ribbon|center|350px]]&lt;br /&gt;
# Desaturate or Grayscale the image. [[Image:Bw2.jpeg|thumb|Grayscale|center|350px]]&lt;br /&gt;
# Run the filter: Filter-&amp;gt;Edge-Detect-&amp;gt;Edge. [[Image:Bw3.jpeg|thumb|Edge Detect|center|350px]]&lt;br /&gt;
# Select: Layers-&amp;gt;Color-&amp;gt;Invert. [[Image:Bw4.jpeg|thumb|Invert Color|center|350px]]&lt;br /&gt;
# Different methods of edge detection will give you different results.  In the last example, I used Laplace Edge-Detect, then painted an all white layer beneath the current layer to achieve the results. [[Image:Bw5.jpeg|thumb|Other Styles|center|350px|Comments]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm sure there are other ways to do this.  If you want to include it in a publication make sure you ray traced it large enough.  For that, see [[:Category:Advanced_Issues_Image_Manipulation_Publication_Quatlity_Images|Creating Publication Quality Images]].&lt;br /&gt;
&lt;br /&gt;
==CA (Alpha Carbon) Trace==&lt;br /&gt;
If you have a structure with just a alpha carbon trace, you can get a cartoon by&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set cartoon_trace,1&lt;br /&gt;
show cartoon&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If your structure is more than just the CA backbone, the cartoon representation will look incorrect, so use it just with CA trace.&lt;br /&gt;
&lt;br /&gt;
==Various Transparency Levels==&lt;br /&gt;
[[Image:Cartoon_multi_transp.png|thumb|center|Example of Cartoon Multi-level Transparency.  The near cartoon has transparency setting '''0.2''', the segment in the BG '''0.5'''.]]&lt;br /&gt;
One can make different cartoon selections have different transparency values, in PyMol.  The trick here is to use &amp;quot;create&amp;quot; instead of &amp;quot;select&amp;quot;.  Create makes new objects that can have independent settings.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load mol_obj.pdb&lt;br /&gt;
&lt;br /&gt;
# transfer a piece of the molecule into a new object&lt;br /&gt;
&lt;br /&gt;
create new_obj, chain A&lt;br /&gt;
remove mol_obj in new_obj&lt;br /&gt;
&lt;br /&gt;
# adjust trasparency for the new object&lt;br /&gt;
&lt;br /&gt;
set cartoon_transparency, 0.5, new_obj&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Nucleic Acid Representation ==&lt;br /&gt;
[[Image:Nucleic1.png|thumb|center|Showing Nucleic Acids]]&lt;br /&gt;
To show nucleic acids in a nicer format do:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
 set cartoon_ring_mode,1&lt;br /&gt;
 show cartoon&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
[[Displaying_Biochemical_Properties]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Representations|Cartoon]]&lt;/div&gt;</summary>
		<author><name>Vossman</name></author>
	</entry>
</feed>