| 1 |
--- |
| 2 |
layout: post |
| 3 |
title: "Coot Cryo-EM Tutorial 2022: Part 1" |
| 4 |
date: Sat 27 Aug 2022 10:43:23 BST |
| 5 |
--- |
| 6 |
|
| 7 |
_Coot_ Cryo-EM Tutorial: Part 1: Using An AlphaFold2 Model |
| 8 |
================================================= |
| 9 |
|
| 10 |
The idea is to complete a partial model of the parathyroid+PTH1R recpeptor complex using models provided by AlphaFold2. |
| 11 |
|
| 12 |
This tutorial is designed for 0.9.8.4 or any later version in the 0.9.x series. _Coot_ 1 works differently. |
| 13 |
|
| 14 |
|
| 15 |
1: Start |
| 16 |
-------- |
| 17 |
|
| 18 |
- Open a Terminal |
| 19 |
- `mkdir coot_tutorial_2` |
| 20 |
- `cd coot_tutorial_2` |
| 21 |
- if you have an NVIDIA graphics card: |
| 22 |
* `export __GL_FSAA_MODE=5` |
| 23 |
* (this will make your graphics more smooth on some PCs, nice to have, not important) |
| 24 |
- Start _Coot_: |
| 25 |
- `coot` |
| 26 |
- Keep the terminal window where _Coot_ is running always visible. You will |
| 27 |
see that as many of the algorithms run they will be writing information. |
| 28 |
|
| 29 |
Activate the Cryo-EM Module: |
| 30 |
|
| 31 |
- **Calculate** → **Modules** → **Cryo-EM** |
| 32 |
|
| 33 |
2: Load the Map and Model for this Tutorial |
| 34 |
------------------------------------------ |
| 35 |
|
| 36 |
- **File** → **Open Coordinates** → ``32143-partial-model.pdb`` → **Open** |
| 37 |
- **File** → **Open Map** → ``EMD-32143.map`` → **Open** |
| 38 |
|
| 39 |
Here are the links if you don't have the files: |
| 40 |
|
| 41 |
- https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/files/32143-partial-model.pdb |
| 42 |
- https://ftp.ebi.ac.uk/pub/databases/emdb/structures/EMD-32143/map/emd_32143.map.gz |
| 43 |
|
| 44 |
Now that we have read in the map, let's expand the map radius to cover the molecule: |
| 45 |
- **Edit** → **Map Parameters** → **Map Radius** → `77` → **Apply** |
| 46 |
|
| 47 |
It is frequently the case that to make the map more interpretable we need to unsharpen (_i.e._ blur) and resample it: |
| 48 |
- **Cryo-EM** → **Sharpen/Blur...** → [check **Resample Factor**] → **OK** |
| 49 |
|
| 50 |
If you like, compare and contrast these two maps, you should see that the second map is more easy to interpret. |
| 51 |
|
| 52 |
Now use the Display Manager to Delete the original `EMD-32143.map` map. |
| 53 |
|
| 54 |
If you have a slow computer, dragging the view while displaying EM maps can be annoying. If that is the case for you, |
| 55 |
turn off dynamic recontouring: |
| 56 |
|
| 57 |
- **Edit** → **Preferences** → **Maps** → **Dragged Map** → No → **OK** |
| 58 |
|
| 59 |
Make a copy of the partial model to which we will add various components: |
| 60 |
|
| 61 |
- **Edit** → **Copy Molecule** → **OK** (no need to change the selection) |
| 62 |
|
| 63 |
Let's change the name of the copy: |
| 64 |
|
| 65 |
- **Calculate** → **Scripting** → **Python** |
| 66 |
|
| 67 |
in the "Command:" entry: |
| 68 |
- `set_molecule_name(3, 'working.pdb')` |
| 69 |
- Press "Enter" to execute (you want to be setting the name of the newly created copy of the model (not a map!)) |
| 70 |
|
| 71 |
_Coot_ will echo your command in the green box below. |
| 72 |
|
| 73 |
To see that that worked, look at the molecule name for the model in the Display Manager. |
| 74 |
The model number is 2 if you have followed the instructions exactly. |
| 75 |
|
| 76 |
3: Rigid-Body Fitting |
| 77 |
---------- |
| 78 |
|
| 79 |
To bring the parts of the map that do not yet have an atomic interpretation to our attention, we need |
| 80 |
to mask the map by the current model: |
| 81 |
|
| 82 |
- **Calculate** → **Map Tools** → **Mask Map by Atom Selection** → **Atom Selection** → `//` → **OK** |
| 83 |
- Using the Display Manager, undisplay the starting map (for me, that's map number 1). |
| 84 |
|
| 85 |
Sometimes, Coot will set the contour level of the new (residual) map to zero! So let's scroll the contour level of the new map |
| 86 |
to about 8.0 r.m.s.d. |
| 87 |
|
| 88 |
In the residual map you should now you should see a WD40 domain (beta propeller), an immunoglobulin domain next to it, and a helix |
| 89 |
somewhat separate. |
| 90 |
The domain with the best density is the WD40 domain. Let's start by modelling that with an AlphaFold2 model: |
| 91 |
|
| 92 |
- Using middle-mouse click and drag, bring the centre of the WD40 domain to the centre of the screen |
| 93 |
|
| 94 |
[Note: it is only this part of the tutorial (_i.e._ "where is the middle of the domain?") that needs any skill, |
| 95 |
everything else is just following the script (and thus is scriptable).] |
| 96 |
|
| 97 |
- **File** → **Fetch AlphaFold2 Model using UniProt ID...** → `P54311` → **Get it** |
| 98 |
|
| 99 |
If you do not have AlphaFold2 utilities in your copy of _Coot_ then use the UniProt web site |
| 100 |
to download the AlphaFold2 model for ``P54311`` |
| 101 |
|
| 102 |
- https://www.uniprot.org/ |
| 103 |
|
| 104 |
Check that you have the "Morph" menu item in the main menu bar. If you do not, then you will need to get the "Morph" tools from Curlew |
| 105 |
|
| 106 |
- **File** → **Curlew** |
| 107 |
- Look for the **Morph** tool and click its **Install** button |
| 108 |
|
| 109 |
- Use the combobox in the Display Manager to change the representation style of the AlphaFold2 ("AF-P54311-F1-model_v3.pdb") model |
| 110 |
to "CA + Ligands". |
| 111 |
Doing so makes the overall fit of the model to the map more clear. |
| 112 |
|
| 113 |
- **Morph** → **Jiggle Fit with Fourier Filtering** |
| 114 |
- _{Coot adds the "Morph" menu to the main menu bar}_ |
| 115 |
- Close the Curlew dialog. |
| 116 |
|
| 117 |
[wait a couple of seconds - you can think of this step as local molecular placement. We could have used MOLREP or PHASER |
| 118 |
to achieve the same result with no human intervention, but with considerably more palaver] |
| 119 |
|
| 120 |
- _{The AlphaFold2 model should jump into the density}_ |
| 121 |
|
| 122 |
You can check that this is the correct solution because it finds some density for the N-terminal helical extension (the |
| 123 |
appropriate density level for this helix is at a rather lowver level than the rest of the molecule, so some scrolling will |
| 124 |
be in order). |
| 125 |
|
| 126 |
4: Real Space Refinement Morph Fitting |
| 127 |
-------------------------------------- |
| 128 |
|
| 129 |
RSR morphing in _Coot_ requires that we add some additional restraints: |
| 130 |
|
| 131 |
- **Calculate** → **Modules** → **Refine** |
| 132 |
- _{Coot adds the "Refine" menu to the main menu bar}_ |
| 133 |
- **Calculate** → **Modules** → **Restraints** |
| 134 |
- _{Coot adds the "Restraints" menu to the main menu bar}_ |
| 135 |
- **Restraints** → **Generate All-Molecule Self Restraints 5.0** |
| 136 |
- _{Coot displayes a grey mesh of additional restraints}_ |
| 137 |
- **Restraints** → **Undisplay Extra Restraints** |
| 138 |
- **R/RC** → **Refinement Weight** → **Estimate** |
| 139 |
o "R/RC.." is labelled "Refine/Regularization Control..." if you have labels on your vertical toolbar |
| 140 |
- **More Control** Geman-McClure weight to `0.01` → **OK** |
| 141 |
- **Refine** → **Chain Refine** |
| 142 |
- _{watch and wait}_ |
| 143 |
- **Accept** |
| 144 |
|
| 145 |
Now let's reduce the weight on the GM restraints: |
| 146 |
|
| 147 |
- **More Control** Geman-McClure weight to `0.1` → **OK** |
| 148 |
- **Refine** → **Chain Refine** |
| 149 |
|
| 150 |
This should allow the model to make local/smaller scale adjustments to better fit the map |
| 151 |
|
| 152 |
- _{watch and wait}_ |
| 153 |
- **Accept** (in the refinement dialog) |
| 154 |
|
| 155 |
5: Trim |
| 156 |
------- |
| 157 |
|
| 158 |
See that not all of the model is well-fitting into the reconstruction. We should trim off the bits we don't need. |
| 159 |
|
| 160 |
There are two types of trimming that we can do: |
| 161 |
|
| 162 |
either: |
| 163 |
|
| 164 |
- Look at the model and use the Delete function to remove residues for which there is little to no density |
| 165 |
|
| 166 |
or (using a recent version of _Coot_) |
| 167 |
- use the Python scripting function `alphafold_pLDDT_colours(3)` to colour by pLDDT and remove the parts of the model that you don't want (the pLDDT replaces the B-factors in AlphaFold2 models). Unlike B-factors, the lower the pLDDT, the lower our confidence in the correctness of that part of the model. A typical value to chop is the 70% level. |
| 168 |
|
| 169 |
6: More Refinement |
| 170 |
------------------ |
| 171 |
|
| 172 |
### 6.1 Unclash |
| 173 |
|
| 174 |
Part of the work on the Coot's refinement has been to change the way non-bonded contacts |
| 175 |
are minimized. To reduce/remove atom overlaps (or "Clashes" as Molprobity would |
| 176 |
call them) |
| 177 |
|
| 178 |
- First determine the model number of the domain we are refining - for me it's `4` - |
| 179 |
- and now add hydrogen atoms to that model: |
| 180 |
- **Calculate** → **Modelling** → **Add Hydrogen Atoms** |
| 181 |
|
| 182 |
The Extra Distance Restraints are now out of date, we should delete them: |
| 183 |
|
| 184 |
- **Restraints** → **Delete Extra Restraints** |
| 185 |
- Choose "AF-54311-F1-model_v3.pdb" in the combobox |
| 186 |
- **OK** |
| 187 |
|
| 188 |
Now refine: |
| 189 |
|
| 190 |
- **Refine** → **Chain Refine** |
| 191 |
- _{wait - this takes a lot longer than before - there are lots of interactions now, the atoms should not move |
| 192 |
much if we have done well in the previous fitting and refinement steps}_ |
| 193 |
- **Accept** |
| 194 |
|
| 195 |
_{should we wish to delete the hydrogen atoms (we don't right now), we would use the Python |
| 196 |
scripting function `delete_hydrogens(4)` (4 being the model number)}_ |
| 197 |
|
| 198 |
### 6.2 Ramachandran Plot Outliers |
| 199 |
|
| 200 |
It can be convenient to use Ramachandran Restraints to improve the Ramachandran Plot of the model (not everyone approves of this): |
| 201 |
|
| 202 |
- Click the **R/RC** button |
| 203 |
- Tick **Use Torsion Restraints** |
| 204 |
- Tick **Ramachandran Restraints** |
| 205 |
- **OK** |
| 206 |
- **Validate** → **Ramachandran Plot** [and chose the `atom selection` molecule] |
| 207 |
- **Outliers Only** |
| 208 |
|
| 209 |
Sometimes, the main-chain φ and ψ torsion angles need tweaking: |
| 210 |
|
| 211 |
- Click on a red spot in the Ramachandran Plot |
| 212 |
- _{Coot recentres the view to that residue}_ |
| 213 |
- **Tandem Refine** |
| 214 |
- (if you don't have a **Tandem Refine** button, enable it by clicking right-mouse on the right-hand side |
| 215 |
of the vertical divider in the horizontal toolbar and selecting **Manage Buttons** in the pop-up.) |
| 216 |
- Flipping and back-flipping by clicking on **This Peptide** or the **Next Peptide** often fixes the problem. |
| 217 |
(The greener the Rama-balls, the higher the probability of the φ, ψ pair for that residue) |
| 218 |
- If needed, you can change the Ramachandran restraints weight using the menu items |
| 219 |
in the **Refine** menu or the **R/RC** dialog. (But note however, that the _Coot_ minimizer often gets |
| 220 |
upset when the Ramachandran weights are high.) |
| 221 |
|
| 222 |
7: Merge |
| 223 |
-------- |
| 224 |
|
| 225 |
Merge this molecule into the `working.pdb` molecule: |
| 226 |
|
| 227 |
- **Edit** → **Merge Molecules** |
| 228 |
- Check the check-button for `AF-P54311-F1-model_v3.pdb` |
| 229 |
- Change the molecule selector combobox to `working.pdb` |
| 230 |
- **Merge** |
| 231 |
|
| 232 |
|
| 233 |
8: How did we do? [Optional] |
| 234 |
----------------- |
| 235 |
|
| 236 |
If you wish to continue to Part 2 (as would typically be the case), then now is not the time for this. |
| 237 |
|
| 238 |
If however, you think "That's enough" then you can compare your model with the published model, ``7vvl``. |
| 239 |
|
| 240 |
- Download the model using **File** → **Fetch Model using Accession Code**→ `7vvl` → **OK** |
| 241 |
- Compare and contrast. |
| 242 |
|