UCSF Chimera - Getting Started

UCSF Chimera - DNA/Netropsin

DNA helix with bound netropsin

This tutorial provides an overview of basic features in Chimera for displaying and manipulating structures. You can interact with Chimera by using the menus and/or by entering commands. The basic features of Chimera are available either way, but several tools are not available as commands, and several command operations (and scripting) are not available through the menus. Thus, it is useful to become familiar with both ways of interacting with Chimera.

The Working with menus and Working with commands sections were designed to be independent of each other. They cover (for the most part) identical operations, accomplished in different ways. If you go through both sections, you can skip portions that cover issues you already understand. You can also go back and forth between the sections to see the correspondence between menu and command operations.


Outline:


Working with Menus, Part 1 - Manipulation, Selection, and Chains

UCSF Chimera - Leucine Zipper

UCSF Chimera with 1zik

Getting started

On Linux, run the executable "chimera" in the bin directory of your Chimera installation. If Chimera is installed in /usr/local/chimera, run /usr/local/chimera/bin/chimera from a shell.

On Windows, start Chimera by doubleclicking the Chimera icon in the directory called bin in your Chimera installation. If Chimera is installed in \Program Files the executable will be in the directory \Program Files\Chimera\bin. By default, a Chimera icon will also be placed on your desktop.

On Mac, start Chimera by clicking the Chimera icon or by doubleclicking the Chimera application in the Finder window. Both Aqua and X Windows versions of Chimera are available for Mac. The X Windows version requires an X server such as Apple's X11 (details), which will start automatically as needed.

A splash screen will appear, to be replaced in a few seconds by the main Chimera window. Chimera includes a number of tools and dialogs that can be present on the screen at the same time. The main window contains the graphics display; if you like, enlarge it by clicking and dragging its lower right corner. Each Chimera window or tool can be moved to a convenient location by clicking its top bar and dragging.

Opening a structure

Side View

Side View showing 1zik

Now open a structure. Choose File→Fetch by ID and type 1zik in the PDB ID field. The structure will appear in the main graphics window; it is a leucine zipper formed by two peptides.

A preset is a predefined combination of display settings. Apply interactive preset #2, which displays all atoms and colors the heteroatoms by element:

    Presets→Interactive 2 (all atoms)

Side View

Scaling and clipping operations can be performed with the Side View. There are several ways to start this tool; one is to choose Tools→Viewing Controls→Side View from the menu. By default, the Side View is also listed in the Favorites menu. The Side View shows a tiny version of the structure.

Within the Side View, try moving the eye position (the small square) and the clipping planes (vertical lines) with the left mouse button. The Side View will renormalize itself after movements, so that the eye or clipping plane positions may appear to "bounce back," but your adjustments have been applied.

Using the mouse

Try manipulating the structure in the main window with the mouse. By default, the left mouse button controls rotation, the middle mouse button controls XY translation, and the right mouse button controls scaling. On a Mac with a one-button mouse, the middle and right buttons can be emulated by combining mouse action with the option and (apple) keys, respectively.

Continue moving and scaling the structures with the mouse in the graphics window and Side View as desired throughout the tutorial.

Hovering the mouse cursor over an atom or bond (without clicking any buttons) will show identifying information in a pop-up "balloon." The balloon will disappear when the cursor is moved away.

In combination with the control (Ctrl) key, the mouse buttons have additional functions. By default, picking from the screen (a type of selection) is done by clicking on the atom or bond of interest with the left mouse button (Btn1) while holding down the Ctrl key. To add to an existing selection, also hold down the Shift key. The selection is highlighted in green, and its contents are reported on the button near the lower right corner of the graphics window.

You can also drag out a selection area with Ctrl-Btn1 (sweep out an area before releasing). All atoms and bonds within that area will be selected. As before, Ctrl-Shift-Btn1 can be used to add to an existing selection, either by clicking or by dragging.

The arrow keys can be used to broaden, narrow, or invert a selection. Chimera maintains a hierarchy of objects from atoms to residues to chains to models. If an atom is selected, the key will broaden the selection to the residue containing that atom. If an entire residue is selected, the key will broaden the selection to the chain containing that residue. If a chain is selected, the key will broaden the selection to the entire model. Similarly, the selection scope can be narrowed using the key. The key inverts the selection so that selected atoms become deselected and vice versa.

Spend some time selecting various parts of the model. An easy way to deselect everything is to use Ctrl-Btn1 in any blank space in the graphics window.

Selection/Action

In general, operations performed with the Chimera Actions menu affect the current selection. Selections can be made in many ways, including with the Select menu or with the mouse (as described above). When nothing is selected, the Actions menu applies to everything.

