| 1 |
--- |
| 2 |
layout: post |
| 3 |
title: "Coot Cryo-EM Tutorial 1: Basics" |
| 4 |
date: Tue 20 Oct 16:40:39 BST 2020 |
| 5 |
--- |
| 6 |
<div style="text-align: right"> By Ana Casañal & Paul Emsley</div> |
| 7 |
This tutorial is designed for 0.9.1 or later |
| 8 |
|
| 9 |
1: Start |
| 10 |
-------- |
| 11 |
|
| 12 |
- Open a Terminal |
| 13 |
- `cd s2c2_ccpem_workshop` |
| 14 |
- `cd coot_tutorial_1` |
| 15 |
- if you have an NVIDIA graphics card: |
| 16 |
- `export __GL_FSAA_MODE=5` |
| 17 |
- Start Coot: |
| 18 |
- `coot` |
| 19 |
- Keep the terminal window where Coot is running always visible. You will |
| 20 |
see that as many of the algorithms run they will be writing useful information. |
| 21 |
|
| 22 |
### 1.1 Load the Tutorial Data |
| 23 |
|
| 24 |
- **Calculate** → **Load Tutorial Model and Data** |
| 25 |
- Open the **Display Manager** |
| 26 |
- **Delete Map** for the difference map (the one with labels "DELFWT PHDELWT") |
| 27 |
|
| 28 |
### 1.2 Representation |
| 29 |
|
| 30 |
- **Edit** → **Map Parameters...** |
| 31 |
- A Map Radius of 70Å is a lot of map, useful for a cryo-EM reconstruction, |
| 32 |
but for now we are focussing on details: |
| 33 |
- **Map Radius x-ray** → `16` _{sensible for crystallographic map}_ |
| 34 |
- **Edit** → **Map Colour...** |
| 35 |
- Change the map colour _{see that dark pastel colours are the best}_ |
| 36 |
- **Display Manager** → **Properties** → **Solid/Transparent** |
| 37 |
- Tweak the **Opacity %age** |
| 38 |
- Useful? Maybe. (About 30% seems best) |
| 39 |
- Back to **Standard Lines** |
| 40 |
|
| 41 |
Note: if you have a speedy computer, then you can make a copy of the |
| 42 |
map (Calculate → Map Tools → Copy Map Molecule...) and use |
| 43 |
Standard Lines for one and Solid/Transparent for the copied map - that |
| 44 |
looks quite good and can be helpful. It can be laggy though with a big |
| 45 |
radius, and that is the opposite of useful. |
| 46 |
|
| 47 |
Now let's try with a white background: |
| 48 |
- **Edit** → **Background Colour** → **White** |
| 49 |
- _{this is good for making figures, but you will need a very pastel map colour (not so dark)}_ |
| 50 |
- To "highlight" a residue: |
| 51 |
- **Draw** → **Additional Representation...** |
| 52 |
- **Ball & Stick** → **Add Representation** |
| 53 |
- Use the Display Manager's check buttons to undisplay the ligand when done. |
| 54 |
|
| 55 |
|
| 56 |
2: Navigation |
| 57 |
--------------- |
| 58 |
|
| 59 |
_{Note: When I say "G" I mean just "G" not "Shift G" - I refer to the symbol on the keycap, not the letter that appears if one was typing text (and |
| 60 |
this applies to any letter, not just "G")}_ |
| 61 |
|
| 62 |
Moving around the molecule: |
| 63 |
- Middle-mouse click over and atom to centre the view on that atom |
| 64 |
- Left-mouse Double-click to toggle the atom label |
| 65 |
- "Space" is forwards along the chain |
| 66 |
- "Shift Space" is backwards backwards along the chain |
| 67 |
|
| 68 |
To make Coot understand that it is from _this_ residue from which we wish |
| 69 |
to move forwards (or backwards): |
| 70 |
- press the "P" key) |
| 71 |
|
| 72 |
To drag-pan the view: |
| 73 |
- Middle-mouse click and drag _{just like PyMOL}_ |
| 74 |
|
| 75 |
To change the "residue to residue" speed: |
| 76 |
|
| 77 |
- **Edit** → **Preferences...** |
| 78 |
- **Smooth Recentering** → ``10`` steps _{smaller numbers are quicker}_ |
| 79 |
|
| 80 |
If you don't have a fast computer this can help: |
| 81 |
|
| 82 |
- in the left-hand vertical bar, press the "**Maps**" button |
| 83 |
- Select the "**Dragged Map**" tab |
| 84 |
- "Active Map on Dragging?" → "**No**" |
| 85 |
- **OK** |
| 86 |
|
| 87 |
|
| 88 |
You might like the residue reorienting mode: |
| 89 |
- **Calculate** → **Scripting** → **Python** |
| 90 |
- `set_reorienting_next_residue_mode(1)` |
| 91 |
- Now the main-chain orientation of the next residue will rotate to match the current one - that might take a bit of getting used to, so you can turn it off: |
| 92 |
- `set_reorienting_next_residue_mode(0)` |
| 93 |
|
| 94 |
3: Short-cuts and Interface |
| 95 |
--------------------------- |
| 96 |
|
| 97 |
To go to a residue somewhere in your structure: |
| 98 |
|
| 99 |
- "Ctrl G" _{see the little dialog?}_ |
| 100 |
- Type the residue number (and the chain-ID, if needed) |
| 101 |
- Press Enter _{Coot recentres on the specified residue}_ |
| 102 |
- The recentering also works with 3 single-letter-code letters, |
| 103 |
e.g.``HEY`` (it only works for the first one) |
| 104 |
|
| 105 |
You can toggle spin and rock the view with: |
| 106 |
- "I" (as in "indigo"), "Ctrl R" {note that "I" is distinct from "Shift I" - that's something else} |
| 107 |
|
| 108 |
If coot goes unresponsive, doesn't seem to respond to clicks and mouse movement, then |
| 109 |
there's a good chance that you have started a "Ctrl-G" dialog, but not typed "Return". |
| 110 |
If that's the case simply press "Esc" (escape). |
| 111 |
|
| 112 |
### 3.1 Install a Few Buttons |
| 113 |
|
| 114 |
- Right-mouse click on the right-hand side of the horizontal tool-button bar |
| 115 |
- Select "Manage Buttons (add, delete Buttons)" |
| 116 |
- Add "**Sphere Refine +**", "**Tandem Refine**" and "**Backrub Rotamers**" |
| 117 |
- Toggle on the "**Backrub Rotamers**" button _{the button will turn pink}_ |
| 118 |
|
| 119 |
### 3.2 Install Key-bindings |
| 120 |
|
| 121 |
- **Edit** → **Settings** → **Install Template Key-bindings** |
| 122 |
|
| 123 |
To see those key-bindings at a later date: |
| 124 |
- **Edit** → **Settings** → **Key-Bindings** _{see what the keybindings are}_ |
| 125 |
|
| 126 |
### 3.3 Install a Few Extensions |
| 127 |
|
| 128 |
- **File** → **Curlew** |
| 129 |
- From there, select and install "**Black Box Morph and Fit**", "**Chain Refine**", |
| 130 |
"**Morph**" "**Refinement Tools**", "**Dynamic Validation**" |
| 131 |
and "**Expand Map Radius**" |
| 132 |
|
| 133 |
### 3.4 Try it out |
| 134 |
|
| 135 |
Use the cursor to navigate using the map |
| 136 |
|
| 137 |
- "G" _{brings the blob under the cursor to the centre of the screen}_ |
| 138 |
|
| 139 |
To undo last navigation/screen recentre: |
| 140 |
|
| 141 |
- "U" |
| 142 |
|
| 143 |
Also: |
| 144 |
- "+" and "-" Change the contour level |
| 145 |
- "M" and "N" for zoom in and out |
| 146 |
- "D" and "F" for depth of field/clipping planes, increase and decrease |
| 147 |
|
| 148 |
### 3.5 Quick Save-As |
| 149 |
|
| 150 |
The new version of coot is a lot more advanced and a bit more crashy |
| 151 |
than the standard version. It's a good idea to save every now and then |
| 152 |
- making it easier to recover. |
| 153 |
|
| 154 |
- "Ctrl S" _{for quick-save-as}_ |
| 155 |
|
| 156 |
Quick Save as will save all models that have not been saved and will save the session too. |
| 157 |
|
| 158 |
(_This is for your notes, don't act on this:_ if you wish to |
| 159 |
run/execute/evaluate your saved session file then you can do that |
| 160 |
using Calculate → Run Script...) |
| 161 |
|
| 162 |
|
| 163 |
4: Model-Building |
| 164 |
------------------- |
| 165 |
|
| 166 |
### 4.1 Find and Fix a Bad Rotamer |
| 167 |
|
| 168 |
- **Validate** → **Density Fit Analysis...** |
| 169 |
- Click on the bar for residue A89 |
| 170 |
You might need to reset the weight: `2.0` seems like a good number |
| 171 |
|
| 172 |
Fix the Rotamer, First the Traditional usage |
| 173 |
- the vertical toolbar can display labels also (if you like): |
| 174 |
- Click on the green triangle arrow at the bottom of the vertical toolbar: |
| 175 |
- Click **Icons and Text** |
| 176 |
- click on **Auto-Fit Rotamer** in the vertical tool-bar |
| 177 |
|
| 178 |
But let's use the Key-bindings to speeds up, so undo the previous fit: |
| 179 |
- "Ctrl Z" |
| 180 |
- "J" _{auto-fit rotamer}_ |
| 181 |
|
| 182 |
And to tidy up after that: |
| 183 |
- "X" _{does real-space refinement}_ |
| 184 |
|
| 185 |
### 4.2 Let's Find Something Else to Fix |
| 186 |
|
| 187 |
**Validate** → **Ramachandran Plot** |
| 188 |
- click on "**Outliers Only**" |
| 189 |
- click on Residue A41 |
| 190 |
|
| 191 |
Note: Peptide Flags: |
| 192 |
- Green: _cis_-peptide in front of a PRO |
| 193 |
- Yellow: twisted _trans_-peptide |
| 194 |
- Red: _cis_-peptide in front of a non-PRO |
| 195 |
|
| 196 |
When it comes to fixing up model-building/validation problems, often |
| 197 |
times "Neighbour Refine" is the first tool to try. If we try that, we |
| 198 |
see that it doesn't work in this case. We need to look and think. We |
| 199 |
see that the one of the peptides is facing the wrong way and we need |
| 200 |
to flip it: |
| 201 |
|
| 202 |
So, let's fix this with Real Space Refine and flipping: |
| 203 |
- "H" _{does a neighbour Refine}_ |
| 204 |
- "Q" _{does a pep-flip}_ |
| 205 |
- "H" _{tidy up with a RSR}_ |
| 206 |
|
| 207 |
5: Now To the Demo Box! |
| 208 |
---------------------------- |
| 209 |
|
| 210 |
The point of this exercise is for you to see/learn how _Coot_ behaves with lower resolution data. |
| 211 |
|
| 212 |
Use the Display Manager to delete all the Maps and Models. |
| 213 |
|
| 214 |
For these refinements, it might be useful to use the _Coot_ atom interaction dots: |
| 215 |
|
| 216 |
**Refine** → **Contact Dots On** |
| 217 |
|
| 218 |
OK, let's find the script and run it: |
| 219 |
- **Calculate** → **Run Script** → `demo-box-of-buttons-madrid.scm` |
| 220 |
- **Crankshaft Peptide** _{brings the problem to the centre of the screen}_ |
| 221 |
- Take a look at the problem... |
| 222 |
- _{Yikes!}_ |
| 223 |
- **Morph** → **Crankshaft Peptide Optimizer** |
| 224 |
- Does it fit better now? |
| 225 |
- **Sphere Refine** |
| 226 |
- _{things improve, balls are green}_ |
| 227 |
- **OK** |
| 228 |
|
| 229 |
Now let's try something more tricky: |
| 230 |
|
| 231 |
Use the Display Manager (again) to delete all the Maps and Models. |
| 232 |
|
| 233 |
In the Demo Box dialog: |
| 234 |
|
| 235 |
- **Wonky N-terminus** |
| 236 |
- **Rotamer Markup On** |
| 237 |
- Centre on Residue A4 |
| 238 |
- **Tandem Refine** |
| 239 |
- _{Play with it}_ - make the balls go green and remove the clashes |
| 240 |
|
| 241 |
Note: the colour of the balls and the dodecahedra represent the |
| 242 |
probability of the Ramachandran Plot and the Rotamer for each residues |
| 243 |
respectively. Rich green is high probability and rich red is very |
| 244 |
low. Generally speaking you should be aiming for various shades of |
| 245 |
green but have the expectation that you won't always get there |
| 246 |
(especially for rotamers). |
| 247 |
|
| 248 |
Now try that with a blurred map: |
| 249 |
|
| 250 |
- Undo |
| 251 |
- _{the first "Undo" gives us a dialog to select the molecule, we need to "Undo" again |
| 252 |
to actually activate the Undo (this is a bad interface, sorry)}_ |
| 253 |
- **Calculate** → **Map Sharpen and Blur...** |
| 254 |
- Blur to about 60 or 70Ų _{to resemble cryo-EM map}_ |
| 255 |
- **Tandem Refine** again |
| 256 |
|
| 257 |
|
| 258 |
<!--stackedit_data: |
| 259 |
eyJoaXN0b3J5IjpbLTE5OTM1ODM3MzAsNjUyMTIzNzQ5LDEyNj |
| 260 |
A4NTYyNzEsMTUzNjg4Mzg2MCwxMDUyOTg2MDM2LDEyNjg3NjQ4 |
| 261 |
NjgsLTIwMTU2MDM5MDZdfQ== |
| 262 |
--> |