Pymol
Pymol
Modes
Pymol supports two modes of input: point and click mode,
and command line mode. The point and click allows you to
quickly rotate the molecule(s) zoom in and out and change
the clipping planes. The command line mode where commands are entered into the external GUI window supports
all of the commands in the point and click mode, but is
more flexible and possibly useful for complex selection and
command issuing. Commands entered on the command
line are executed when you press the return key.
command help
help keyword
Loading Files
file loading
load data/test/pept.pdb
loading from terminal
pymol data/test/pept.pdb
toggle between text and graphics
Esc
toggle Y axis rocking
rock
stereo view
stereo on/off
stereo type stereo crosseye / walleye / quadbuffer
undo action
undo
reset view
reset
reinitialize Pymol
reinitialize
quit (force, even if unsaved)
quit
Mouse Control
L
M
Rota
Move
Shift
+Box -Box
Ctrl
+/PkAt
CtSh
Sele
Cent
DblClk Menu Cent
set the center of rotation
Basic Commands
Image Output
low resolution
high resolution
ultra-high resolution
change the default size [pts]
image shadow control
image fog control
image depth cue control
image antialiasing control
export image as .png
Cartoon Settings
R
MovZ
Clip
Pk1
Menu
PkAt
Wheel
Slab
MovS
origin selection
Atom Selection
object-name/segi-id/chain-id/resi-id/name-id
molecular system selection
/pept
molecule selection
/pept/lig
chain selection
/pept/lig/a
residue selection
/pept/lig/a/10
atom
/pept/lig/a/10/ca
ranges
lig/a/10-12/ca
ranges
a/6+8/c+o
missing selections
/pept//a
naming a selection
select bb, name c+o+n+ca
count atoms in a selection
count atoms bb
remove atoms from a selection
remove resi 5
general all, none, hydro, hetatm, visible, present
atoms not in a selection
select sidechains, ! bb
atoms with a vdW gap < 3
A
resi 6 around 3
atom centers with a gap < 1.0
A all near 1 of resi 6
atom centers within < 4.0
A
all within 4 of resi 6
Setting the value at the end to 0 forces the secondary structure to go though the CA position.
cylindrical helices set cartoon cylindrical helices,1
fancy helices [tubular edge]
set
cartoon fancy helices,1
flat sheets
set cartoon flat sheets,1
smooth loops
set cartoon smooth loops,1
find rings for cartoon
set
cartoon ring finder,[1,2,3,4]
ring mode
set cartoon ring mode,[1,2,3]
nucleic acid mode set nucleic acid mode,[0,1,2,3,4]
cartoon sidechains
set cartoon side chain helper;
rebuild
primary colour
set cartoon color,blue
secondary colour
set cartoon highlight color,grey
limit colour to ss
set cartoon discrete colors,on
cartoon transparency
set cartoon transparency,0.5
cartoon loop
cartoon loop, a//
cartoon loop
cartoon loop, a//
cartoon rectangular
cartoon rect, a//
cartoon oval
cartoon oval, a//
cartoon tubular
cartoon tube, a//
cartoon arrow
cartoon arrow, a//
cartoon dumbell
cartoon dumbell, a//
b-factor sausage
cartoon putty, a//
ray
ray 2000,2000
ray 5000,5000
viewport 640,480
set ray shadow,0
set ray trace fog,0
set depth cue,0
set antialias,1
png image.png
Hydrogen Bonding
Draw bonds between atoms and label the residues that are
involved.
draw a line between atoms
distance 542/oe1,538/ne
set the line dash gap
set dash gap,0.09
set the line dash width
set dash width,3.0
set the line dash radius
set dash radius,0.0
set the line dash length
set dash length,0.15
set round dash ends
set dash round ends,on
hide a label
hide labels, dist01
label a reside
label (542/oe1), "%s" %("E542")
set label font
set label font id,4
set label colour
set label color,white
Electrostatics
There are a number of ways to apply electrostatics in Pymol. The user can use GRASP to generate a map and then
import it. Alternatively the user can use the APBS Pymol
plugin. Pymol also has a built in function that is quick
and dirty.
generate electrostatic surface action > generate>vacuum
electrostatics > protein contact potential
Miscellaneous
Secondary Structures
NMR Structures
to run dss
dss selection
to define helical structure
alter 11-40/, ss=H
to define loop regions
alter 40-50/, ss=L
to define strand structure
alter 50-60/, ss=S
rebuild the cartoon after alteration
rebuild
get dihedral angle
get dihedral 4/n,4/c,4/ca,4/cb
Files
change the working directory
list contents of current directory
print current working directory
cd <path>
ls
pwd
Changing Structures
Crystal Structures
of
To recreate crystal packing of molelcules within 5 A
pept in the pept.pdb (which must contain CRYST date),
use the symexp command.
symexp
sym,pept,(pept),5.0
add a bond
remove bonds
join to molecules together
c
2007-2009
R. Bryn Fenwick licensed under the terms of the GNU General Public License 2.0 or later.