The current selection is highlighted in green in the structure(s) and its contents are reported on the button near the lower right corner of the graphics window.

Changing the display

Hide the water (red dots):

    Select→Structure→solvent
    Actions→Atoms/Bonds→hide

Alternatively, the water could have been selected using Select→Residue→HOH. Even though the water is hidden, it is still selected.

Clear the selection and display only the chain trace:

    Select→Clear Selection
    Actions→Atoms/Bonds→backbone only→chain trace

The chain trace includes just the α-carbons (atoms named CA), connected in the same way that the residues are connected.

Try picking two α-carbons, one from each peptide (using Ctrl-Btn1 for the first, Ctrl-Shift-Btn1 for the second). Label the atoms you have selected, first by atom name and then by residue name and number:

    Actions→Label→name
    Actions→Label→off
    Actions→Label→residue→name + specifier

Each residue label is of the form:

    res_name res_number.chain

One peptide is chain A and the other is chain B. Clear the selection and undisplay the residue labels:

    Select→Clear Selection
    Actions→Label→residue→off

(Another way to clear a selection is to Ctrl-Btn1 click in empty space.)

1zik colored by element

1zik colored by element

Color the two chains different colors:

    Select→Chain→A
    Actions→Color→cyan

Repeat the process to color chain B yellow.

Select chain A by picking any atom or bond in the chain, then hitting the key twice, once to expand the selection to the entire residue and another time to expand it to the entire chain. Display its full backbone:

    Actions→Atoms/Bonds→backbone only→full

Display all atoms of chain A only (which is still selected):

    Actions→Atoms/Bonds→show only

Display all atoms and color them by element:

    Select→Clear Selection
    Actions→Atoms/Bonds→show
    Actions→Color→by element

The by element coloring applies to all elements including carbon (gray), whereas by heteroatom coloring (as in the preset used near the beginning of the tutorial) leaves carbons unchanged. Heteroatom-only coloring is especially useful for keeping multiple structures with different default colors distinguishable.

Models and model status

Chimera Model Panel

Chimera Model Panel

Generally, each file of coordinates opened in Chimera becomes a model with an associated model ID number. Models are assigned successive numbers starting with 0. The Model Panel shows the current models and enables many operations upon them. Open this tool with Tools→General Controls→Model Panel. By default, the Model Panel is also listed in the Favorites menu.

A checkbox in the A(ctive) column of the Model Panel shows that the model is activated for motion; unchecking the box makes it impossible to move. Checking the box again restores the movable state. Make sure the line for 1zik is highlighted on the left side of the Model Panel (if not, click on it) and then click close in the list of functions on the right side. Use the Close button at the bottom to close the Model Panel.

Go on to Part 2 below, or exit from Chimera with File→Quit.



Working with Menus, Part 2 - Molecular Representations and Surfaces

Setup

UCSF Chimera - DNA/Netropsin

Chimera showing netropsin as spheres

With Chimera started and the Side View opened as described at the beginning of Part 1, open a different structure. Choose File→Fetch by ID and type 1d86 in the PDB ID field. The structure contains the molecule netropsin bound to double-helical DNA.

Use the "all atoms" preset, which will show the DNA as wire and netropsin as spheres:

    Presets→Interactive 2 (all atoms)

Undisplay the water:

    Select→Structure→solvent
    Actions→Atoms/Bonds→hide

Remember that hiding atoms does not deselect them; they remain selected until the selection is cleared or replaced with a new selection.

Color the different nucleotides different colors. For example, color the adenine deoxynucleotides blue:

    Select→Residue→DA
    Actions→Color→blue

Analogously, color cytosine deoxynucleotides (DC residues) cyan, guanine deoxynucleotides (DG residues) yellow, and thymine deoxynucleotides (DT residues) magenta. Clear the selection with Select→Clear Selection or by picking in empty space.

Rotate, translate, and scale the structure as needed to get a better look (see Using the mouse to review how this is done). Continue moving and scaling the structure as desired throughout the tutorial.

Representations and labels

ribbon representations

Ribbon: flat, edged, and rounded

Next, try some different display styles, or representations. Multiple styles can be combined with each other and with surfaces (more on surfaces below).

    Actions→Ribbon→show
    Actions→Ribbon→edged
    Actions→Ribbon→rounded
    Actions→Ribbon→hide
    Actions→Atoms/Bonds→stick
    Actions→Atoms/Bonds→sphere

Change the representation of only one of the DNA strands, chain B:

    Select→Chain→B
    Actions→Atoms/Bonds→stick
    Select→Clear Selection

