Making a protein ribbon figure¶
This tutorial follows the whole process of building a single figure: display a protein as a cartoon (a so-called ribbon diagram), overlay a ligand as a ballstick, and finish the figure by adjusting colors and outlines. The example is the crystal structure of channelrhodopsin (PDB ID: 3UG9).
This tutorial assumes you have gone through the Quick tour (startup, loading, and basic view operations).
Screenshots planned
Screenshots showing the workflow will be added to this page.
1. Fetch the structure¶
Use File > Get PDB... to fetch the structure from the network.
- Enter
3UG9in PDB Accession Code - Make sure Fetch coord file is checked (leave the format at the default, RCSB (mmCIF))
- When the download finishes, a screen for specifying the Object name and Renderer appears
- Select cartoon from Renderer type, and create it with everything else at the defaults
The protein part is drawn as a cartoon that reflects the secondary structure (→ cartoon).
A preset does it in one step
If you select Default preset 2 under Presets in Renderer type, a Renderer group is created at once, combining a cartoon for the protein, a ballstick for nucleic acids, and a ballstick for everything else (ligands and so on). In this tutorial, Renderers are created one by one to show how it works.
2. Adjust the view¶
Rotate with a left drag on the molecular view and zoom with the wheel until the whole molecule is visible (→ Mouse and trackpad input).
To fit the view to the whole molecule again, select the Object (3UG9) in the Explorer > Scene tree of the left side panel (the scene tree → Side panels), and press the Focus button at the top of the panel.
3. Adjust the appearance of the cartoon¶
When you select the cartoon Renderer in the scene tree, its settings appear in the property inspector on the right. Changes are reflected in the molecular view immediately and can be undone with Cmd+Z / Ctrl+Z.
The width and thickness of helices are adjusted in the Helix section, those of sheets in Sheet, and those of loops in Coil. For example, if the ligand overlaid in a later step is hard to see because it is hidden by a helix, making the Helix width thinner lets you see inside. For the meaning and default of each property, see cartoon.
4. Color each domain differently¶
3UG9 contains a single molecule (chain A). Three regions, the N-terminal domain, the transmembrane part, and the C-terminal domain, are colored separately by residue number range.
- Open the Explorer > Color panel in the left side panel
- Select the cartoon Renderer at the top
- Select Paint as the Coloring type
- Create the following three rows in the table and specify a color of your choice for each
| Region | Selection expression |
|---|---|
| N-terminal domain | A.49:83.* |
| Transmembrane part | A.84:317.* |
| C-terminal domain | A.318:342.* |
Paint is evaluated from the top row down, and the color of the first matching row is used
(→ Coloring). A.49:83.* means "all atoms of residues 49 to 83 in chain A" (→ Selection expression syntax).
Differences from CueMol2
CueMol2 also had a Paint panel, but rows (entries) had to be edited in a separate dialog. In CueMol3, table cells can be edited directly (→ Merged, renamed, and removed features).
For a single chain, Rainbow is also a classic
Rainbow, which changes color like a rainbow from the N terminus to the C terminus, is also a classic way to show the course of the chain. Just select Rainbow as the Coloring type to apply it.
Styles can keep colors consistent across figures
Giving names to color and selection definitions and sharing them lets you make figures with a consistent color scheme across multiple scenes (→ Styles).
5. Show the ligand as a ballstick¶
A cartoon draws only the course of the main chain, so the ligand is not displayed.
Overlay the retinal (residue name RET) of 3UG9 as a ballstick (ball-and-stick model).
- Right-click the Object (3UG9) in the scene tree and select New Renderer
- Select ballstick from Renderer type
- Check Selection and enter
r; RETas the selection expression - Press Create, and the retinal is drawn as a ballstick over the cartoon
Multiple Renderers can be stacked on one Object in this way. What each Renderer displays is narrowed down with a selection expression (r; is a shorthand for selection by residue name →
Selection expression syntax).
If you do not know the residue name, you can also find and select the residue in the tree of the Selection > Molecular structure panel (→ Side panels). If the ligand is too small to see in an overview figure, displaying it as cpk (space-filling model) instead of ballstick is also a classic choice.
6. Finish with a background and outlines¶
In figures for papers, combining a white background with outlines (edge lines) is a classic choice. Edge lines make the boundaries of each element clear even on a white background.
- Set the background to white with Scene > Background > White
- Right-click the cartoon Renderer in the scene tree
- Select Style > Edge line (normal). The edge line type and width are set together
- Repeat the same operation (steps 2-3) for the ballstick Renderer
To make the lines thicker or thinner, select Edge line (thick) / Edge line (thin) from the same menu. To remove them, select No edge line (→ Edge lines).
Check the ligand colors on a white background
On a white background, light-colored atoms may blend into the background and become hard to see.
If this bothers you, darken the carbon color with CPK in the Color panel (for example #404040)
(→ Color syntax).
7. Save the camera and scene¶
Once the view is decided, save it as a camera so that you can return to the same composition later.
- Click View in the activity bar to open the Camera panel
- Press the New camera from view button, and create a camera with a name
Double-clicking a camera row returns to that view at any time (→ Camera).
Finally, save the scene to a .qsc file with File > Save Scene (Cmd+S / Ctrl+S). On saving, the current view is also recorded as a camera named __current and is applied the next time the file is opened. If you enable data embedding in the save options, the molecular data is also included in the .qsc, so the file can be carried around by itself
(→ File menu).
Next steps¶
- Exporting high-resolution images for publication — finish this figure by ray tracing
- Coloring / Selection expression syntax — details of coloring and selection
- Renderer list — learn about other display methods
Verified against: CueMol3 2.3.15.530