My software notes

May 2, 2013

[PyMOL] molmol-like colors on secondary structural elements

Filed under: pymol/ molmol — kpwu @ 9:18 pm
Tags: ,

I  recently saw some nice presentations of protein structures prepared by MOLMOL. Since MOLMOL is not actively maintained,  I wonder how to make similar colors on the secondary structural elements in PyMOL.

In this short blog,  an example is shown. The top and bottom figures  are made by PyMOL and MOLMOL, respectively.

How I did that? Basically, just make highlight color yellow, turn on discrete cartoon color, adjust the width and length of strands.

The PyMOL script is shown here, too:

cmd.show_as(“cartoon” ,”all”)
bg_color white
set cartoon_highlight_color, yellow
set cartoon_rect_width, 0.03
set cartoon_rect_length, 1.7
set cartoon_discrete_colors, on
util.cbss(“all”,”red”,”cyan”,”gray70″,_self=cmd)

2H28-molmol like

x

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.