atoms/bonds representations

Atoms/Bonds: wire, stick, ball & stick, and sphere

Next, change everything to a ball-and-stick representation:

    Actions→Atoms/Bonds→ball & stick

Pick one of the atoms in netropsin. Label the residue,

    Actions→Label→residue→name

showing that it is named NT. The residue label might not be near the selected atom. The first submenu under Label controls individual atom labels, while the second controls residue labels. Actions→Label→name would have shown the name of the atom instead of the name of the residue.

Clear the selection (for example, by picking in empty space) and undisplay the residue label:

    Actions→Label→residue→off

Surfaces

surface representations

Surface: dot, mesh, and solid

Finally, have some fun with molecular surfaces. There are built-in categories within structures such as main and ligand; when nothing is selected, Actions→Surface→show displays the surface of main.

    Actions→Surface→show
    Actions→Surface→hide
    Select→Structure→ligand
    Actions→Surface→show
    Actions→Surface→mesh

Surface color can be specified separately from the colors of the underlying atoms. Change the surface color only of netropsin (which is still selected):

  1. change the coloring target: Actions→Color→surfaces
  2. Actions→Color→red
  3. restore the default coloring target: Actions→Color→all of the above
Clear the selection, change back to a solid surface, and then undisplay the surface.

    Select→Clear Selection
    Actions→Surface→solid
    Actions→Surface→hide

As an example of a more complicated selection process, show the surface of the adenine and thymine deoxynucleotides in chain B only:

  1. change the selection mode: Select→Selection Mode→append
  2. Select→Residue→DA
  3. Select→Residue→DT
  4. change the selection mode: Select→Selection Mode→intersect
  5. Select→Chain→B
  6. Actions→Surface→show
To prepare for any subsequent operations, restore the selection mode and clear the selection:

    Select→Selection Mode→replace
    Select→Clear Selection

The command line (Tools→General Controls→Command Line) equivalent is much more concise, but requires some knowledge of the atom specification syntax:

Command: surf :da.b,dt.b
Sometimes it is helpful to make a solid surface transparent:

    Actions→Surface→transparency→50%

Choose File→Quit from the menu to terminate the Chimera session.


Front image how-to (menu)

How to recreate the image at the front of the tutorial using the menu (see commands):
UCSF Chimera - DNA/Netropsin

DNA helix with bound netropsin

  1. Choose File→Fetch by ID and fetch PDB entry 1d86
  2. Use the all atoms preset:
  3. Set the display style to stick:
  4. Delete the waters:
    • Select→Structure→solvent
    • Actions→Atoms/Bonds→delete
  5. Color the residues:
    • Select→Residue→DA
    • Actions→Color→blue
    • Select→Residue→DC
    • Actions→Color→cyan
    • Select→Residue→DG
    • Actions→Color→yellow
    • Select→Residue→DT
    • Actions→Color→magenta
    • Select→Residue→NT
    • Actions→Color→white
  6. Broaden the selection to the whole chain and then to the whole model (both ligand and main), show surfaces, make them transparent:
    • Select→Broaden
    • Select→Broaden
    • Actions→Surface→Show
    • Actions→Surface→transparency→50%
  7. Set coloring to surfaces only, make them light gray:
    • Actions→Color→surfaces
    • Actions→Color→light gray
  8. Select just netropsin again, make its surface red:
    • Select→Residue→NT
    • Actions→Color→red
    • Select→Clear Selection
  9. Set coloring to background only, make it white, restore the default coloring mode (to avoid later confusion):
    • Actions→Color→background
    • Actions→Color→white
    • Actions→Color→all of the above
  10. Adjust the view as desired
  11. Save the image:

Working with Commands, Part 1 - Manipulation, Selection, and Chains

UCSF Chimera - Leucine Zipper

Chimera with Command Line

Getting started

On Linux, run the executable "chimera" in the bin directory of your Chimera installation. If Chimera is installed in /usr/local/chimera, run /usr/local/chimera/bin/chimera from a shell.

On Windows, start Chimera by doubleclicking the Chimera icon in the directory called bin in your Chimera installation. If Chimera is installed in \Program Files the executable will be in the directory \Program Files\Chimera\bin. By default, a Chimera icon will also be placed on your desktop.

On Mac, start Chimera by clicking the Chimera icon or by doubleclicking the Chimera application in the Finder window. Both Aqua and X Windows versions of Chimera are available for Mac. The X Windows version requires an X server such as Apple's X11 (details), which will start automatically as needed.

