Introduction to PMV
Note: This is the print view with all the tutorial pages on one page. The paginated version is available here, if you prefer that.
Before we start
|
First of all, you don't need to know Python in order to use Python
Molecular Viewing (PMV). However we do recommend to have PMV installed
so that you can follow this step-by-step tutorial. PMV is distributed
with MGLTools and we assume that you have downloaded
and successfully installed MGLTools. If not, click on the Download
tab and follow installation instructions. Once
MGLTools is installed, start PMV either by clicking on the PMV
icon ( This tutorial covers most commands in the Menu and Toolbar; click Next to get started. |
![]() |
Getting started
Download 1KES.pdb, click on File → Read Molecule and select 1KES.pdb.
PMV currently supports reading these file formats: pdb, mol2, pdbq, pdbqs, pdbqt, cif, pqr. Click on ‘-‘ in file browser widget to list all supported file extensions. When molecules are loaded, by default, PMV displays white lines drawn between bonded atoms. You can directly interact with the molecules in the PMV Viewer with your computer’s mouse or touchpad. Press N on the keyboard to bring current object to the center of the screen. Press D to toggle depth cueing. Press R to reset (i.e. undo all previous transformations). Mac users: make sure that middle button is set to "Button 3" in Apple → System Preferences ... → Keyboard & Mouse. You can also emulate three button mouse by going to X11 → Preferences ... |
![]() |
Coloring by atom type
|
To that end, click on
Color → by Atom Type, check the Checkbutton next to lines and press OK. This colors our molecule using the following palette:Hydrogens (H) - cyan Carbons (C) - gray Nitrogens (N) - blue Oxygens (O) - red Sulfurs (S) - yellow Phospors (P) - magenta All others - green You could change PMV preferences so that all new molecules are colored by atom type. This is done by usingSince hydrogens are difficult to resolve with X-ray, we are going to add them using Edit → Hydrogens → Add. This brings up the widget shown below.![]() Click OK to add missing hydrogens. |
![]() |
Displaying labels
Click on Display → Label → by Properties.
In the widget which opens change the PCOM level to Atom, choose name
from the list of properties (press 'n' on keyboard for quck access) and
press OK.
![]() |
![]() |
Measure distance
Use Edit → Measure → Distance and Shift-click on any atom of interest. A yellow sphere should appear on underlying atom. Now, Shift-click on another atom to measure the distance between these two atoms. Similarly, you can use Edit → Measure → Angle or Torsion to measure angles or torsions.
![]() |
![]() |
![]() |
Display sticks-and-balls
|
Click on |
![]() |
![]() |
![]() |
![]() |
Changing material properties
|
Click on |
![]() |


) or by running the pmv script. The default startup configuration has the Menu, Toolbar and 3D Viewer
shown in the screenshot on the left.
icon on the Toolbar.
The rationale behind this is that when the camera is docked, accessing
the drop down menus located above a docked Camera, forces a
redraw in the Viewer. This can be time consuming if there is a
complicated display. On the other hand, if the Camera is
floating, the ‘control’ portion may become buried behind other
windows.








). Use 



