My software notes

November 15, 2011

[PyMOL] gradient background color

Filed under: pymol/ molmol — kpwu @ 12:03 pm
Tags: ,

Starting at  PyMOL 1.4,  single color for the background is no longer the only choice. By using 3 PyMOL commands, the gradient background color can be easily shown. The only thing users have to know is that command “ray” doesn’t support this gradient color yet. So if you type “ray” in the pymol terminal , the gradient color will show off.

Here is what I did (use PyMOL 1.4) at get the following picture:

set bg_rgb_top, [0,255,0]
set bg_rgb_bottom, [0,255,255]
set bg_gradient, on
png gradient_bg.png 

November 12, 2011

[PyMOL] Sidechain helper in the cartoon view

Filed under: pymol/ molmol — kpwu @ 3:25 pm
Tags: , ,

Using cartoon view to present the protein secondary structures and tertiary structure is common and we also often see people present some sidechains of particular residues which may be important in some biological roles. In PyMOL, when sidechain atoms are presented in the “sticks mode” with the cartoon scaffold, we always see the backbone atoms (e.g. N, O) are also presented in the sticks mode.

Here is the example (PDB code: 2BTF) showing that the nitrogen (blue) of Val47 is displaying inside the helix.

By using a PyMOL commend “set cartoon_side_chain_helper”, we can quickly hide sticks of the nitrogen and oxygen atoms.

Command: set catoon_side_chain_helper, on 

note: “on” for removing the sticks, “off” (default argument) is to keep all atoms in sticks view

 

Note (11/14/2011): PyMOLWiki has an example page of this command, see here.

 

 

 

Create a free website or blog at WordPress.com.