A splash screen will appear, to be replaced in a few seconds by the main Chimera window. Chimera includes a number of tools and dialogs that can be present on the screen at the same time. The main window contains the graphics display; if you like, enlarge it by clicking and dragging its lower right corner. Each Chimera window or tool can be moved to a convenient location by clicking its top bar and dragging.

Show the Command Line with Tools→General Controls→Command Line. By default, the Command Line is also listed in the Favorites menu.

Opening a structure

Side View

Side View showing 1zik

Now open a structure. To fetch the structure directly from the PDB, use the command:

Command: open 1zik
The structure will appear in the main graphics window; it is a leucine zipper formed by two peptides.

A preset is a predefined combination of display settings. Apply interactive preset #2, which displays all atoms and colors the heteroatoms by element:

Command: preset apply int 2

Side View

Show the Side View:

Command: start Side View
By default, the Side View can also be started from the Favorites menu.

The Side View allows interactive scaling (zooming) and clipping. Within the Side View, try moving the eye position (the small square) and the clipping planes (vertical lines) with the left mouse button. The Side View will renormalize itself after movements, so that the eye or clipping plane positions may appear to "bounce back," but your adjustments have been applied.

Using the mouse

1zik with Tyr 17 (B chain) selected

1zik with tyrosine 17 (B chain) selected

Try manipulating the structure in the main window with the mouse. By default, the left mouse button (Btn1) controls rotation, the middle mouse button (Btn2) button controls XY translation, and the right mouse button (Btn3) controls scaling. On a Mac with a one-button mouse, the middle and right buttons can be emulated by combining mouse action with the option and (apple) keys, respectively.

Continue moving and scaling the structures with the mouse in the graphics window and Side View as desired throughout the tutorial.

Hovering the mouse cursor over an atom or bond (without clicking any buttons) will show identifying information in a pop-up "balloon." The balloon will disappear when the cursor is moved away.

In combination with the control (Ctrl) key, the mouse buttons have additional functions. By default, picking from the screen (a type of selection) is done by clicking on the atom or bond of interest with the left mouse button (Btn1) while holding down the Ctrl key. To add to an existing selection, also hold down the Shift key. The selection is highlighted in green, and its contents are reported on the button near the lower right corner of the graphics window.

The arrow keys can be used to broaden (), narrow (), or invert () a selection. The hierarchy for broadening and narrowing selections contains atoms, residues, chains, and models, in that order. When a selection is inverted, the selected atoms become deselected and vice versa.

Spend some time selecting various parts of the model. An easy way to deselect everything is to use Ctrl-Btn1 in any blank space in the graphics window.

Command/Target

A Chimera command may include arguments and a target (or atom specification). For example, in the following color command,

Command: color hot pink :lys
hot pink is an argument that specifies a color name, and the target :lys specifies all residues named LYS. (To see the built-in colors and their names, choose Actions→Color→all colors from the menu.)

If no target is specified, the command acts on all applicable items. For example,

Command: color hot pink
makes all atoms (and their labels, surfaces, etc.) hot pink.

Unlike the Actions menu, commands do not automatically act on the current selection. However, the current selection can be specified as the target of a command with the word selected, sel, or picked.

Many commands have "~" versions that perform the opposite function. For example, change the structure back to its default color:

Command: ~color
The command help can be used to show the manual page for any command. For example,
Command: help color
shows the manual page for the command color. The Chimera Quick Reference Guide lists all of the commands and gives some examples of atom specification. It can be accessed by choosing Help→Tutorials from the Chimera menu and clicking the "Chimera Quick Reference Guide" link.

Changing the display

Display only the atoms named CA (α-carbons):

Command: show @ca
   -OR- (equivalent)
Command: ~display  ~  @ca
The latter command undisplays atoms not named CA. The command display without any arguments displays all atoms.

Try picking two α-carbons, one from each peptide (using Ctrl-Btn1 for the first, Ctrl-Shift-Btn1 for the second). Label the atoms you have selected:

Command: label sel
The label command shows atom information (atom name, by default). Undisplay the atom labels, then show labels for the residues containing the selected atoms:
Command: ~label
Command: rlabel sel
1zik with α-carbon traces in different colors

1zik with chain traces in different colors

Each residue label is of the form:
res_name res_number.chain
One peptide is chain A and the other is chain B. Clear the selection and undisplay the residue labels:
Command: ~select
Command: ~rlabel
Color the two chains different colors; note that commands can be truncated to unique strings:
Command: color cyan :.a
Command: col yellow :.b
Residues and atoms can also be specified, along with or independent of chain:
Command: col orange :5-9.a,12.a,8.b
Command: col magenta :14-18
Command: disp :leu.b
Command: col green :leu.b@cb
The structure also includes water, which can be shown with:
Command: disp solvent
   -OR- (equivalent)
