next up previous contents index
Next: Rendering an Image Up: Tutorials Previous: Rapid Introduction to VMD   Contents   Index


Viewing a molecule: Myoglobin

In our quick tour of VMD, we'll start out by demonstrating a few of its visualization features. To load a new molecule, select New Molecule... from the File menu in the Main window, this will open the Files window. We will load a PDB (Protein Data Bank) file containing the coordinates of the atoms in myoglobin (compliments of Joel Berendzen of Los Alamos National Laboratory). Select the Browse... button in the files window to bring up a file browser. Go into the proteins/ directory of the tutorial data set that you have downloaded from the VMD web site. Once there, select the file mbco.pdb in the file browser, and press the Load button in the molecule file browser. button in the Files window. Figure 3.1 shows an example of VMD displaying this protein.

Figure 3.1: Sample VMD session displaying myoglobin.
\resizebox{4in}{!}{\includegraphics{pictures/ug_myco}}

You can use the mouse to manipulate the structure in the display window. There are three basic mouse modes: rotation, translation, and scaling. The mode can be changed from the Mouse menu in the main window, or by pressing r, t, or s on the keyboard while the mouse is in the graphics window. While experimenting, note how the cursor changes to indicate the mouse mode. In rotation mode, the left mouse button controls rotation about axes parallel to the screen, and the middle button controls rotation about the axis perpendicular to the screen. In translation mode, the left mouse button controls translation parallel to the screen, while the middle button controls translation in and out of the screen. Finally, in scaling mode, both the left and middle buttons control global scaling when the mouse is moved left or right, but the middle button causes larger changes.

By default molecules are displayed in a ``lines'' representation, colored by atom type. Suppose you would like to view the myoglobin structure with its protein backbone represented as a tube, the heme represented as licorice, the $ SO_4$ ion and $ CO$ molecule represented as van der Waals spheres, and histidines 64 and 93 represented as CPK models. First, open the Graphics window by selecting the Representations item in the the graphics menu of the VMD Main window. Type backbone in the Selected Atoms text entry area and press 'enter' to select the myoglobin backbone. All of the protein except for the backbone will disappear. Choose NewCartoon in the drawing method chooser to display the backbone as a tube, and choose Structure in the coloring method chooser to color the tube with the predefined secondary structure color. Press the Create Rep button. This creates a new representation in the browser, identical to the original one. The new representation can be changed without affecting others, so clear the atom selection text area and enter resname HEM to select the heme. At this point the heme isn't visible because it cannot be drawn as a cartoon, so choose the `Licorice' drawing method to make it appear. Click on Create New again to make a new view, and enter resname SO4 CO to select the $ SO_4$ ion and the $ CO$ molecule, and choose the drawing method `VDW' to render them as Van der Waal spheres. Once again, press the Create Rep button and enter resid 93 64 to select the two histidines, and render them as `CPK'. If you followed all that, then congratulations, you have made a nice image of myoglobin! With further experimentation you should be well on your way to learning how to use VMD.


next up previous contents index
Next: Rendering an Image Up: Tutorials Previous: Rapid Introduction to VMD   Contents   Index
vmd@ks.uiuc.edu