| 1 |
--- |
| 2 |
layout: post |
| 3 |
title: "Coot 1.1" |
| 4 |
date: Sun 5 Nov 06:33:56 GMT 2023 |
| 5 |
--- |
| 6 |
|
| 7 |
18 months after the release of Coot 1 it's time for Coot 1.1. |
| 8 |
|
| 9 |
Coot 1.1 is a major change beyond Coot 1. It has required a lot of |
| 10 |
writing and rewriting and has been the focus of my work since last year. |
| 11 |
|
| 12 |
Technically (but briefly) we have rewritten the GUI again so that it is |
| 13 |
now is based on GTK4 (Coot 1 used GTK3). This has meant a lot of rewiring |
| 14 |
under the hood so that things behave similarly to before [1]. |
| 15 |
|
| 16 |
Many things, that is. Not all things. There are a few important |
| 17 |
differences - they are for the better (although you may not initially |
| 18 |
think so). |
| 19 |
|
| 20 |
- View rotation is on right-mouse (except on Mac). |
| 21 |
- Functions are activate in "Select First" mode (that means bringing |
| 22 |
the atom/residue/chain of interest to the centre of the screen) |
| 23 |
and then choosing the function. This is more consistent with the |
| 24 |
use of hot-key/key-bindings. |
| 25 |
- Widget "focus" is different in GTK4 - I don't yet fully understand it |
| 26 |
at the moment, so, in case Coot "forgets" to revert focus back to the |
| 27 |
main graphics widget, there is a "Grab Focus" button in the horizontal |
| 28 |
toolbar. |
| 29 |
- Many of the menu items have been moved around. Now they are far more |
| 30 |
likely to be where they will finally end up. |
| 31 |
- "Modelling" (as we like to label it in the UK) has its own top-level. |
| 32 |
- "Modules" is now also on the top-level instead of being in the |
| 33 |
"Calculate" menu. |
| 34 |
|
| 35 |
Not everything made it: |
| 36 |
|
| 37 |
- "Symmetry by Molecule" has been removed for the moment. |
| 38 |
- RCrane and the glycan builder have yet to be brought back to working |
| 39 |
order. |
| 40 |
- FLEV, QED breakouts and Chemical Feature Clusters are still missing. |
| 41 |
- The PISA interface is missing. |
| 42 |
|
| 43 |
|
| 44 |
At the moment, the terminal output is a bit verbose with debugging output. |
| 45 |
That will be reduced or removed in due course. |
| 46 |
|
| 47 |
Although I've not tried it, I hope/expect that this Coot will run very |
| 48 |
sweetly on a M2 Pro MacBook Pro... "M2 good, M3 better" - I suppose? |
| 49 |
|
| 50 |
## Thanks: |
| 51 |
|
| 52 |
I am grateful for the contributions from Jakub Smulski for help with |
| 53 |
this over the last year and to Global Phasing for the funding. |
| 54 |
|
| 55 |
Martin Noble has written the ribbon and surface representation code. |
| 56 |
|
| 57 |
## Binaries: |
| 58 |
|
| 59 |
Binaries have always been issue with Coot. The problem is that a |
| 60 |
project of the scale of Coot needs (at least) 3 people [2], |
| 61 |
|
| 62 |
- one for the scientific developments/new algorithms and publications |
| 63 |
|
| 64 |
- one for the development of the GUI (and graphics in the case of Coot) |
| 65 |
- one for the deployment of binaries - it takes time to produce binaries |
| 66 |
for numerous versions of numerous operating systems and the many |
| 67 |
changing/improving dependencies (to me this feels like a constantly |
| 68 |
changing, never complete jigsaw puzzle) |
| 69 |
|
| 70 |
And, although I recognise its importance, I just keep dropping the ball |
| 71 |
for the third one (it has little intrinsic pleasure for me and is |
| 72 |
completely invisible career-wise). |
| 73 |
|
| 74 |
### _Coot_ on "Linux": |
| 75 |
|
| 76 |
There is a build-script, `build-coot-3-3` that works for me, soup to |
| 77 |
nuts on a modern Ubuntu system. Not so much on Fedora though. I will |
| 78 |
try to help if you try this method and things go wrong. Python and |
| 79 |
its add-ons are exquisitely tricky to build and is not well documented, |
| 80 |
however [3]. |
| 81 |
|
| 82 |
[https://raw.githubusercontent.com/pemsley/coot/main/build-it-3-3](https://raw.githubusercontent.com/pemsley/coot/main/build-it-3-3) |
| 83 |
|
| 84 |
### _Coot_ on macOS: |
| 85 |
|
| 86 |
Some Mac users might like to consider using Homebrew. At some stage |
| 87 |
I hope that |
| 88 |
|
| 89 |
$ brew install coot |
| 90 |
|
| 91 |
will (just) work. But that will involve input from by Yoshitaka |
| 92 |
Moriwaki who is looking after _Coot_ in Homebrew (that might take a |
| 93 |
month or two). Right now, Mac-using homebrew-using _Coot_ |
| 94 |
enthusiasts can follow issue 33 on github: |
| 95 |
|
| 96 |
[https://github.com/pemsley/coot/issues/33](https://github.com/pemsley/coot/issues/33) |
| 97 |
|
| 98 |
### _Coot_ on "Windows": |
| 99 |
|
| 100 |
Bernhard Lohkamp is the font of all wisdom when it comes to |
| 101 |
WinCoot. He will let us know his schedule. (Within a month though, |
| 102 |
that is my understanding.) |
| 103 |
|
| 104 |
### _via_ CCP4: |
| 105 |
|
| 106 |
In the coming weeks CCP4 will review Coot 1.1 and decide if it is |
| 107 |
acceptable to be added to the suite. If approved, that is the path |
| 108 |
of least effort for me and many users. |
| 109 |
|
| 110 |
## What about 0.9.x? |
| 111 |
|
| 112 |
I will maintain the back-end/libraries until April 2024, then I will |
| 113 |
reassess. It's just too much trouble to change the GUI though. |
| 114 |
|
| 115 |
## Future: |
| 116 |
|
| 117 |
With such a massive change set [4], there are bound to be bugs, so I imagine |
| 118 |
a flurry of patch releases in the forthcoming weeks. |
| 119 |
|
| 120 |
With this bad boy [5] out the door and with Lucrezia Catapano coming |
| 121 |
back on-line I can spend more time on Moorhen [6] and the Blender |
| 122 |
interface - hooray! |
| 123 |
|
| 124 |
If you've got this far and can get this _Coot_ to run, I have added an Easter |
| 125 |
Egg for today (I'll tell you what it is: `coot.halloween()`). |
| 126 |
|
| 127 |
## |
| 128 |
|
| 129 |
[1] To give you an idea of the scope of this work (and the speed at which the |
| 130 |
interface for Coot was implemented) look how long it takes to rewrite a |
| 131 |
GUI: |
| 132 |
[https://fosspost.org/gtk-4-0-released/](https://fosspost.org/gtk-4-0-released/) |
| 133 |
|
| 134 |
[2] According to a Basic COCOMO model I found, a project of this size is the |
| 135 |
output that can be expected from a team of 300 working for 56 months (make |
| 136 |
of that what you will) |
| 137 |
|
| 138 |
[3] [https://www.bassi.io/articles/2022/12/02/on-pygobject](https://www.bassi.io/articles/2022/12/02/on-pygobject) |
| 139 |
|
| 140 |
[4] The patch to go from 0.9.8.92 to 1.1 is 850k lines |
| 141 |
|
| 142 |
[5] meanings 3 and 4 in the wiktionary |
| 143 |
|
| 144 |
[6] [moorhen.org](moorhen.org) |