Debian Codegraph @

blog/_posts/2022-04-03-release-1.md

raw
1 ---
2 layout: post
3 title: "Coot 1 Released"
4 date: Fri 2 Apr 09:51:52 BST 2022
5 ---
6
7
8 Coot 1
9
10 18 years after the release of Coot 0 it's time that I actually released Coot 1.
11
12 Coot 1 is a major change beyond Coot 0. It has required a lot of writing and rewriting [1]
13 and has been the preponderance of my work since 2017. I have had to learn how to program
14 graphics from scratch using the new style. Much of the GUI internals has been
15 rewritten [2].
16
17 My experience with 0.9 was that I sat on it, bug-fixing for a long time, releasing it
18 too late. I don't want to repeat that mistake. So here we are, there's a lot of good new
19 stuff in Coot 1, but it's not as slick as it might be (or will become).
20
21 - Update graphics to use OpenGL 3.3
22 - Update Python to use version 3.9
23 - Update GTK+ to use version 3
24
25 While many of the features that were available in 0.9.x have been reworked or
26 reimplemented, there are some gaps. Dropped features include Cross-hairs, Stereo, Pisa
27 interface, built-in key-bindings, NCS Ghosts, Edit Phi/Psi, antialiasing, Kleywegt
28 plots, the clipping dialog, Chemical Feature Clustering, Dynamically-Transformed/NCS
29 Maps, LSQ plane distances, dynamic distances, CABLAM-markup, the test suite,
30 user-defined colour schemes, anisotropic atoms, CURLEW, Scheme GUI scripting,
31 Skeletonization and Baton-Building.
32
33 "So, is there anything that _does_ work?" - you might ask...
34
35 The GUI has been updated, I have tried to cut down on the number of dialogs, the Real
36 Space Refinement in particular has seen quite a lot of work. The GUI now uses dark mode
37 if the theme is installed [3]. Several menu items have been relocated. More menus are now
38 alphabetically ordered [4].
39
40 The graphics is, by default, now based on triangles instead of lines which affords a
41 more pleasing representation (density maps can be represented using both modes) and one
42 can have a more expeditious if not pleasant experience with a fast graphics card and a
43 big screen. The various graphics effects and filters can be tailored to some extent by
44 changing the configuration using the GUI or by editing/replacing the shaders.
45 Full-screen mode is now an option [5].
46
47 Overall, the GUI has only had light testing. At the moment, it's probably best to
48 avoid closing dialogs using the window manager. The "OK" button now appears after the
49 "Cancel" button in dialogs.
50
51 Python scripting now has uses a history from previous sessions and the functions need
52 to be used with namespaces/modules (e.g. "coot", or "coot_utils"). Coot (or coot) is
53 now a module that can be imported into python.
54
55 This build compiles with the RDKit and optionally MoleculestoTriangles from Martin Noble.
56
57 The map and the model can now be exported to glTF files (for use in Blender and other
58 3D modelling software).
59
60 The build script for Coot 1, called build-it-3-3 can be found in the "Build from Scratch"
61 menu on the web page (you will need to have already installed cmake and Gtk+). The catch
62 though is that (at least in my hands) Python and friends are frustratingly difficult to
63 install, so it's possible/likely that the build script won't work. Likewise,
64 the script doesn't work for Mac OS either. But it is currently the best method to get
65 binaries so I will support it if you try it [6]. (Homebrew might be another method.)
66
67 Bernhard Lohkamp has been working on the WinCoot version - I will defer WinCoot
68 questions to him.
69
70 Mac Coot is now native (no X11/XQuartz needed). I would be interested to see how a
71 natively-compiled [7] version works on a M1 Max processor [8,9].
72
73 Judging from previous experience, a few rapid iterations of bug-fix releases will be
74 needed. After this, the version numbers will become sane - it's my plan to release a new
75 major version every year or so.
76
77 [coot-1.tar.gz](https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/source/releases/coot-1.tar.gz)
78
79
80 [1] new as in OpenGL 3.3 or later - using shaders - I don't mean Vulkan (that's for the
81 future)
82
83 [2] the patch from the 0.9.x version is 285k lines
84
85 [3] I recommend it
86
87 [4] rather than chronologically
88
89 [5] double-tap Esc key (the first time) to revert to standard display
90
91 [6] I have be working with CCP4 collaborators to use their system to build Coot binaries.
92 Hopefully the binaries will be available stand-alone, as well as integrated into
93 the CCP4 Suite via that method
94
95 [7] so that's a different meaning of "native"
96
97 [8] the little testing I have done on a recent intel MacBook Pro shows unimpressive
98 performance (Iris graphics, retina display)
99
100 [9] Thanks to my Mac-using colleagues for their feedback.