Previous Up Next

Computer-Aided Drug Design Tutorials: 3.2. Visualization of Protein Surfaces with PyMOL

PyMOL for Molecular Visualization

We will be using PyMOL for visualizing macromolecules. According to the program's author, Dr. Warren DeLano, PyMOL is a molecular graphics system with an embedded Python interpreter designed for real-time visualization and rapid generation of high-quality molecular graphics images and animations. It can also perform many other valuable tasks (such as editing PDB files) to assist you in your research.

The strengths of PyMOL arise from the emphasis on high-quality graphics, the use of the powerful programming language (Python), and the extendability with Plugins. During the early development, emphasis was placed on providing functionality, and not on intuitive user interface. As a result, it takes a little time to learn the program. The PyMOL commands are explained in the PyMOL manual and in the PyMOL Wiki. Examples of PyMOL images with commands used to generate these views are available in the Biomolecular Images and Movies for Teaching page. In more difficult cases you can ask help from PyMOL users via PyMOL forum. You can interact with the program via four complimentary ways:

This program is available for many computer platforms, but it runs slow on our SGI workstations. For effective use, you should download and use it from your personal computer. Precompiled binaries are available from the course instructor for enrolled students.

Surface Representation of Proteins

As most drugs bind at the surface of the protein, it is a common task to visualize the protein surface in order to locate the binding pocket. This is a fairly trivial task if a structure of the protein-ligand complex is available from the PDB. Follow these instructions to quickly locate the substrate binding pocket in influenza neuraminidase.

  1. Open PyMOL by typing pymol.
  2. From Plugin, select PDB Loader Service, and enter 2HT8.
  3. Slowly rotate the molecule on the screen and try to see where the bound ligand is. It is rather hard to identify the ligand in this representation.
  4. Color is very useful for identifying ligands. Type color yellow, resn G39 to color the bound ligand in a distinct color. Visually locate the bound ligand in the structure.
  5. Create an object for your protein by typing into the PyMOL command line (either in the Tcl/Tk GUI, or in the Viewer), the following PyMOL command: create protein, chain A. If a protein has more than one chain, you should include all of them (e.g. create protein, chain A and chain B and chain C). Notice that object protein was added to the right-hand task bar.
  6. Create an object for your ligand by typing create ligand, resn G39. The program will automatically zoom into the ligand. Zoom out by holding the right mouse button while dragging up. If needed, adjust the cut plane with the mouse button that is tied to the Slab function, or select Clip -> Nothing from the Display menu.
  7. Color your protein object in your favourite color. For example, to color the protein in a peaceful light wheat color, type color wheat, protein. Notice that not much changed because the original object (2HT8) is still shown by atom colors. To hide this object, click H for Hide, then everything for the 2HT8 row in the right-hand task-bar.
  8. Show the surface for the protein. If you are on the SGI computer, you may wish to increase the performance by selecting Quality-> Maximum Performance from the Display menu. To show the surface, type show surface, protein
  9. Examine the binding pocket. Does the drug fill all of the pocket? Could the pocket possibly accommodate a longer ether side chain?
  10. Oseltamivir in influenza neuraminidase
  11. Change the representation of ligand to stick representation by typing show sticks, ligand
  12. Change the representation of ligand to CPK representation by typing show spheres, ligand
  13. Reduce the scale of the spheres by typing set sphere_scale, 0.33. You now have "ball-and-stick" model of the ligand.
  14. You have lots of control over many parameters that control the visual representation of the structure in PyMOL. For example, you could pick one of the many coloring schemes for the ligand from the Color: menu in the right-hand task-bar.
  15. Save a picture of the view on the screen using Save Image under File menu.
  16. You may want to examine this structure in 3D stereo mode by visiting the drug3 workstation terminal after the tutorial is over.
  17. The monochrome surface view is good for examining the steric requirements for binding but hides the underlying chemical nature of the active site. The next part of this tutorial illustrates how to perform a more detailed analysis of the binding pocket.

Previous Up Next

Tutorial by Dr. Kalju Kahn, Department of Chemistry and Biochemistry, UC Santa Barbara. ©2007.