|
Protein Function Discovery
and Department of Biochemistry
Molecular Modelling and Crystallographic Computing Facility
|
|
Crystallography and Modelling:
|
|
|
|
Other:
|
|
|
|
Introduction to PyMOL
Introduction to PyMOL
PyMOL is a molecular graphics program that
can be freely downloaded and installed on Windows or Linux PCs
as well as Apple computers running MAC OSX and other UNIX-based systems.
The PyMOL web site is at
http://pymol.sourceforge.net.
Follow the Download link (top left corner of the web site)
or click here and install
via the instructions therein:
Standalone PyMOL binaries for Windows provide the easiest (one-step) installation, although
I use Debian GNU/Linux
for all my work.
- Download and unzip pymol-0_97-bin-win32.zip (alternate).
- Install PyMOL by clicking on "Setup.exe".
- PyMOL can now be launched from the Start Menu.
Anyone who has trouble or does not wish to install this on his or her computer, may come talk
to me and get an account to use our SGI computer.
A good introduction to PyMOL can be found in this
tutorial, but I'll give a
different introduction here.
- After installing PyMOL, start it up and you should see a window that looks like
this (all the figures on this page link to larger images):
- I prefer a white background, especially for making figures for presentations so change this
using the
Display -> Background -> White
menu items.
- If you know the PDB ID of the structure you wish to look at, then the
easiest way to load it into PyMOL is via the Plugin menu.
Choose the PDB Loader Service and enter
the PDB code for the structure you wish to download from the RCSB
(Protein Data Bank: www.rcsb.org).
Alternatively you can search the PDB directly. You can see my
brief introduction to the
Protein Data Bank.
- After entering the code, you will see your structure displayed with all bonds drawn as lines:
- In order to get a much simpler view of the structure, left-click (and hold the mouse button down)
on the H (meaning "Hide")
in the graphic menu on the right for the row labelled (all):
and move down and select "everything"
- Then left-click on the S (meaning "Show")
in the row labelled with your PDB code (1xuu) in this
case and select cartoon. You should now see a ribbon representation of your structure:
- You can move your structure around with the mouse:
- Left button to rotate
- Middle button to translate in the plane of the screen
- Right button to translate into and out of the screen
- Mouse scroll-wheel (if you have one) to adjust the depth-cueing and clipping planes
The mouse functions are described in the bottom right corner of the graphic window:
If you find that the object names are too long to fit within the side panel, just drag the
border into the viewing area (see circled tab in the image below):
- If, as is the case with this structure, you only see one polypeptide
chain drawn on the screen, you may need to use the crystallographic symmetry to generate
the other chain of the dimer.
In this case, try typing the command (in the PyMOL Viewer Window):
symexp sym, 1xuu, 1xuu, 2.5
- You'll now see one or more new objects listed in the graphic menu on the right-hand side.
If you see too many objects, you can turn on and off the display of the objects by
clicking on the grey bar containing the object name:
- To make it easier to distinguish the objects, try changing their colours.
Click and hold on the "C" next to your object name whose colour you wish to change
and you'll see a new menu appear:
Try selecting "by chain" and you'll see a new menu to the left appear. You can then select
"by chain" to get each polypeptide chain in a different colour.
- Another way of obtaining a structure of the multimer is via the RCSB PDB web site
- After selecting colours and moving the object around to get the view you want, you can save a
"png" format graphic image (directly importable into PowerPoint) using the
File -> Save Image... menu item
or by typing the command:
png 1xuu.png
This will save a file called "1xuu.png". Alternatively to get a higher quality image, pick the button
at the top right of the separate GUI window labelled Ray.
This will perform a ray-tracing operation to generate a high-quality image complete with shadows. Then use the same image save operation to save a copy of this image for
import into your favourite presentation or word processing software or to put on a web page.
- You can save your current state with PyMOL by choosing the File
-> Save Session... menu item and entering some meaningful name.
You can then reload this session into PyMOL at a later time.
- If you wish to colour parts of your structure one colour and other parts a different colour,
you can use the command line and the residue numbers (and possibly the chain identifier) like this:
color red, 1xuu & chain a & resi 275-285
Alternatively, you can "Ctrl-middle-click" on two atoms in the structure and you'll see (pkfrag)
appear in the right hand object list. You can then colour that selection with the colour selection tool on that line,
or type the command:
color red, pkfrag
"Ctrl-middle-click" on the background will clear the pick-list
- If you want to get into more complicated uses of PyMOL
you may wish to consult my script repository. Note that in order to use
any of these scripts you must first use the run command with the name of the python script file:
run color_b.py
and then the commands in that script are available for use within PyMOL
color_b 1xuu & chain a, gradient=gy, mode=ramp
|