My software notes

April 6, 2007

[PyMOL] black-white cartoon view

Filed under: pymol/ molmol — kpwu @ 5:59 pm

I still remember 10 years ago when I was learning what is a protein, what’s the structural elements of a protein. I always saw protein structure which was presented as black-white mode, or gray gradient mode. Today, I found that PyMOL has a command to generate structure figures like the old fashion.

Here is the example :
1. I load 2GB1 and make a regular cartoon view
regular ray
2. I change the background color to white (bg_color white) and change the ray_mode by type “set ray_trace_mode, 2“. That will change the trace mode to make a black-white mode for rendering. At this moment, your pymol viewer still shows you the colorful structure, that’s okay and don’t worry. Then use “ray“, you will generate a black-white cartoon and see the result immediately.

3. To be very real “old fashion”, change the helix representation to cylindrical mode “cartoon_cylindrical_helices, 1” to activate the cylindrical helices mode “on”. I rotate the structure to make it easier to see the effect of cylindrical helix in 2GB1.
black-white ray

4. If you don’t like the thick black line, that’s okay. Just type “set antialias, 2” to make the black line thiner. Then do the same thing, use “ray” to generate a black-white structure. Here is the final result:

5. One more, but not the last (if I got some ideas, I will keep post more examples). I change the background color to cyan  “bg_color cyan“. And do the black-white picture generation. The result is fantastic. It’s easier than using some photo editors to make such graph. Here is the result:
2gb1 nice bkg


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: