Debian Codegraph @

blog/_posts/2020-11-05-nature-images.md

raw
1 ---
2 layout: post
3 title: "Nature Front Cover Image"
4 date: Thu 5 Nov 04:03:11 GMT 2020
5 ---
6
7 My colleagues recently published a paper (Nakane et al. (2020) "Single Particle cryo-EM at atomic resolution") and asked
8 me to make a figure. I did so and it is this week's front cover image.
9
10 [https://www.nature.com/nature/volumes/587/issues/7832](https://www.nature.com/nature/volumes/587/issues/7832)
11
12 This was made with the "gtk3" branch of Coot.
13
14 ![Apoferritin small image]({{"../../../images/apoferritin-s9-hemi-tiny.png"}})
15
16 [High resolution version:](https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/web/screenshots/apoferritin/apoferritin-s9-hemi.png)
17
18 For radial colouring I used something like:
19 {% highlight python %}
20 coot.set_draw_solid_density_surface(imol_map, 1)
21 coot.set_radial_map_colouring_min_radius(imol_map, 20)
22 coot.set_radial_map_colouring_max_radius(imol_map, 80)
23 coot.set_radial_map_colouring_invert(imol_map, 1)
24 coot.set_radial_map_colouring_enabled(imol_map, 1)
25 {% endhighlight %}
26
27
28 Takanori himself made a front cover image too in PyMOL and seeing that I tried to make a version in a similar style using Coot.
29 I didn't copy it exactly, you can see that my version is not volumetric and is smoother and more gem-like.
30
31 ![Apoferritin Hydrogen Atom Density small image]({{"../../../images/apoferritin-takanori-like-tiny.png"}})
32
33 The point of this image is to illustrate that the reconstruction provides good evidence for the position
34 of hydrogen atoms (which are the green blobs, of course).
35
36 [High resolution version:](https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/web/screenshots/takanori-like.png)
37 This is intentionally large, to demonstrate the arbitrary framebuffer scaling.
38
39 You can see Takanori's version on twitter (he is [@biochem\_fan](https://twitter.com/biochem_fan))
40
41 The source code for "gtk3" Coot is updated/released every day or so, but
42 the binaries are not (that's too much of a time sink at the moment).
43
44 Here's the script to make that second image:
45
46 {% highlight python %}
47
48 import coot
49
50 b_factor = 1
51 resample_factor = 1.9
52
53 f1 = 0.0
54 coot.set_background_colour(f1,f1,f1)
55 coot.set_use_perspective_projection(1)
56
57 imol = read_pdb("ref1_n1_hydr_aniso_p-chainAL-HOH302.pdb")
58 coot.set_rotation_centre(65, 26, 32)
59 coot.set_bond_thickness(imol, 4)
60
61 imol_map = coot.handle_read_ccp4_map('apoF/aroundW302-normal.ccp4', 0)
62 imol_diff_map = coot.handle_read_ccp4_map('apoF/aroundW302-diff.ccp4', 0) # naughty
63
64 imol_map = coot.sharpen_blur_map_with_resampling(imol_map, b_factor, resample_factor);
65 imol_diff_map = coot.sharpen_blur_map_with_resampling(imol_diff_map, b_factor, resample_factor);
66
67 coot.set_draw_solid_density_surface(imol_map, 1)
68 coot.set_draw_solid_density_surface(imol_diff_map, 1)
69
70 coot.set_solid_density_surface_opacity(imol_map, 0.5);
71 coot.set_solid_density_surface_opacity(imol_diff_map, 0.5);
72
73 imol_map_copy = coot.copy_molecule(imol_map)
74 imol_diff_map_copy = coot.copy_molecule(imol_diff_map)
75
76 coot.set_map_colour(imol_map, 0.1, 0.1, 0.5)
77 coot.set_map_colour(imol_diff_map, 0.2, 0.4, 0.2)
78 coot.set_map_colour(imol_map_copy, 0.4, 0.4, 0.9)
79 coot.set_map_colour(imol_diff_map_copy, 0.4, 0.7, 0.4)
80
81 coot.set_draw_solid_density_surface(imol_map_copy, 1)
82 coot.set_draw_solid_density_surface(imol_diff_map_copy, 1)
83
84 coot.set_solid_density_surface_opacity(imol_map_copy, 0.15);
85 coot.set_solid_density_surface_opacity(imol_diff_map_copy, 0.15);
86
87 coot.set_map_material_specular(imol_map, 10, 100)
88 coot.set_map_material_specular(imol_diff_map, 10, 100)
89
90 coot.set_contour_level_absolute(imol_map, 0.135)
91 coot.set_contour_level_absolute(imol_map_copy, 0.208)
92 coot.set_contour_level_absolute(imol_diff_map, 0.155)
93 coot.set_contour_level_absolute(imol_diff_map_copy, 0.26)
94
95 {% endhighlight %}
96
97 I applied the blur using the GIMP because Coot's blur filter is not very good at the moment.