Command: disp :hoh
Display the full backbone of chain A:
Command: disp :.a@n,ca,c,o
Display all atoms in chain A only:
Command: show :.a
Display all atoms and color them by element:
Command: disp
Command: color byelement
The byelement coloring applies to all elements including carbon (gray), whereas byhet coloring (as in the preset used near the beginning of the tutorial) leaves carbons unchanged. Heteroatom-only coloring is especially useful for keeping multiple structures with different default colors distinguishable.

Models and model status

Generally, each file of coordinates opened in Chimera becomes a model with an associated model ID number. Models are assigned successive numbers starting with 0. The Active models line in the Command Line tool shows which models are activated for motion. The checkbox for 0 (currently the leucine zipper) is activated. Unchecking the box makes it impossible to move model 0. Checking the box again restores the movable state.

Command: close 0
closes the model. Go on to Part 2 below, OR exit from Chimera with the following command:
Command: stop


Working with Commands, Part 2 - Molecular Representations and Surfaces

Setup

UCSF Chimera - DNA/Netropsin

Chimera with Command Line

With Chimera started and the Command Line and Side View opened as described at the beginning of Part 1, open a different structure. Fetch the structure directly from the PDB:

Command: open 1d86
The structure contains the molecule netropsin bound to double-helical DNA.

Use the "all atoms" preset, which will show the DNA as wire and netropsin as spheres:

Command: preset apply int 2
Undisplay the water:
Command: ~disp solvent
Color the different nucleotides different colors, specifying them by residue name:
Command: color blue :da
Command: color magenta :dt
Command: color yellow :dg
Command: color cyan :dc
Rotate, translate, and scale the structure as needed to get a better look (see Using the mouse to review how this is done). Continue moving and scaling the structure as desired throughout the tutorial.

Representations and labels

Next, try some different display styles, or representations. Multiple styles can be combined with each other and with surfaces (more on surfaces below).

Command: ribbon
Command: ribrep edged
Command: ribrep rounded
Command: ~ribbon
Command: represent stick
Command: repr sphere
Command: rep stick :.b
Commands (but not necessarily their keyword arguments) can be truncated to unique strings. For example, the command represent can be shortened to repr or rep but not re (because other commands also start with re), whereas the keywords stick, sphere, etc. cannot be truncated. If the truncation is not unique, one of the corresponding commands will be executed, but it may not be the one intended.

Next, change everything to a ball-and-stick representation:

Command: rep bs
Pick one of the atoms in netropsin. Label the residue,
Command: rlabel picked
showing that it is named NT. The residue label might not be near the selected atom.

Clear the selection (for example, by picking in empty space), then undisplay the residue label:

Command: ~rl

Surfaces

UCSF Chimera - DNA/Netropsin with surface

Chimera showing a transparent surface

Finally, have some fun with molecular surfaces. There are built-in categories within structures such as main and ligand; when nothing is specified, surface shows the surface of main.

Command: surface
Command: ~surf
Command: surf ligand
   -OR- (equivalent)
Command: surf :nt
Surface color can be specified separately from the colors of the underlying atoms:
Command: surfrep mesh
Command: color red,s ligand
Command: surfrep solid
Parts of a surface can be shown:
Command: ~surf
Command: surf :da,dt
Command: ~surf
Command: surf :da.b,dt.b
Sometimes it is helpful to make a solid surface transparent:
Command: surftrans 50
When finished, exit from Chimera:
Command: stop now

Front image how-to (commands)

How to recreate the image at the front of the tutorial using commands (see menu approach):
UCSF Chimera - DNA/Netropsin

DNA helix with bound netropsin

  1. Fetch 1d86:
    • Command: open 1d86
  2. Use the all atoms preset:
    • Command: preset apply int 2
  3. Set the display style to stick:
    • Command: repr stick
  4. Delete the waters:
    • Command: del solvent
  5. Color the residues:
    • Command: color blue :da
    • Command: color cyan :dc
    • Command: color yellow :dg
    • Command: color magenta :dt
    • Command: color white :nt
  6. Show surfaces for the whole model (both ligand and main), make them transparent:
    • Command: surf #0
    • Command: surftrans 50
  7. Color the main (DNA) surface light gray and the ligand (netropsin) surface red:
    • Command: color light gray,s main
    • Command: color red,s ligand
  8. Change the background color to white:
    • Command: set bg_color white
  9. Adjust the view as desired
  10. Save the image:
    • Command: copy png file ~/Desktop/myfile.png