Biochemistry student intro
Biochemistry course
This tutorial was written directly for biochemistry students at Copenhagen University, 2012/2013.
This is the very first introduction to the powerful molecular visualizer PyMOL.
We will only cover the very basic steps to get a image of your enzyme and put in your written student article.
If you want to read about PyMOL, then try this introduction Practical_Pymol_for_Beginners
Install PyMOL to your computer
You first want to install PyMOL.
Do this, by following this guide.
MAC Pre-compiled_PyMOL through brew
Windows Pre-compiled_PyMOL
You don't have to follow the steps of extending PyMOL, but if you are a little technical, and want to become friends with PyMOL over time, then consider it.
Find a suitable protein data file
We need to find a Protein Databank File (PDB), which describe the x,y,z coordinates of your enzyme.
These are stored at the homepage: http://www.rcsb.org
Find a suitable file by searching for: porcine kidney fructose 1,6-bisphosphatase
The PDB file "1lev", seems suitable.
Read more about your protein
There exist homepages, to get more info about your protein.
These homepages collect material from several sources, and present them in easy format.
http://www.proteopedia.org/wiki/index.php/1lev
http://pdbwiki.org/wiki/1lev
Background
This tutorial is designed to give you a basic working knowledge of making pretty and informative pictures of protein structures using PyMOL.
This tutorial does not cover all the functions of PyMol, but tries to focus on the most important ones.
A great resource for more advanced use is this wiki and the large number of good tutorials found online, which can be accessed via google.
When you open PyMOL you will see two windows opening.
The upper window entitled PyMOL Tcl/Tk GUI controls the general settings and functionalities of the program while the lower one entitled PyMOL viewer,
contains the settings that are related to the current display of the molecule.
Each of these two windows contain a command line, where we can enter commands into the program.
One can, however, get really far without ever having to worry about writing any commands.
First, we will need to load a structure file into the program. Protein structures are deposited at www.pdb.org
There are several ways to open this file:
Either we can download the file from PDB and save it to our computer.
We can then open the PDB file using the menu File > Open.
We can also use the pdb loader service Plugin > PDB loader service and enter the PDB id,
or we can write: fetch followed by the PDB id in either of the two command lines.
The Viewer window should now contain the PDB file displayed with lines.
In the right hand side of the viewer window there is a selection menu that currently contains two lines:
all and the four character name of the PDB file, ex. 1lev.
Later on we will make new selections that will appear in this menu.
Each of the two lines have 5 buttons labeled A (Actions), S (Show), H (Hide), L (Label), C (Color)
.
Press these buttons to see the options available in each menu.
Hide the line representation. Press H > everything in the all line. This will remove the line representation of the molecule.
Visualize the molecule in the cartoon representation by selecting S > cartoon.
Try also to show the molecule as ribbon, sticks or surface to get a feeling for the different representations.
The cartoon option gives us the best overview of the overall structure, so hide the other representations and show the protein only in cartoon mode.
Color everything white selecting C > grey > white.
Ok, now we are going to try to move the molecule around.
Try to move the mouse around while pressing the left mouse button. This will rotate the molecule.
Try to move it around holding the middle button (moves the view) or the right button (zooms in and out).
If you have a one or two button mouse you can change the mode in the Mouse menu in the Tcl/Tk GUI window.
The box in the lower right corner will show how to move and rotate the molecule in this case.
Start your PyMOL
Start your shortcut to PyMOL "C:\Python27\PyMOL\PyMOL.exe"
Now click and do the following:
- Top Menu: Plugin -> PDB Loader Service -> 1lev OK
- Right Menu: -> 1lev -> "A" -> preset -> Publication
- Top Menu: Display -> Sequence
- Top Menu: Display -> Sequence Mode -> Chains
- In Sequence, select so all "F" is marked.
- Right Menu: -> (sele) -> "A" -> remove atoms
- Top Menu: Display -> Sequence Mode -> Residue Codes
- In Sequence, select so only substrate (F6P) is marked (A/338)
- Right Menu: -> (sele) -> "A" -> zoom
- Right Menu: -> (sele) -> "A" -> rename selection -> f6p
- Right Menu: -> (f6p) -> "C" -> by element -> Select to Carbon is not green
- Right Menu: -> (f6p) -> "A" -> find polar contacts -> to others excluding solvent
- In Sequence, select so only MN is marked (A/340)
- Right Menu: -> (sele) -> "A" -> rename selection -> mn
- Right Menu: -> (mn) -> "S" -> spheres
- Write in console: select act_site, byres f6p around 3.5
- Right Menu: -> (act_site) -> "S" -> sticks
- Right Menu: -> (act_site) -> "L" -> residues
- Find a good view, and push "Ray" in the top right of the grey command console.
- Top Menu: File -> Save Image As -> PNG
- Put it into your student article
The "Faster" way
The real power of PyMOL, comes into power, when your write a PyMOL command file.
Here you write which commands pymol should execute, and so it only take 1 second to get the same.
The commands are stored in a ".pml" file.
Open Notepad, and then: File->Save as->All files-> C:\Users\YOU\pymol\1lev.pml
# Best to restart PyMOL every time from fresh
reinitialize
cd C:\Users\DIG\pymol
fetch 1lev, async=0
preset.publication(selection='all')
remove chain F
select substrates, organic
select f6p, id 4770-4785
zoom f6p
util.cbac('f6p')
select act_site, byres f6p around 3.5
distance pol_cont, f6p, act_site, mode=2
select cli, /1lev//A/CLI
select mn, name MN
show spheres, mn
show sticks, act_site
label act_site and name CB, resn+resi
zoom pol_cont
viewport 1024,768
ray
png 1lev.png
- "#" Line starting with hashes is not read by PyMOL. Use a comment field.
- Best to restart PyMOL every time from fresh
- Go to your working directory
- Get the pdb file from the RCSB server. async=0 makes sure it waits for completion of download before continuing.
Then you just open the .pml file with PyMOL.
Or start PyMOL, and write in command: @1lev.pml
Or start PyMOL, top menu -> File -> Run... -> C:\Users\YOU\pymol\1lev.pml
Movie of Epidermal Growth Factor
Lets make a movie of the Molecule of the month on RCSB.org.
Let's take a membrane protein.
June 2010 Molecule of the Month by David Goodsell