File: dnotes

package info (click to toggle)
coot 1.1.18%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 219,964 kB
  • sloc: cpp: 495,934; python: 35,043; ansic: 26,143; lisp: 22,768; sh: 13,186; makefile: 2,746; awk: 441; xml: 245; csh: 14
file content (11934 lines) | stat: -rw-r--r-- 324,151 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934

	------
Wed May  9 13:54:04 BST 2007

   Dirk Kostewa:
   overblend for electron density?

-----

trying to run render without render in path:

rendering ray trace number: 0
rendering ray trace number: 1
rendering ray trace number: 2
rendering ray trace number: 3
done raytrace.
calling render...
calling display...
((safe_scheme_command) Error in proc: key:  system-error  args:  (execlp ~A (No such file or directory) (..... scm_catch done
scm_catch returns: 20152

2)))
..... scm_catch done
scm_catch returns: #<unspecified>

Xlib: unexpected async reply (sequence 0xb9f30)!
Xlib: unexpected async reply (sequence 0xb9f4a)!
Xlib: unexpected async reply (sequence 0xb9f4b)!
Xlib: unexpected async reply (sequence 0xba0b6)!
Xlib: unexpected async reply (sequence 0xba0f1)!
Xlib: unexpected async reply (sequence 0xba0f3)!
lt-coot-real: Fatal IO error 14 (Bad address) on X server :0.0.

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
ObjectCache: Leaked 0002 refs to <P 31 2" Nuvw = ( 240, 240, 132)>
ObjectCache: Leaked 0002 refs to <P 31 2">
47.510u 14.504s 12:56.93 7.9%   0+0k 0+0io 160pf+0w


interesting!


-----
Wed May 16 09:27:21 BST 2007

	User pickable atoms:

	a function that registers interest in n atom selections and a
	function to call when it has them.  We test in
	graphics-info-defines whether such a function exists and has
	all the number of picks that it needs, if it does and it
	doesn't then collect them and pass them on when it has all
	it needs.  When the function has been called delete it from
	the queue/vector of such functions (umm, better do the
	deletion just before the function call so that if there is an
	error in the scm function we don't jump away from the function
	deletion part).

----
Thu May 17 12:44:56 BST 2007

   INFO::
	use gtk_widget_get_name(widget) to find out about what the
	name of the widget is.


-----
Fri Jun 15 13:09:53 BST 2007

   rajiv.chopra@novartis.com:

   In real space refinement, don't move the atoms with zero occ.

------

  INFO::

  old guile convert to string:
    std::string name_target = SCM_STRING_CHARS(name_target_scm);
  new guile convert to string:
    std::string name_target = scm_to_locale_string(name_target_scm);

   all guile convert from string:
      SCM mess = scm_makfrom0str(a_string.c_str());


------
Fri Jul  6 13:24:43 BST 2007

  compiling guile-1.8.1

prfx=$HOME/testg

./configure --prefix=$prfx LDFLAGS=-L$prfx/lib CFLAGS="-g -I$prfx/include"

 ./configure --prefix=/lmb/wear/emsley/testg LDFLAGS=-L/lmb/wear/emsley/testg/lib CFLAGS='-O -I/lmb/wear/emsley/testg/include'

i.e. NO DEBUGGING!


cycle ~/compile/g/guile-gtk-2.0> ./configure --prefix=/lmb/wear/emsley/guile-1.8.1  --without-gtkgl

make
make install

-
in guile-gtk-2.0's gdk-glue.c add

#define PANGO_PIXELS_CEIL(d) (((int)(d) + 1023) >> 10)
#define PANGO_PIXELS_FLOOR(d) (((int)(d)) >> 10)

-
also need goosh:
./configure --prefix=/lmb/wear/emsley/guile-1.8.1
make install
and guile-gui:
 ./configure --prefix=/lmb/wear/emsley/guile-1.8.1
make install
and net-http:
 ./configure --prefix=/lmb/wear/emsley/guile-1.8.1
make install


----
Mon Jul 16 13:09:11 BST 2007

  if the first and last non-blank characters read from the scripting
  window are not ( and ) then add them. So

  read-pdb "test.pdb"

  will "work".

-----

Here's a description of the PIR format:

http://www.cmbi.kun.nl/bioinf/tools/crab_pir.html

----
Tue Jul 17 13:11:20 BST 2007

	Files that end in .fcf or .cif should not *first* be read as
	MTZ files.  Do the sensible thing first.

----
Mon Jul 16 23:18:03 BST 2007

	in creating a GTK2 gl context:


> WARNING:: Can't enable stereo visual - falling back
> INFO:: Hardware stereo widget opened successfully
> INFO:: switch to hardware_stereo_mode succeeded

So in gl_extras():

We need a "stereo_successful" flag set before we get to saying
"Hardware stereo widget opened successfully"


-----
Wed Jul 18 09:09:16 BST 2007

	Hydrogens naming problem with shelx.

	Shelx calls hydrogens attached to ILE CG2 HG2A HG2B HG2C,
	whereas refmac names are HG21 HG22 HG33.

	There are lots of other problems like this.


----
Sat Jul 21 10:25:29 MDT 2007

	problem with libcootaneer lib dependency when building in gtk1
	version.

* Don't see it any more.

-----
Wed Aug  1 19:48:19 BST 2007

	How about an Env Var to specify where to read and write
	startup files (state, history etc) so that you can run coot
	cleanly from the Desktop.

     Good idea.  Bit tedious though?

-----
Wed Aug  1 22:55:35 BST 2007

     Add Chiral Volume Outliers to  some validation graph.  Geometry?

     ie. make the blocks big and blue (c.f. missing atoms)

     Priority Low, but cute and maybe useful.

-----
Thu Aug  2 03:20:36 BST 2007

   add a test for overlap-ligands - quite tricky.

----
Thu Aug  2 14:43:06 BST 2007

	unexpanded symmetry labels have 0-indexed symm labels.  It
	should be 1-indexed - Steven Sheriff

-----
Thu Aug  2 14:47:07 BST 2007

   How about some flexibility in file name output?

     How difficult is it to create (or, maybe, How would one go about
     creating a) naming system for output PDB files that is consonant
     with my usage?  Currently COOT gives a default of
     input_file_name-coot-0.pdb.  I typically name my files
     model_0i.pdb for the file out of refinement (before ligand, hence
     the zero -- yes I do it too ;-) ) and my first output file as
     model_0o1.pdb.  If I do some "editing" outside of COOT, I might
     then create model_0i2.pdb and if I make some changes inside COOT,
     the output file would be model_0o2.pdb, etc.  After the next
     cycle of refinement, I would come in with model_1i.pdb, etc.

	-- Steven Sheriff



-----
Sat Aug  4 14:36:06 BST 2007

	how about adding assign-pir-sequence to the state file?
	Problem is we don't store raw input, just the decoded sequence.
	We need both.
	something should be std::pair<std::string, std::string (orig, seq)
	not just std::string

        Hmm... perhaps a simple class then, because we need a flag to
        say that this molecule has a sequence assigned to it.


------
Fri Aug 10 12:56:36 BST 2007

   add a side chain flip test.

   check that the OE1 was where the OE2 was
   and vica versa.

   also test torsions from running correct-nomenclature


-----
Mon Aug 13 15:43:54 BST 2007

	Add a test

	Use multiple wiggle ligands. Delete stuff and do it again.

-----
Mon Aug 13 16:52:03 BST 2007

	fit SAH into 2an3.

	It's really slow to converge.  Why?


-------
Mon Aug 20 18:08:16 BST 2007

	Add lots of tests for the space groups of shelx .res files
	using show-spacegroup


----
Sun Aug  5 00:29:27 BST 2007

   Revisit the --as-needed patch from Donnie Berkholz

   Try to apply (bits of) it and see what happens - problems on
   feisty, I guess

---
Sun Aug  5 00:30:26 BST 2007

   The X11 libs dependencies need to be revisited - I had to install
   some stuff to compile - they should be tested for in configure.

   Try with a gutsy pre-release?

----
Sun Aug  5 00:32:03 BST 2007

   The Coot FAQ should be written as a texi (article?) document, so
   that it has an index and toc.

----
Sat Aug 11 13:15:35 BST 2007

   Icons
   http://jimmac.musichall.cz/icons.php

   Think about icons for info dialog and the like.

----
Sat Aug 11 15:51:42 BST 2007

    Open Clip Art Notes:

    world in connect-to-world is "cartoon globe" by lunanaut

    crispy computer mouse for scroll wheel.

-----

http://www.itbusiness.ca/it/client/en/home/News.asp?id=44529&cid=11

The Novell SUSE Linux subscription model is considerably less painful,
Chevalier argues, because it doesn't hit the capital expense budget
and it can often be considered an operational expense, which is better
from a tax perspective.


--------

Tue Aug 21 14:26:00 BST 2007

   Thoughts for a tutorial or some such.

   "Assessing structure quality with Coot"
    (in response to EJD's comments on CCP4bb 2hr0)

    Structure with 0 occupancy

	What is a good (bad) Ramachandran?

            What is a bad Kleywegt plot?

	Good (bad) geometry graph.

	Chiral volume outliers

	Cis-peptides, planar peptide restraints

	Good density fit graph (and how to scale it)

	Nomenclature errors in rotamers - and how to fix them
	   Missing atoms

	How to use with Molprobity (web output and local exes)

	B-factor variance.  What's good and bad.

   Priority: Low


-----
Tue Aug 21 14:44:14 BST 2007

	Note to self:

	B factor average, variance vs resolution for each residue type.

	Probably best to have a shell script to provide the pdb files

	c++ program reads pdbs and does b-factor analysis,

            on completion appends to files "ARG.tab" "ASP.tab" etc
            with average and variance for each residue of that type in
            that pdb file.  Also the resolution.

	    only do 1 chain of each pdb file.

            use Coot libs - make it a Coot program.


    Priority: Low


-------
Tue Aug 21 16:50:52 BST 2007

  ionic waters:

  http://biochem.wustl.edu/~enrico/

  e.g. WASP
  Reference: Nayal, M., & Di Cera, E. (1996) J. Mol. Biol. 256: 228-234

  Nayal M and Di Cera E. Valence screening of water in protein
  crystals reveals potential Na+ binding sites. J Mol Biol 256:
  228–234, 1996

  Looks straightforward.  Except symmetry must be used to find neighbours.

  GSoC project?


-----
Tue Aug 21 18:15:47 BST 2007

	blender's iksolver for inverse kinemetic (loop fitting).
	Source code not obviously in 2.44.

        But see this
   http://www.koders.com/cpp/fid45A6AC666E04B001C8A397CC9CEA3A46D801EB30.aspx?s=cdef%3aparser
        Hmm.


------
Fri Aug 24 15:40:17 BST 2007

electron_density_gradient_at_point() in simple-restraint.cc used
template type double.  Would things be faster with a float?

clipper::Grad_orth<double>
coot::restraints_container_t::electron_density_gradient_at_point(const clipper::Coord_orth &ao);


----
Thu Aug 30 10:15:37 BST 2007

  From reading JED mail

  Do some speed tests on regularizing with and without peptide plane restraints.


  Interface to change the weight of the peptide plane restraint

  Interface to turn on peptide plane restraints for refinement (or regularizing) only?

  Allow the display of anisotropic atoms per molecule - from the
  scripting layer at least.


-----
Fri Aug 31 16:28:42 BST 2007

	Do a NCS ghosts for a blue map,

	Do it again for the difference map.

	Does it recalculate the NCS operators?

	   It shouldn't.


------
Tue Aug 28 14:31:25 BST 2007

   And if the display manager would automatically resize itself when
   more objects are loaded, would be great.

  Marko Hyvönen
  Department of Biochemistry
  University of Cambridge

   Priority: Low, Difficulty: Medium.
   A thing for GSoC.


-----
Tue Aug 28 14:48:50 BST 2007

      http://blog.mithis.net/
      lython and SchemePy

------
From: 	Matthew Wilce <matthew.wilce@med.monash.edu.au>
To: 	emsley@ysbl.york.ac.uk
Subject: 	Coot and polynucleotide
Date: 	Tue, 17 May 2005 10:39:44 +1000  (01:39 BST)

    Functionality for both RNA and DNA

    the ability to change RNA into DNA and visa versa

    mutation of bases

    rotamer flipping (manual and automated)

    fragment library for each nucleotide

    a version of baton would be useful - either base to base and/or
    phosphate to phosphate

      o is that still needed?

    insertion of nucleotides

    addition of a nucleotide at 3' or 5' end of polynucleotide

      o Done?

-----

   Venki Ramakrishnan:

	"CA mode" for nucleic acids should draw a P and C1' trace.

-----

   Write a FAQ for sucking of metal ligands into metal density.

-----

   make dist runs a scsh script.  configure should check for scsh?
   (not easy to convert to guile)


-----
Sun Sep 16 00:33:44 BST 2007

	Suggestion on the coot list in the last week:

    o Better algorithm to find picked atoms (prefer atoms at the front).

* Done.

    o "Reverse" chi angle fragment tail/dog

* Done.

    o Cache libcheck results for faster "Get Monomer"

* Done.

-----
Sun Sep 16 01:25:09 BST 2007


texi2html ../../coot/doc/user-manual.texi
*** Undefined node of menu_entry (Dictionary): * Dictionary::
*** Undefined node of menu_entry (Planar Peptide Restraints): * Planar Peptide Restraints::
*** Undefined node of menu_entry (The <TT>UNK</TT> residue type): * The @t{UNK} residue type::

	Priority: Medium: Difficulty: Low

----
Sun Sep 16 12:31:03 BST 2007

	refine-zone, regularize-zone, auto-refine-zone all ignore the
	alt-conf specifier.  They should not.

	Priority: Medium.

------
Wed Sep 19 17:20:41 BST 2007

	doing a flexible ligand fit in a ligands without flexible
	bonds - e.g. SO4 gives non-optimal message ("Did you forget to
	read the dictionary?").

-----
Tue Sep 18 12:01:13 BST 2007

   Interesting/useful?
	OpenBabel:
	http://openbabel.sourceforge.net/wiki/Main_Page

        pygtk-openbabel - A PyGTK frontend to OpenBabel A PyGTK
        frontend to OpenBabel that utilizes the power of
        python. Included is a graphical frontend to PubChem

	PubChem:
        http://pubchem.ncbi.nlm.nih.gov/


	Priority: Medium: Difficulty: Low

----
Tue Sep 18 16:12:29 BST 2007

   Mischa

	if pick centering on an atom fails, can you fall back to test
	against having clicked on the intermediate atoms?

	   Indeed.  Why not.


-----
Fri Sep 21 18:17:52 BST 2007


	When there is a sytax error in ~/.coot, is it obvious what has
	happened?


-----

        RSR when map is ambiguous cancels rsr.  It should not.

----
Wed Sep 26 13:12:24 BST 2007


   Regularize residue A 11, 2izq

   Crashes in recently touched (well, the replace type has been
   changed) replace_coords()

(gdb) where
#0  molecule_class_info_t::replace_coords (this=0x87bfc7c, asc=@0x866b518, change_altconf_occs_flag=false)
    at ../../coot/src/molecule-class-info.cc:4564
#1  0x080c4a9f in graphics_info_t::accept_moving_atoms (this=0xbf8b8463) at ../../coot/src/graphics-info.cc:1364
#2  0x0815d612 in accept_regularizement () at ../../coot/src/c-interface-build.cc:5093
#3  0x08218ae2 in on_accept_reject_refinement_accept_button_clicked (button=0x90a88e8, user_data=0x0)
    at ../../coot/src/callbacks.c:2283
#4  0xb6e009d9 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#5  0xb6df362b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#6  0xb6e04103 in ?? () from /usr/lib/libgobject-2.0.so.0


----
Wed Sep 26 14:52:14 BST 2007

	read junk*.pdb in order (starting at junk.pdb) and it crashes on junk2.

	note that model 0 is not a valid model.



-------


	A168 on 1A0F fails to properly find the right rotamer, even
	though we select the rotamer by hand and do rigid body refine
	it works fine.

	Bug?


-------

	Residue 13 of 1UBQ fails to Rigid body refine after chi1 was
        rotated by 180.

	Bug?

        In fact, it looks like nothing with Rigid body refine.  Hmmm!

------

    What about interactions with PISA?

* Scheduled for 0.6.

------



 Peter's talk:

   need to set the ccp4 project from the start script.

- Done.  Needs testing.  Also, the correct ccp4 project should
  selected on creation of file-selection.  This may be a bit harder.

-----

    Frank:

    add test peptide flips cf a database

    This is quite important.

-----
Sat Sep 29 20:04:56 BST 2007

CKChuang@LBL.GOV

   Also, when I reverse direction of a chain, if I use Reverse
   Direction followed by Ca Zone-> Mainchain, a few CAs will remain
   without a chain.  If I delete the preexisting residues and try to
   Rotate/Translate them myself they are automatically reversed back
   to their original direction once I try to Regularize Zone.  Is
   there a reason for this or a way to overwrite or go around this?


----
Thu Sep 27 09:27:26 BST 2007

	Ramachandran plot from atom selection (no need for a gui for
	this just yet).

---
Thu Sep 27 09:30:20 BST 2007

	John Berrisford complains about OXT refinement.

	Make sure Coot properly refines OXT at some stage (by
	correctly handling modifications).

-----
Tue Oct  2 09:05:25 BST 2007

   A must-do for 1.0:

        *****

	Put backrub into minimizer for auto-fit-rotamer - as an
	alternative.

        *****
----
Wed Oct  3 12:23:09 BST 2007


   NCS Ligands

   Make the NCS ghost matrices available at the scripting layer

	(let ((rtop ((get-ncs-matrix imol "A" "B"))))

	   ;; now apply rtop to the ligand "C" in the "A" pocket to
	   ;; make "D" in the "B" pocket

----
Wed Oct  3 18:59:34 BST 2007

   write a triv app with latest glade with icons and libglade

----
Sat Oct  6 08:04:36 BST 2007


pkg-config libglade-2.0 --cflags

-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12

pkg-config libglade-2.0 --libs

-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0


----
Tue Oct  9 22:19:02 BST 2007

    GSOC project?
	nice graphic output of SSM results.
hari jayaram <harijay@gmail.com>


-----
Thu Oct 11 23:20:47 BST 2007

	convert axes.scm to axes.py for Paolo.


----
Mon Oct 29 09:36:34 GMT 2007

   Clemens:

   Add function that does
   copy_residue_range_from_ncs_master_to_others(int imol, const char *master_chain_id,
					  int residue_range_start, int residue_range_end)
   but to a specific chain only:

   i.e.:

   copy_residue_range_from_ncs_master_to_chain(int imol, const char *target_chain_id,
					  int residue_range_start, int residue_range_end)

   which looks up the master_chain_id from the ghost of the target_chain_id


------

   I would like to report a bug in the 0.4 pre-release.  In the clash
   panel generated by probe, the vertical bar doesn't work anymore.
   Could you fix it?n

Jianghai


------


I don't need anything, but it said I should send this to you.

Thanks,
Adam Okerlund

----------------------------------------------

Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/coot/bin/coot-real'.
Program terminated with signal 11, Segmentation fault.
#0  0x081acbad in lookup_widget (widget=0x33203a66,
    widget_name=0x84a151c "geometry_distance_togglebutton") at support.c:33
        in support.c
#0  0x081acbad in lookup_widget (widget=0x33203a66,
    widget_name=0x84a151c "geometry_distance_togglebutton") at support.c:33
#1  0x080d31ec in graphics_info_t::unset_geometry_dialog_distance_togglebutton
    (this=0xffc0e7cb) at graphics-info.cc:5328
#2  0x0811fdda in graphics_info_t::check_if_in_geometry_range_defines (
    this=0xffc0e7cb, event=0x8662118) at graphics-info-defines.cc:393
#3  0x081232c6 in graphics_info_t::check_if_in_range_defines (this=0xffc0e7cb,
    event=0x8662118, state=@0xffc0e7bc) at graphics-info-defines.cc:201
#4  0x081aab02 in glarea_button_press (widget=0xab91428, event=0x8662118)
    at globjects.cc:3344
#5  0x55f24f64 in gtk_marshal_BOOL__POINTER (object=0xab91428,
    func=0x81aa812 ,
    func_data=0x0, args=0xffc0e938) at gtkmarshal.c:28
#6  0x55f594d2 in gtk_handlers_run (handlers=0xc4cc200, signal=0xffc0e8b8,
    object=0xab91428, params=0xffc0e938, after=0) at gtksignal.c:1917
#7  0x55f5bba3 in gtk_signal_real_emit (object=) at gtksignal.c:1477
#8  0x55f5c1e8 in gtk_signal_emit (object=) at gtksignal.c:552
#9  0x55f975a1 in gtk_widget_event (widget=0xab91428, event=0x8662118)
    at gtkwidget.c:2864
#10 0x55f230b8 in gtk_propagate_event (widget=0xab91428, event=0x8662118)
    at gtkmain.c:1378
#11 0x55f241ee in gtk_main_do_event (event=0x8662118) at gtkmain.c:803
#12 0x55fdf71b in gdk_event_dispatch (source_data=0x0,
    current_time=0xffc0ed50, user_data=0x0) at gdkevents.c:2139
#13 0x56012bc9 in g_main_dispatch (dispatch_time=0xffc0ed50) at gmain.c:656
#14 0x5601345d in g_main_iterate (block=) at gmain.c:877
#15 0x5601365f in g_main_run (loop=0x8a054e0) at gmain.c:935
#16 0x55f2463f in gtk_main () at gtkmain.c:524
#17 0x080d233b in c_inner_main (closure=0x0, argc=1, argv=0xffc0f144)
    at c-inner-main.c:217
#18 0x556258c0 in invoke_main_func () from /usr/local/coot/lib/libguile.so.12
#19 0x5562586d in scm_boot_guile_1 () from /usr/local/coot/lib/libguile.so.12
#20 0x5562556c in scm_boot_guile () from /usr/local/coot/lib/libguile.so.12
#21 0x080d2018 in c_wrapper_scm_boot_guile (argc=1, argv=0xffc0f144)
    at c-inner-main.c:237
#22 0x080cd46e in main (argc=) at main.cc:402
Current language:  auto; currently c


-----
Fri Oct 19 21:46:34 BST 2007

   Message from EJD.

   Check that the skeleton colour works correctly.

-----
Thu Oct 25 11:09:07 EDT 2007

reading in a minimal state file:

Bad view quaternion

----
Thu Oct 25 18:23:31 BST 2007

    Can we fit the helix at residue 122 in the CSHL Au Lysozyme
    dataset?

-----
Tue Oct 30 15:24:25 GMT 2007

crash from EJD, not much to report:


#4  0x089626e6 in gtk_canvas_re_unrealize (item=0x1b5ad798) at gtk-canvas-rect-ellipse.c:598
#5  0x0895a74d in gtk_canvas_group_unrealize (item=0x1a68e428) at gtk-canvas.c:1796
#6  0x0895bb39 in gtk_canvas_unrealize (widget=0x1b330028) at gtk-canvas.c:2568

    validation graph open, then molecule closed?

    validation graph open, and graph is updated?  residue deleted?
    residue generated (add terminal residue) then graph is asked to be
    updated?


----
Tue Oct 30 15:49:12 GMT 2007

   On starting up coot, if imol_refinement_map() is undefined, then
   set insensitive the map fitting functions (e.g. refine zone,
   autofit rotamer).

   When it is set, we can activate those buttons (and menu items?).


----
Tue Oct 30 15:52:39 GMT 2007

   CSHL CRASH:

   on calculating a skeleton after deleting a map (and skeleton) and
   reading in a new map.


----
Tue Oct 30 15:53:49 GMT 2007

    Remove probability limit when using Richardson Rotamers.

* Done.

----
Tue Oct 30 15:54:27 GMT 2007

    Editing chi angles on a reduced pdb file failed to rotate the
    hydrogens (maybe a dictionary/version 3.0 problem).

    Also (set-find-hydrogen-torsions 1) fails.  Same cause?

---
Mon Nov  5 11:49:30 GMT 2007

  Maria Solà Vilarrubias:

   I want to display ILE, LEU, VAL residues with just sidechains (in a
   different colour), the rest with Mainchain CAs.


----
Tue Nov 13 23:30:57 GMT 2007

   what is read_number in cif reading for.

   try to get rid of it.

   examine read_number_in usage here:

  coot::protein_geometry::init_refmac_mon_lib(std::string ciffilename, int read_number_in)


----
Tue Nov 13 23:42:21 GMT 2007

	coot --recover

    reads history file (history file needs to be written when commands
    executed - not at exit time) to get maps.

    reads most recent saved files in coot-backup.

    recover those written < 5 mins ago (or some such).


----
Tue Nov 13 23:30:57 GMT 2007

   Gregory C. Benison NMR program:
   http://oregonstate.edu/~benisong/software/burrow-owl/
   now at
   http://sourceforge.net/projects/burrow-owl

-----
Fri Nov 16 20:23:19 GMT 2007

   How do I change my residue to have insertion code and the following
   residues to have -1 offset and it all to be joined up?

   e.g.:
   (change-residue-number 0 "C" 86 "" 85 "A")
   Which is fine, execpt I can't then move C/85A to the A chain.


----
Sat Nov 17 12:14:46 GMT 2007

	phosphorylate-active-residue:

	what about phospholysine?

----
Sun Nov 18 16:47:57 GMT 2007

	update Map Transformation example in user-manual


-----
Thu Nov 22 16:28:41 GMT 2007

EJD crash:

#0  0x0844eb3a in molecule_class_info_t::intelligent_this_residue_mmdb_atom ()
#1  0x0834be67 in graphics_info_t::on_go_to_atom_residue_tree_selection_changed_gtk1 ()
#2  0x0837f6c8 in on_go_to_atom_atom_list_selection_changed_gtk1 ()
#3  0x089d2c26 in gtk_marshal_NONE__POINTER_INT_INT ()
#4  0x08a0605b in gtk_handlers_run ()
#5  0x08a0520b in gtk_signal_real_emit ()
#6  0x08a02b07 in gtk_signal_emit ()
#7  0x089d2a80 in gtk_marshal_NONE ()
#8  0x08a05118 in gtk_signal_real_emit ()
#9  0x08a02b07 in gtk_signal_emit ()
#10 0x08a2dba0 in gtk_tree_select_item ()
#11 0x08a2c571 in gtk_tree_button_release ()
#12 0x0c520378 in ?? ()
#13 0x00000000 in ?? ()



------
texi2html ../../coot/doc/user-manual.texi
*** Undefined node of menu_entry (Dictionary): * Dictionary::
*** Undefined node of menu_entry (Planar Peptide Restraints): * Planar Peptide Restraints::
*** Undefined node of menu_entry (The <TT>UNK</TT> residue type): * The @t{UNK} residue type::
mkdir -p chapters ; \
cd chapters ; \
splitstr='-split_chapter' ; \
texi2html --version ; \
if [ $? = 0 ] ; then splitstr='-split=chapter' ; fi ; \
texi2html $splitstr ../../../coot/doc/user-manual.texi ; \
cd ..
1.64
*** Undefined node of menu_entry (Dictionary): * Dictionary::
*** Undefined node of menu_entry (Planar Peptide Restraints): * Planar Peptide Restraints::
*** Undefined node of menu_entry (The <TT>UNK</TT> residue type): * The @t{UNK} residue type::


----
Wed Dec  5 14:13:31 GMT 2007

    Plans for multi-stick representations

    class line_representation {
      representation_type { atom_bond, CA, CA+ligand etc }
      bonds_container
      displayed_flag
      bond_thickness
      colour_rotation
      atom_selection_description { residue_type, residue_range_type, chain_type
	chain_id
        resno_1
        resno_2;
	insode_1;
	insode_2;
      }
    };

    We shall use a std::vector<line_representation> line_rep_vec;
    New items are pushed back.  You can't delete an item from this
    vector, mearly not display it (the handles are passed back - and
    we don't want them to go out of date).

    Particular alt confs cannot be selected for.

    Questions:  How shall we create new representations for this molecule?

    // return
    int add_representation imol representation-spec

    // used by GUI
    undisplay_representation imol respresentation-number

    undisplay_representation imol residue_spec
    which needs to be unambiguated. Test in this order:

     o Was there a line_representation that has that residue_spec?
     o Was there a residue_range line_representation that encompassed that residue_spec?
     o Was that residue in a chain that has a line_representation?


----

	Tested/Not Tested:

   green_box on rama plot, on edit backbone angles crashed because
   canvas items were not being generated properly (not assigned to a
   canvas item before being pushed back into vector).

-----
Wed Dec 12 13:20:33 GMT 2007

   Make nice images for nucleic acid base chooser.

   The buttons don't need to be small.


-----
Thu Dec 13 17:48:24 GMT 2007

   write a test for fix-nomenclature-errors

-----
Sat Dec 15 12:18:46 GMT 2007

   1OHY is good for displaying NCS skipping NCS jumping

   as is  2x2h

   79, 137

   as is 3vhn 3fold with some sugar

-----
Sat Dec 15 13:12:08 GMT 2007

	Randy Read:

    (copy-residue-range-from-ncs-master-to-others 0 "A" 1 5) needs to
    work if residues 1 to 5 are not in the B and C chains (because
    I've just built them in the A chain).

* Done.

----
Sat Dec 15 13:13:45 GMT 2007

    Randy Read:

	I want a tool for applying symmetry operator to a fragment

    How about this then:

    Other Modelling Tools -> Apply Symmetry to fragment
    [click on a atom]

    Coot finds fragment by selecting residues that have contiguous residue
    numbering (does minimol do that?)

    -> Intermediate atoms

    Now pop up a gui

    A box of symmetry ops:
    X, Y, Z,
    -X+1/2, -Y, Z+1/2
    (etc)

       X:  - +
       Y:  - +
       Z:  - +

    + "I'm feeling lucky", which should try to find the best packing
      itself (somehow)

----
Mon Dec 17 12:50:36 GMT 2007

   save_stat_file_name() returns a char * - yeuch.  It should return a SCM
   and be renamend save_stat_file_name_scm().  Also save_stat_file_name_py().

   Priority: Low
   Difficulty: Trivial

* Done.

-----
Mon Dec 17 16:52:20 GMT 2007

   Steven Sheriff:

   On calculating blobs from a difference map:

10.44 (10.44 sigma) at xyz = (  22.62, 4.526, 70.71)
10.40 (10.40 sigma) at xyz = (  22.35, 3.493, 70.95)   #  1.06 A separated from one above;
10.31 (10.31 sigma) at xyz = (  22.6, 4.587, 70.69)  # # 0.07 A separated from two above; 1.15 A separated from one above

"My view is that I don't want to see all 3 of these in the list, one would do. "

    One can see something similar if you peak search the difference
    map, I think.  Tweak the difference map algorithm to filter out
    sub-sites that are close to already found sites.
    Weighted average, maybe?


------
Tue Dec 18 13:41:58 GMT 2007

in
void
graphics_info_t::execute_rotate_translate_ready() { // manual movement

   CAtom *atom1 = molecules[imol_rot_trans_object].atom_sel.atom_selection[rot_trans_atom_index_1];
   CAtom *atom2 = molecules[imol_rot_trans_object].atom_sel.atom_selection[rot_trans_atom_index_2];

Which can be a crash of atom1 is deleted between its click and the second rt-zone click.
Hmm...

----
Tue Dec 18 16:45:06 GMT 2007


 fill_close_option_menu_with_all_molecule_options() does not use
 GINT_TO_POINTER().  It should.


----
Tue Dec 18 16:46:52 GMT 2007

  separate out the widget parts of c-interface.h into
  c-interface-gui.hh (or should it be .h? - Yes I think it should be
  because those functions will also be called by callbacks.c)

-----
Thu Dec 20 20:25:45 GMT 2007

    JED: What I want is function to remove alt confs of atoms in a
    residue which only have one atom of that type in the residue.
    And set the occupancy to 1 at the same time.

    Give me a key binding to run this function on the active
    residue. And re-display the residue-info dialog.

* Done: (sanitise-alt-confs)

---
Fri Dec 21 13:51:31 GMT 200

 c-interface.cc:
 * Copyright 2004, 2005, 2006, 2007 by Bernhard Lohkamp
coot_utils.py:
# Copyright 2004, 2005, 2006, 2007 by Bernhard Lohkamp

 Remove that - unless there is good reason not to.

-----
Fri Dec 21 14:08:25 GMT 2007

   Bill report of starting up with GUI, but no scripting window available:




Latest coot, I am getting this when I try to open the python scripting
window (used to work):

Traceback (most recent call last):
 File "<string>", line 1, in <module>
NameError: name 'coot_gui' is not defined


I think everyting loaded:

DEBUG:: stating pydirectory /sw/share/coot/python
INFO:: loading coot.py from /sw/share/coot/python/coot.py
Running python script /sw/share/coot/python/coot.py
INFO:: coot.py loaded
INFO loading coot python modules
Running python script /sw/share/coot/python/coot_load_modules.py
Loading: coot_utils.py
Loading: filter.py
Loading: coot_lsq.py
Loading: shelx.py
Loading: get_ebi.py
Loading: local_code.py
Loading: hello.py
Good Evening Wgscott, Welcome to Coot.
(set-display-intro-string "Good Evening Wgscott, Welcome to Coot.")
Loading: mutate.py
Loading: refmac.py
Loading: libcheck.py
Loading: gap.py
Loading: fitting.py
Loading: raster3d.py
Loading: povray.py
Loading: generic_objects.py
Loading: ncs.py
Loading: cns2coot.py
Loading: tips.py
Loading: americanisms.py
Loading: group_settings.py


Note that it is not starting up in python_gui mode.

Note also that pygtk is not needed for the python gui.

   Priority: Important.
   Bernhard to fix.
   (It doesn't happen to me, I get good results on searching for pygtk in configure).

   Try compile without pygtk.
   We should get python scripting window without pygtk.

* Discussed this with Bernhard.  He will try to untangle it.

-----
Fri Dec 21 15:11:40 GMT 2007

A valgrind thing to think about:

==15565== 496 (160 direct, 336 indirect) bytes in 1 blocks are definitely lost in loss record 264 of 402
==15565==    at 0x4C220C5: operator new[](unsigned long) (vg_replace_malloc.c:199)
==15565==    by 0x65F7293: Bond_lines_container::make_graphical_bonds() const (Bond_lines.cc:1642)
==15565==    by 0x4AD80C: graphics_info_t::flash_selection(int, int, std::string, int, std::string, std::string, std::string) (graphics-info-modelling.cc:757)
==15565==    by 0x4B3CE2: graphics_info_t::refine_residue_range(int, std::string const&, std::string const&, int, std::string const&, int, std::string const&, std::string const&, short) (graphics-info-modelling.cc:918)
==15565==    by 0x4B44DD: graphics_info_t::refine(int, short, int, int) (graphics-info-modelling.cc:842)
==15565==    by 0x53122B: refine_zone_with_full_residue_spec (c-interface-build.cc:5165)
==15565==    by 0x531308: refine_zone (c-interface-build.cc:5143)
==15565==    by 0x83E0EBB: _wrap_refine_zone(scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) (coot_wrap_guile.cc:12815)
==15565==    by 0x8FF5107: scm_gsubr_apply (in /home/paule/x64/lib/libguile.so.17.1.1)
==15565==    by 0x8FDE10C: scm_dapply (in /home/paule/x64/lib/libguile.so.17.1.1)
==15565==    by 0x8FE2801: deval (in /home/paule/x64/lib/libguile.so.17.1.1)
==15565==    by 0x8FE2F44: deval (in /home/paule/x64/lib/libguile.so.17.1.1)
==15565==

-----
Mon Dec 24 16:48:47 GMT 2007

  BL has introduced split in on_open_coordinates1_activate.  Needs
  rationalizing.

-----
Sun Dec 30 10:29:43 GMT 2007

   Google for this from the office:

   The Lancet : Ten pieces of free software every doctor should have

-----
Mon Dec 31 16:44:49 GMT 2007

   on doing a refinement:

INFO:: graphics_info_t::clear_up_moving_atoms...
clearing intermediate object...
c-interface clear_up_moving_atoms...
INFO:: graphics_info_t::clear_up_moving_atoms...
WARNING:: attempting to delete NULL moving_atoms_asc.atom_selection
Ignoring.
attempting to delete NULL moving_atoms_asc.mol
ignoring
clearing intermediate object...

    (ugliness)

-----
Mon Dec 31 16:53:00 GMT 2007

   For 0.5:

   o Tests for chi angles:
       Make some residue that you know the chi angles of.
          Generate values, compare.
       Chi angles of a Water
       Chi angles of 3GP

     Where should this code go?  In a new testing.cc/testing.hh?
     test_chi_angles(imol_3gp, imol_ref, imol_water);
        and the actual target values are embedded in the test code.
        Hmm...  Well, I could try it.

     Note to self:  Write the test first!

* Done.  In test-ligand

----
Fri Dec 28 17:12:58 GMT 2007

    how do I test torsion general?

    I can use test-ligand, for sure.

    maybe, I'll libify the test, so coot main can use it.
    Hmm...

    So we make molecules every n*10 degress

    rotate the bond the other -n*10.

    Overlap results.
       Test for closeness.

-----
Mon Dec 31 19:48:09 GMT 2007

   interesting?
   FBSS:
   http://cisrg.shef.ac.uk/projects/fbss//man_contents.html

-----
Mon Dec 31 23:08:32 GMT 2007

  molecule_info_class_other.cc has:
  do_accept_reject_dialog("Alt Conf Split", coot::refinement_results_t());
  Yeuuuuucch!

  I see why I did it I think - it was cheap :)
  It is in split_residue_internal(), so the resulting value from this
  function needs to be propogated back up through split_residue()

-----
Wed Jan  2 18:57:42 GMT 2008

   Funny shapped protein?

	1l7l

-----
Mon Jan  7 08:48:31 GMT 2008

   Export chi angles for a residue spec to scripting layer.
   Can test from there.

---
Tue Jan  8 04:12:57 GMT 2008

  Make a test for alt conf split a residue?
  What is the test?  There is not functions at the scripting layer:
  add_alt_conf( [residue spec] )
  or
  split_residue ( [residue spec] )

  Hmmm...

-----
Tue Jan  8 07:57:19 GMT 2008

    Transfer transpose matrix to Coot from Chart.
    Use it, like Bernhard does on the nudge view buttons.

* Done

----
Tue Jan  8 09:40:44 GMT 2008

   A graph tool to represent NCS differences

* Done.

----
Tue Jan  8 09:41:15 GMT 2008

   Rewrite sequence view (from scratch)

----
Tue Jan  8 10:42:12 GMT 2008

this needs filling
set_monomer_restraints().
and the function should be in c-interface-build.cc I think.


---
Tue Jan  8 11:56:22 GMT 2008

   A script that identifies badly fitting residues,
   (by density fit and geometry and rotamer say - these residue
   attributes need to be exported to scripting surface)

   make a list of residues
     view to residue
     rotate view
     try rotamer search
     does it fit now?
     if not
        delete residue
        add-terminal-residue
        mutate to previous residue type
     rotate view

   Do it in scripting

----

    PSK18 has tunnel for C16, long chain fatty acid
    Ruckmini 2004
    Might be fun to do an annimatation of this.

    Priority: (Fun), Low


----
Tue Jan  8 13:06:56 GMT 2008

    Testing fixed atoms:

    need to:
    create a bad rotamer
    refine residue
      {generates intermediate atoms}
    fix a wrongly positioned atom
    drag another atom
      {fixed atom doesn't move}
      {continue refinement}
    accept refinement
    get atom attributes for fixed atom
    check that it is where it should be (fixed position)


----
Tue Jan  8 13:14:48 GMT 2008

    Rotamer funtion:
    set_rotamer_at_residue(imol, chain_id, resno, ins_code, alt_conf, rotamer_name);
    where rotamer name is "t" or "tpp" etc.

-----
Wed Jan  9 00:30:49 GMT 2008

    For 0.5:

    Do a validation on a fitted 3GP.  Is the most deviant geometry the
    one shown in the tooltip?

    Priority: High.

---
Wed Jan  9 07:03:22 GMT 2008


  Look up the "Ramachandran" plot for torsions around the glycosidic
  bond in carbohydrate linkages

  phi vs psi

  (-90, 60) is the big peak

  around c2-o and o-xxx on the other subunit

  Look For The Database analysis of Glycosylation

  1f31 has axial carbohydrate in ganglioside, a mistake maybe?

-----

molecule_class_info_ncs: has this construction:

   for(unsigned int ighost=0; ighost<ncs_ghosts.size(); ighost++) {

      if (ncs_ghosts_have_rtops_flag == 0) {
	 // std::cout << "   %%%%%%%%% calling fill_ghost_info from "
	 // std::cout << make_dynamically_transformed_maps "
	 // << std::endl;
	 fill_ghost_info(1, homology_lev); // fill the rtops and set the flag
      }

is that right?

-----
Thu Jan 10 08:19:19 GMT 2008

   write a testing.cc test for
	std::vector<std::pair<int, int> >
	coot::util::pair_residue_atoms(CResidue *a_residue_p,
				       CResidue *b_residue_p) {

    passing different residue types

----
Thu Jan 10 10:43:33 GMT 2008

  Aspirin and paracetamol are simple.

  See if coot can fit them (do they exist in the EDS?).  Add to test
  suite?

----
Fri Jan 11 08:40:05 GMT 2008

   Look at fitting strands at low resolution.
   an OMP pore protein perhaps.

   One for the test suite?

-----
Fri Jan 11 08:51:06 GMT 2008

   Make the default bond thickness thicker!

* Done.

----
Fri Jan 11 10:40:28 GMT 2008

   Transfer map functions to molecule-class-info-maps.cc

* Done.

-----
Sun Jan 13 14:50:19 GMT 2008

    A function to return the density fit score of a residue.  Can be
    done in scripting of course, now (not sure if that is for the
    best)

---
Sun Jan 13 14:51:14 GMT 2008

   In ligand fitting, I want to see the scores and the positions of
   the best fits in the other orientations.  The B factors should be
   set to the ligand fit score for this testing.  Perhaps the ligand
   fitting should return a vector of std::pair<name, mol>s.  Best fit,
   ori1, ori2, etc.

   So maybe set a developer option to do this.

---
Sun Jan 13 15:11:30 GMT 2008

   Residue info should also contain phi psi values and a percentile
   (like molprobity)

   How about a graph of Ramachandran percentile?


----
Sun Jan 13 15:36:10 GMT 2008

    Test that skip-to-next-ncs-chain works with a2b2 hemoglobin.


----
Sun Jan 13 18:42:32 GMT 2008

    How To Add Another Geometry Graph

    in geometry_graphs.hh:
    --------------------------
    Add new type to geometry_graph_type

    in geometry_graphs.cc
    --------------------------
    In the coot::geometry_graphs::geometry_graphs(...) constructor, add title

    in graphics-info-graphs.cc
    --------------------------
    graphics_info_t::update_geometry_graphs(...)
    Add a function to update new graph.

      coot::geometry_graphs *gr =
	 geometry_graph_dialog_to_object(residue_density_fit_graph[imol_moving_atoms]);
	 std::vector<coot::geometry_graph_block_info_generic> dv =
	    geomtry_graph_xxx_from_mol(moving_atoms_asc_local,
				 imol_moving_atoms,
				 Imol_Refinement_Map());
	 gr->update_residue_blocks(dv);

    Create a function:
    void graphics_info_t::xxx_graphs(int imol)...


    in c-interface-xxx.cc
    ----------------------
      void validation_graph_XXX_mol_selector_activate (GtkMenuItem     *menuitem,
						      gpointer         user_data);
   in main.cc
   ----------
   Add create_initial_validation_graph_submenu_generic
   The menu name (the first string) must match the names generated by the glade

   in callbacks.c
   --------------
  char *type = "density-fit";
  GtkWidget *menu = lookup_widget(GTK_WIDGET(menuitem), "density_fit_analysis1");
  if (menu) {
    add_on_validation_graph_mol_options(menu, type);
  } else {
    printf("failed to get menu in on_density_fit1_activate\n");
  }

   in c-interface-validate.cc
   -------------------------

   Add another option to add_on_validation_graph_mol_options()

   The validation_type must match that from callbacks.c
   The sub_menu_name must match that from main.cc
     create_initial_validation_graph_submenu_generic()

   Also unset_geometry_graph(GtkWidget *dialog) needs to know about the new graph

   in graphics_info_graphs.cc
   --------------------------
   set_validation_graph need to know about the new graph


-----
Mon Jan 14 13:22:33 GMT 2008

    testdbmain is broken.


----
Mon Jan 14 13:22:48 GMT 2008

    Really test out Ca Zone -> Mainchain.

    It seems to me that most of the time it works well, but there are
    regions where it does not. e.g. CA - N bonds of less than 0.5A.
    I am thinking that that can only be coming from a bug.

    Think about how to test that.

    Very few reference structures?

    We need to know how many fragment are contributing to each
    position.


-----

   configure should check for scsh.
   only if it has it should it be used for the documentation.

----
Thu Jan 17 09:50:46 GMT 2008

    think about user-defined bond, as seen on Phenix list recently:
    e.g.:

    add-user-defined-bond(int imol, atom_spec atom1, atom_spec_atom2, float dist_ideal, float sigma);

----
Thu Jan 17 10:14:18 GMT 2008

    Tinker with a libglade project.

-----
Thu Jan 17 11:56:57 GMT 2008

    ubuild, ie. without python out the box please.
    i.e. coot_wrap_python.cc needs to be not compiled somehow.

   Priority: Important.


----
Sat Jan 19 11:35:01 GMT 2008

    Build GTk2 on YSBL.

chihiro fails: no GL include files.
dewinter fails: in mmdb: C++ compiler can't compile

bubbles fails: gtk2 version is 2.0.6, needs 2.2.0
bragg3 fails: can't compile a working guile 1.8.3

----
Sat Jan 19 11:56:58 GMT 2008

    Molprobity interaction dots around a ligand.
    Surely that would be super cool?

    Yes it would.

-----
Sat Jan 19 16:09:27 GMT 2008

    Read charges from dict and calculate and display diapole moments

----
Mon Jan 21 13:04:37 GMT 2008

    Now I am compiling gtk2+ becuase the system gtk2+ on cycle (FC4)
    is too old to complile Coot.

    I am doing it on cycle in ~/compile
    I created setup pango-glib-gtk2 with PKG_CONFIG settings.
    ./configure --prefix=$HOME/autobuild/Linux/Coot-0.4

    glib 2.12.13 straightforward
    pango 1.16.4 straightforward
    fine.
    Oh for gtk2 though, cairo is not an option.  It is a must.  Baah.
    That was not clear in www.gtk.org.

    So get cairo 1.4.14 from http://cairographics.org/releases/

    which means get glitz from http://cairographics.org/snapshots/
    (gotta have glitz, right?)

    glitz-0.5.6
    ./configure --prefix=$HOME/autobuild/Linux/Coot-0.4
    Compiles OK.

    back to cairo
    ./configure --prefix=$HOME/autobuild/Linux/Coot-0.4 --enable-glitz
    This displays a warning about using glitz, but configures OK.
    Compiles OK.

    back to pango:
    now with cairo in place, pango's configure finds cairo
    ./configure --prefix=$HOME/autobuild/Linux/Coot-0.4
    Compiles OK.

    back to Gtk2+:
    glib version test failed, so need to add LD_LIBRARY_PATH too (to the setup file)
    ./configure --prefix=$HOME/autobuild/Linux/Coot-0.4
    Compiles OK.

    Fine.  But Coot configure fails on gtlglExt

    http://downloads.sourceforge.net/gtkglext/gtkglext-1.2.0.tar.gz?modtime=1139081517&big_mirror=1
    back to GtkGLExt:
    ./configure --prefix=$HOME/autobuild/Linux/Coot-0.4
    Compiles OK.

    Coot now compiles OK.  And runs! Great.
    But - it doesn't load svgs.

    OK, back-up.

    config.log for cairo tells us we need a newer librsvg:
    http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.20/
    http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.20/librsvg-2.20.0.tar.gz (2 days old at
    time of writting)

    ./configure --prefix=$HOME/autobuild/Linux/Coot-0.4
    Warns us that we are not compiling with libcroco.
    Oh well.

    OK, now librsvg is in place configure finds it.
    Rebuilding cairo
    Install.

    Fine.  Now coot loads its svgs.  Yay!

    PyGtk needs pycairo


    Correct build order:
    glitz
    glib
    librsvg
    cairo
    pango
    gtk+-2
    glkglext

Hmm...


checking for LIBRSVG... configure: error: Package requirements (        gdk-pixbuf-2.0 >= 1.3.7         glib-2.0 >= 2.12.0      libxml-2.
0 >= 2.4.7      pangoft2 >= 1.2.0       pangocairo >= 1.2.0     cairo >= 1.2.0  cairo-png >= 1.2.0      fontconfig >= 1.0.1
        freetype2) were not met:

Requested 'pangoft2 >= 1.2.0' but version of Pango FT2 is 1.1.1

http://www.linuxfromscratch.org/blfs/view/svn/x/cairo.html

  Note that the GTK, Poppler and librsvg packages are circular in that
  using them for test suite coverage requires installing cairo first,
  then installing the desired package(s), then installing cairo again.

Now on to guile-gtk:

A new guile: 1.8.3:

./configure --prefix=/lmb/wear/emsley/guile-1.8.1 CFLAGS="-I/lmb/wear/emsley/guile-1.8.1/include -O" LDFLAGS=-L/lmb/wear/emsley/guile-1.8.1/lib

if I use -g instead of -O, I get:

$ guile
Backtrace:
In unknown file:
     ...
   ?: 123  [list apply ...
   ?: 124*  [list lambda (syntmp-dummy-3 syntmp-name-4 syntmp-rules-5) ...
   ?: 125*   [syntmp-chi-151 #(syntax-object # #) (# # # # ...) ...
   ?: 126*    [syntmp-make-binding-wrap-132 (# # #) ("i" "i" "i") (())]
   ?: 127     (if (null? syntmp-ids-949) syntmp-w-951 ...)
   ?: 128     [cons () ...
   ?: 129*     [cons ...
   ?: 130*      (let* ((syntmp-labelvec-952 #)) (let* (#) (let # #)))
   ?: 131       (let* ((syntmp-n-953 #)) (let (# #) (begin # #)))
          ...
   ?: 132       (begin # #)
   ?: 133*      [syntmp-f-956 (# # #) 0]
   ?: 134       (if (not #) (call-with-values # #))
          ...
   ?: 135       [call-with-values #<procedure #f ()> #<procedure #f #>]
   ?: 136       (@call-with-values (producer consumer))
   ?: 137*      [#<procedure #f ()>]
   ?: 138*      [syntmp-id-sym-name&marks-116 #(syntax-object dummy #) (())]
   ?: 139       (if (syntmp-syntax-object?-101 syntmp-x-980) (values # #) ...)
   ?: 140*      [syntmp-syntax-object?-101 #(syntax-object dummy (# # # shift ...))]
   ?: 141       (and (vector? syntmp-x-1008) (= (vector-length syntmp-x-1008) 3) ...)
   ?: 142*      (vector? syntmp-x-1008)


guile-gtk-2.1:

./configure --prefix=$HOME/autobuild/Linux/Coot-0.4 --without-gtkgl

-----
Mon Jan 21 15:49:32 GMT 2008

    reference for EDS:

 Title: The Uppsala Electron-Density Server
Author(s): Kleywegt GJ, Harris MR, Zou JY, Taylor TC, Wahlby A, Jones TA
Source: ACTA CRYSTALLOGRAPHICA SECTION D-BIOLOGICAL CRYSTALLOGRAPHY 60: 2240-2249 Part 12 Sp. Iss. 1, DEC 2004

* This is in the manual already.


----
Mon Jan 21 17:07:30 GMT 2008

    Refinement (with chiral volumes) on a residue that does not have
    the atoms for a chiral centre fails with E_NO_PROGRESS.

    Priority: Critical


----
Sat Jan 26 14:14:39 GMT 2008

    Don't forget to distribute val.pdb.  Else the tests will fail.

----
Sat Jan 26 15:49:27 GMT 2008

   o Copy fragment (new-molecule-by-atom-selection) does not
     calculate the NCS.  Maybe it should.


-----
Sat Jan 26 20:49:44 GMT 2008

    for scroll wheel map template see cinterface.cc:1003

    set the scroll wheel map correctly from a cns map.
    molecule-class-info-other.cc:6288

    set the scroll wheel map correctly from a phs map.
    molecule-class-info.cc:3203

    set the scroll wheel map correctly from a sfcalc map
    molecule-class-info.cc:3538

    set the scroll wheel map correctly from a cif nfofc map
    molecule-class-info.cc:3896

    set the scroll wheel map correctly from a cif phs
    molecule-class-info.cc:4018

    add tests for reading phs and cif files,
    test that they return sensible molecule numbers.

    add a test for creating a new molecule from water fitting.
    using void find_waters(imol_for_map,  imol_for_protein,  new_waters_mol_flag,
		 sigma_cut_off, show_blobs_dialog);


    add a test that, when a map is made with refmac params, the refmac
    params are correct.  May need an accessor function (return a SCM)

    add a test for both a map and a molecule that the new molecule
    number is correct (should match graphics-n-molecules, I think).

    test try setting an atom attribute of a bugus (-1, 888) molecule number


    think about what to do with:
    graphics_info_t::expand_molecule_space()

    why in this function:
    handle_cns_data_file_with_cell(const char *filename, int imol..)
    is imol  passed?

------
Tue Jan 29 14:49:39 GMT 2008

    Expose overlap ligands to the gui.

-----
Wed Jan 30 13:57:25 GMT 2008

   Randy Read:

   "I've just run across what seems like a bug for proteins with
   hydrogens, in coot 0.4.1.  I've just been refitting something
   refined with all hydrogens on.  If I choose a new rotamer for some
   of them (e.g. Lys), it seems everything is fine.  However, if I
   choose a new rotamer for Arg, Asn, Val or Leu, it looks fine until
   I click "Accept", and then (at least some of) the hydrogens get
   left behind in their old positions"

   Hmmm... Hydrogen name problem, I'd guess

   Need to test on a protein that comes from molprobity.

* Randy Agrees.

-----

   pygtk needs pycairo:

   http://cairographics.org/releases/pycairo-1.4.12.tar.gz

   If you build your own pkg-config, you need to add
   /usr/lib/pkgconfig to PKG_CONFIG_PATH environment variable.


----
Wed 30 Jan 2008 14:12:55 GMT


on compiling freeglut on impala:


 -o CallbackMaker-CallbackMaker.o `test -f CallbackMaker.c || echo './'`CallbackMaker.c
/bin/sh ../../../libtool --mode=link gcc  -I/usr/X11R6/include   -o CallbackMaker -export-dynamic ../../../src/
libglut.la CallbackMaker-CallbackMaker.o
mkdir .libs
gcc -I/usr/X11R6/include -o .libs/CallbackMaker CallbackMaker-CallbackMaker.o  -L../../../src/.libs -lglut -lm
-L/usr/X11/lib -lGL -lGLU -lXxf86vm -lXext -lX11 -lXdmcp -lXau
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.

http://www.mail-archive.com/fink-devel@lists.sourceforge.net/msg16105.html

   Problem solved - I have it working.
   To the ConfigureParams section of the info file I added:

   LDFLAGS="-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"

PE: This worked for me too:


./configure --prefix=/Users/paule/autobuild/Darwin/coot-pre-release-gtk2 --disable-warnings LDFLAGS=-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib

for OpenGL (in gtkglext building)

 ./configure --prefix=/Users/paule/autobuild/Darwin/coot-pre-release-gtk2 --disable-warnings LDFLAGS="-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"

------
Wed 30 Jan 2008 14:50:08 GMT

   cairo depends on freetype

   (but it fails during compile, not cofigure, baah)

   http://download.savannah.gnu.org/releases/freetype/

* Done.  in build-it-gtk2 now.


------
Thu Jan 31 00:48:53 GMT 2008

   Alice Dawson:

   1:
   > I can't set the occupancy to a number greater than 1 in the
   > residue info box.  This is quite annoying when fiddling with
   > disordered residues - e.g. when I delete CA, B for a residue the
   > remaining CA still has occupancy -21 which I can't alter in
   > Coot..  Also when I add any molecules (waters, ligands) they are
   > added with an occupancy of 1 not 11.

   2:
   > An item for a wishlist: my protein has 1000 residues in the
   > asymmetric unit and it's very difficult to keep track of the free
   > variables.  Including the FVAR number and value in the Residues
   > with Alt confs box would be really helpful.

   1: Priority High

   2: Priority Medium

----
Thu Jan 31 00:49:48 GMT 2008

   Francis Reyes:

   > I'm trying to merge / append two molecules. However, when I click
   > on Merge, I get ...  INFO:: adding molecule 6 to merging list

   > ... and that's it..

   > Yet the residue does not appear as a new chain in the molecule
   > into which I'm merging?  Earlier versions of coot actually show
   > INFO:'s telling you which chain it made, etc.

----
Thu Jan 31 07:49:51 GMT 2008

   command line tool to get OS version on Mac?

   These of use?

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

------
Thu Jan 31 08:32:26 GMT 2008

    Select rotamer button box has an OK button that needs to be homogenized.

    Priority: High

----
Thu Jan 31 20:12:56 GMT 2008

   Clemens (on density fit graphs):

   Since I find it easier to ask others for those mental gymnastics
   (aka Paul in this case) than doing it myself: how about having all
   those graphs always starting at number 1 - or at the lowest residue
   number of any chain?

   Yes the lowest number in any chain.  That is, if the difference is
   not too large (like 100 or so)

   Priority: Medium.  Do before 0.6.

-----
Fri Feb  1 19:03:34 GMT 2008

    Need a test for merging molecules.
    merge-molecules is used in the rna test.
    But let's make more of a torture test and test the resulting molecule

------

	look in ejd/2a4d something and residue
	218A rotamers, fails.
	But works after regularization

-----
Wed Feb  6 14:05:16 GMT 2008

    cc-interface-build.cc has the following bit of code:

	 if (p.size() > 0) {
	    // install new molecule(s) that has been rotated.
	 }

   Should fix/fill.



-----
Wed Feb  6 14:58:14 GMT 2008

   Dave Schuller:

   In Coot 0.4.1, I have a molecule displayed as "Ca + ligands." After
   I ran some regularisation, the color of my molecule changed! I
   switched the molecule display mode to bonds, then back to Ca +
   ligands and everything was OK again. Interesting "feature."

   Priority: High:
   Difficulty: Easy.

-----
Wed Feb  6 16:15:31 GMT 2008

    On mutate and insert residue we can additionally set the seg-id of
    the new atoms (given that the current/previous residue is sensible).

    Priority: Medium:
    Difficulty: Medium/Easy


----
Wed Feb  6 16:17:51 GMT 2008

    Doug Kuntz:

    Make a method to save the symmetry colour.

    Priority: High.  Do it for 0.5
    Difficulty: Easy


---
Thu Feb  7 12:24:59 GMT 2008

Doug Kuntz:

> > > 2) The selection of active molecules seems screwed up.
> > >
> > > I can now only have one active molecule.  Even though all the active
> > > boxes are nice and pink in the Display Manager window.  To move a
> > > molecule I have to ensure all the others are turned to inactive. But
> > > there seems no way to make more than one molecule active at a time. If
> > > I want to compare two superimposed molecules for distances between
> > > them  at a particular atom I can no longer  pick both atoms

      Ingo Korndoefer reported something similar.


-----
Wed Feb  6 23:18:23 GMT 2008

    After graphs moved over to molecules class,

    Need to test Ramachandran plot and sequence view for molecules


-----
Thu Feb  7 00:00:14 GMT 2008

    Why is there a delete plot in
    void
    graphics_info_t::set_dynarama_is_displayed(GtkWidget *dyna_toplev, int imol)

---
Fri Feb  8 20:37:43 GMT 2008

    If you are going to edit restraints, wouldn't it be a good idea to
    write a restraints file (mmdb write mmCIF interface).


---
Sat Feb  9 22:40:38 GMT 2008


A FC3 machine:


bunyip ~> pkg-config --modversion gtk+-2.0
2.4.14

A FC4 machine:

cycle ~> pkg-config --modversion gtk+-2.0
2.6.7

-----
Mon Feb 11 08:26:02 GMT 2008

GDK_PIXBUF_MODULE_FILE=$HOME/autobuild/Linux-bragg1.chem.york.ac.uk-pre-release-gtk2/etc/gtk-2.0/gdk-pixbuf.loaders

export GDK_PIXBUF_MODULE_FILE

----
Mon Feb 11 13:02:51 GMT 2008

    There was a problem of left-over muddled gtk libs and dependencies
    in coot-Linux-fedora-5-gtk.

    Which caused problems in startup.  If I ran the slim function by
    hand to a clean directory, it worked (woop!)

    diagnosed by using
    diff -r dir-1 dir-2

    Now rebuilding fc5 (bragg3) from scratch.

    Need to test that there are no dependencies on
    autobuild/Linux-bragg3-pre-release-gtk2 when its done.

    Question:  are pygobject and pycairo needed for pygtk 2.6.3?


-----
Tue Feb 12 01:37:53 GMT 2008

    coot-real from kalypso ~/Projects/build-coot-fc4-gtk2/src> ./coot-real

    Try to open an mtz file from tutorials,

    on changing to  "tutorials" in the ccp4i project option menu:

** (lt-coot-real:32355): WARNING **: Widget not found: map_name_fileselection1
WARNING:: failed to find filesection in option_menu_refmac_ccp4i_project_signal_func



------
Wed Feb 13 10:48:53 GMT 2008

   The flatland thing on NCS happened without drawing NCS ghosts first.

   So, is an NCS matrix being applied when it shouldn't? NCS ghost are
   marked as filled, but they are not?

-----
Thu Feb 14 20:55:59 GMT 2008

   handle_symmetry_colour_change(int mol, gdouble* col)

   is the same functionality as

   set_symmetry_colour().

   Rationalize it.

   Also get_map_colour and get_map_color_gdkcolor needs rationalizing.


-----
Thu Feb 14 21:02:39 GMT 2008

    I am on a symmetry related atom. I want a "go to atom (relative
    main molecule atom)"


  g_signal_connect ((gpointer) map_colorbutton, "color_set",
                    G_CALLBACK (on_map_colorbutton_color_set),
                    NULL);

-----
Fri Feb 15 01:08:40 GMT 2008

    When a GtkColorButton is clicked, we get a GktColorSelectionDialog
    (or some such).  How do I control the colour selection dialog so
    that it work in continuous update mode, so that signals are sent
    continuously as the color selection change

----
Sun Feb 17 00:14:05 GMT 2008

    in simple-restraint init_from_mol() we do
    SelHnd_atom = mol->NewSelection();

    do we ever give SelHnd_atom back?


-----
Mon Feb 18 12:36:34 GMT 2008

    delete-residue-range seems to do 2 backups.


-----
Mon Feb 18 12:38:02 GMT 2008

DEBUG::  display toggle of molecule: 0
DEBUG::  display toggle of molecule: 2


-----
Wed Feb 20 04:36:04 GMT 2008

    Read in 1qex from EDS.

    calculate ghosts

    density fit.

    rescale 0.5

    recale 0.3

    click on first residue in water chain

       -> crash

INFO:: canvas size based on 3 chains with max length 302
INFO:: canvas size: 3220 270
DEBUG:: min_resno: 1 max_resno: 288 chain_number 0
DEBUG:: min_resno: 1 max_resno: 288 chain_number 1
DEBUG:: min_resno: 1 max_resno: 302 chain_number 2
INFO:: trying to centre on:  1  O
(set-go-to-atom-molecule 0)
Segmentation fault (core dumped)


----
Wed Feb 20 05:27:36 GMT 2008

    302 EPE in 1QEX.  Look at the bonding to the Sulfur.  One of the
    oxygens has a cross. Fix?

----
Wed Feb 20 11:27:37 GMT 2008

   Here:
   void
   graphics_info_t::start_baton_here()

   we do:
      int *imol_copy = new int;
      *imol_copy = imol_for_skel;
      gtk_object_set_user_data(GTK_OBJECT(w), (char *)imol_copy);

   should use GINT_TO_POINTER

-----
Thu Feb 21 03:52:58 GMT 2008

    save symmetry coordinates and save coordinates should have an
    scripting history expression.

-----
Thu Feb 21 06:52:25 GMT 2008

    display manager should resize better.
    Autosize up to a certain size (ysize).

----
Thu Feb 21 06:53:17 GMT 2008

    Frank says make a selection in the go to atom window and use it to
    make new molecules.  Or cut/paste.

    Idea needs more details.

----

ARP/wARP peptide torsion from pseudo bonds

2 torsions from CA-O-CA-O-CA  -> "American View of the World"


------

   when the fcf file is in someone else's directory, the writing of
   the cif file fails.

-----

 D. Gayathri
gaya_raju@rediffmail.com, dcbgaya@gmail.com


------

   Crash by Martyn

   do unmodeled blobs.
   dont close results

   get unmodelled blobs dialog again
   and martyn said that he didn't click...

-----
Fri Feb 22 08:36:20 GMT 2008

    Note to self:

    Redo the ligand fitting slides.

    Easy to do

----

 Sergs' presentation:
 Autosolve ligand detection Mooji (?) 2006?


 Use cluster volume vs contour threshhold plot (of the difference map)
 to detect the cluster (volume decreases with contour level less for
 real ligand than noise.

 and use the blob that is closest to the protein (Frank is sceptical
 about that).

 there is some sort of shape function too (I missed how).  ah, 7
 statistics, sufrace to volume ratio, eigen values etc.


------
Fri Feb 22 09:31:35 GMT 2008

    Import an ATP.

    Regularize it.

    furanose ring is flattened... why?

    Bug, I'd say

    On testing, maybe not.  Is the restraints.
    Need to get other restraints for ATP.


----
Fri Feb 22 09:45:25 GMT 2008

  Get a list of ATPs from pdb to fit *this* particular ATP

  (will do conformation search for us).

  Report the structure that matched.

  In fact, download the matchng structure and overlay it on the
  ligand.


-----

	Can I get to MSDchem via SOAP or some such?
	Don't bother - use sbase.


----

	Add a water over a symmetry atom.

	go to real space of symmetry atom.

	move the real space atoms a bit.

	shift left on sym water. Fails to label.



-----
Sun Feb 24 09:55:35 GMT 2008

    Try running baton mode without first making a skeleton.

    It doesn't work properly.

    Priority: Medium
    Difficulty: Medium


-----
Fri Feb 29 16:33:00 GMT 2008

    more on compiling on impala


If I copy the command line from configure for pygtk and pyobject

[this is from pygtk]
./configure --prefix=/Users/paule/autobuild/Darwin/coot-pre-release-gtk2 --with-pango --with-pangocairo PYGOBJECT_CFLAGS=-I/Users/paule/autobuild/Darwin/coot-pre-release-gtk2/include/pygtk-2.0 PYGOBJECT_LIBS=-L/Users/paule/autobuild/Darwin/coot-pre-release-gtk2/lib

then it configures on the command line.  But not from script (glib test
program problems).  Grrr.

----
Wed Feb 27 09:18:50 GMT 2008

    Residue Info on a residue with alt confs.
    Problem in CHI angles?

-----
Wed Feb 27 15:38:28 GMT 2008

    At the end of build-it-gtk2-simple:

    mkdir: cannot create directory
    `/home/paule/autobuild/coot-Linux-i686-ubuntu-7.10-gtk2/include/python2.5':
    No such file or directory

   indeed the include dir is not there.


----
Sat Mar  1 06:11:26 GMT 2008

    Parse USER MODs
    somewhere I have some code, I started on this?

    on penelope, I guess.


----
Wed Mar  5 17:52:08 GMT 2008

  pick_info
  graphics_info_t::find_atom_index_from_goto_info(int imol)

  very convoluted!?

  Why not use graphics_info_t::molecules[imol].atom_to_atom_index()?

----
Thu Mar  6 13:31:13 GMT 2008

    Get rid of (MyCMMDBManager *)

----
Fri Mar  7 13:40:51 GMT 2008

    Test for guile-gtk is failing (i.e. guile-gtk2.1 is being built)
    on bragg3.

----
Fri Mar  7 14:48:47 GMT 2008

    Useful fun.
    Write a parse for gdk/gdkkeysyms.h
    if field-1 is #define if NF == 3
    split field-2 after GDK_ and decode field-3 to decimal

    now we can have a function gdk-key-symbol->key

    e.g
    (gdk-key-symbol->number "Super_R")
    -> 2354 [or some such]

    now change graphics-general-key-press-hook to test for a string,
    and if it is, run gdk-key-symbol->number.

----
Wed Mar 12 12:00:50 GMT 2008

    revisit --as-needed, Donnie B.

----
Thu Mar 13 14:31:37 GMT 2008

   consider install_name_tool when installing mac binary?

----
Thu Mar 13 16:15:10 GMT 2008

    Additional representations "button" should (also?) be on the
    Display Control.

----
Sat Mar 15 09:30:11 GMT 2008

    Herb Klei: after a superposition (LSQ say) the moving molecule
    should take on the cell/symmetry of the target/reference molecule.

    When you do LSQ superpositions in COOT, can you make it so that if
    one does not specify residue ranges, all residues in common are
    assumed.  It seems silly to need to type in 1 and 999 twice just
    to run.  Also, I would make Calpha the default (can we do so
    through .coot file?).

----
Fri Mar 14 00:49:26 GMT 2008

    poly-ala in mutate.scm is not documented.  why?


----
Fri Mar 21 10:54:01 GMT 2008

   INFO::    Raising window e.g for display control:

   if (widget) {
      // raise/uniconify (or whatever) what we have:
      //
      if (!GTK_WIDGET_MAPPED(widget))
	 gtk_widget_show(widget);
      else
	 gdk_window_raise(widget->window);


-----
Mon Mar 24 23:51:58 GMT 2008

    NOTE to SELF:

    1ao0: fitting ADP fits the ADPs upside-down consistently.
    Hmmm....


----
Tue Mar 25 14:39:35 GMT 2008

    clear this junk:

BEFORE 0x1eaea170
DEBUG:: start of delete-residue-with-altconf n-atoms: 1465
DEBUG:: End of delete-residue-with-altconf n-atoms: 1465
failed to delete residue atoms A 88 :A:
AFTER  0x1eaea170
PASS: Deleting (non-existing) Alt conf and Go To Atom [JED]

* Done.


----
Tue Mar 25 15:01:27 GMT 2008


==4411== Use of uninitialised value of size 8
==4411==    at 0x1C2132DE: clipper::Util::rad2d(double const&) (clipper_util.cpp:156)
==4411==    by 0x1C1FE9FC: clipper::Cell_descr::format() const (cell.cpp:81)
==4411==    by 0x1BD9F301: coot::ShelxIns::debug() const (coot-shelx-ins.cc:1233)
==4411==    by 0x831BEF4: molecule_class_info_t::write_shelx_ins_file(std::string const&) (molecule-class-info-other.cc:4428)
==4411==    by 0x820DE1F: write_shelx_ins_file (c-interface-build.cc:6015)
[snip]
==4411==
==4411== Use of uninitialised value of size 8
==4411==    at 0x3B1AE12: std::ostream::operator<<(double) (in /usr/lib/libstdc++.so.6.0.4)
==4411==    by 0x1C20BED5: clipper::String::String(double, int, int) (clipper_types.cpp:69)
==4411==    by 0x1C1FEA30: clipper::Cell_descr::format() const (cell.cpp:81)
==4411==    by 0x1BD9F301: coot::ShelxIns::debug() const (coot-shelx-ins.cc:1233)


==4411== Source and destination overlap in strcpy(0x1F7DBC40, 0x1F7DBC40)
==4411==    at 0x1B90C51E: strcpy (mac_replace_strmem.c:210)
==4411==    by 0x1C393168: CSSVertex::SetVertex(CMMDBManager*, int, int, int, char*, int, char*, int, char*) (ss_vxedge.cpp:425)
==4411==    by 0x1C396354: CSSGraph::RepairSS(CMMDBManager*) (ss_graph.cpp:483)
==4411==    by 0x1C396865: CSSGraph::MakeGraph(CMMDBManager*) (ss_graph.cpp:379)
==4411==    by 0x1C38F61F: CSSMAlign::GetSSGraph(CMMDBManager*, int, int&) (ssm_align.cpp:147)
==4411==    by 0x1C38F72B: CSSMAlign::Align(CMMDBManager*, CMMDBManager*, int, int, int, int) (ssm_align.cpp:188)
==4411==    by 0x819179B: graphics_info_t::superpose_with_atom_selection(atom_selection_container_t, atom_selection_container_t, int, std::string, std::string, short) (graphics-info-superpose.cc:207)
==4411==    by 0x82483F3: superpose_with_atom_selection (c-interface-superpose.cc:201)


==4411== Mismatched free() / delete / delete []
==4411==    at 0x1B90B8CF: operator delete(void*) (vg_replace_malloc.c:155)
==4411==    by 0x1C3A0A3C: CSuperpose::_superpose(CSSGraph*, CSSGraph*, int&) (ssm_superpose.cpp:2683)
==4411==    by 0x1C3A1194: CSuperpose::SuperposeCalphas(CSSGraph*, CSSGraph*, int*, int*, int, CMMDBManager*, CMMDBManager*, int, int) (ssm_superpose.cpp:2424)
==4411==    by 0x1C38F7C8: CSSMAlign::Align(CMMDBManager*, CMMDBManager*, int, int, int, int) (ssm_align.cpp:200)
==4411==    by 0x819179B: graphics_info_t::superpose_with_atom_selection(atom_selection_container_t, atom_selection_container_t, int, std::string, std::string, short) (graphics-info-superpose.cc:207)
==4411==    by 0x82483F3: superpose_with_atom_selection (c-interface-superpose.cc:201)
==4411==    by 0x1BE55150: _wrap_superpose_with_atom_selection(scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) (coot_wrap_guile.cc:23440)
==4411==    by 0x1BF757A0: scm_gsubr_apply (in /extra/paule/autobuild/Linux-kalypso-fc4-pre-release-gtk2/lib/libguile.so.17.1.1)
==4411==    by 0x1BF66152: scm_dapply (in /extra/paule/autobuild/Linux-kalypso-fc4-pre-release-gtk2/lib/libguile.so.17.1.1)
==4411==    by 0x1BF65656: deval (in /extra/paule/autobuild/Linux-kalypso-fc4-pre-release-gtk2/lib/libguile.so.17.1.1)
==4411==    by 0x1BF62DE3: deval (in /extra/paule/autobuild/Linux-kalypso-fc4-pre-release-gtk2/lib/libguile.so.17.1.1)
==4411==    by 0x1BF63AE3: deval (in /extra/paule/autobuild/Linux-kalypso-fc4-pre-release-gtk2/lib/libguile.so.17.1.1)
==4411==  Address 0x211EACE0 is 0 bytes inside a block of size 68 alloc'd
==4411==    at 0x1B90B5DA: operator new[](unsigned) (vg_replace_malloc.c:138)
==4411==    by 0x1C3A0BF2: CSuperpose::_superpose(CSSGraph*, CSSGraph*, int&) (ssm_superpose.cpp:2617)
==4411==    by 0x1C3A1194: CSuperpose::SuperposeCalphas(CSSGraph*, CSSGraph*, int*, int*, int, CMMDBManager*, CMMDBManager*, int, int) (ssm_superpose.cpp:2424)
==4411==    by 0x1C38F7C8: CSSMAlign::Align(CMMDBManager*, CMMDBManager*, int, int, int, int) (ssm_align.cpp:200)
==4411==    by 0x819179B: graphics_info_t::superpose_with_atom_selection(atom_selection_container_t, atom_selection_container_t, int, std::string, std::string, short) (graphics-info-superpose.cc:207)
==4411==    by 0x82483F3: superpose_with_atom_selection (c-interface-superpose.cc:201)
==4411==    by 0x1BE55150: _wrap_superpose_with_atom_selection(scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) (coot_wrap_guile.cc:23440)





==4411== 30744 bytes in 10 blocks are definitely lost in loss record 452 of 509
==4411==    at 0x1B90B5DA: operator new[](unsigned) (vg_replace_malloc.c:138)
==4411==    by 0x1BBC6624: graphical_bonds_container::add_atom_centres(std::vector<coot::Cartesian, std::allocator<coot::Cartesian> > const&, std::vector<int, std::allocator<int> > const&) (Bond_lines.cc:2972)
==4411==    by 0x1BBC69E5: Bond_lines_container::make_graphical_bonds() const (Bond_lines.cc:1656)
==4411==    by 0x82D95EC: molecule_class_info_t::makebonds() (molecule-class-info.cc:2206)
==4411==    by 0x82E41D4: molecule_class_info_t::install_model(int, atom_selection_container_t, std::string const&, short) (molecule-class-info.cc:392)
==4411==    by 0x818C9FB: graphics_info_t::add_cb_to_terminal_res(atom_selection_container_t) (graphics-info-mutate.cc:76)
==4411==    by 0x81469DE: graphics_info_t::execute_add_terminal_residue(int, std::string const&, CResidue const*, std::string const&, std::string const&, short) (graphics-info-modelling.cc:1436)
==4411==    by 0x8209CD7: add_terminal_residue (c-interface-build.cc:528)


==4411== 8100 (7900 direct, 200 indirect) bytes in 25 blocks are definitely lost in loss record 438 of 509
==4411==    at 0x1B90B39A: operator new(unsigned) (vg_replace_malloc.c:132)
==4411==    by 0x1BD9E9C5: coot::ShelxIns::make_atom(coot::shelx_card_info_t const&, std::string const&, int, int, int, clipper::Cell&) const (coot-shelx-ins.cc:597)
==4411==    by 0x1BDA8730: coot::ShelxIns::read_file(std::string const&) (coot-shelx-ins.cc:375)
==4411==    by 0x832CDAF: molecule_class_info_t::read_shelx_ins_file(std::string const&) (molecule-class-info-other.cc:4453)
==4411==    by 0x820F502: read_shelx_ins_file (c-interface-build.cc:5983)
==4411==    by 0x81B8446: handle_read_draw_molecule_with_recentre (c-interface.cc:333)
==4411==



==4411== 82576 (880 direct, 81696 indirect) bytes in 11 blocks are definitely lost in loss record 193 of 509
==4411==    at 0x1B90B5DA: operator new[](unsigned) (vg_replace_malloc.c:138)
==4411==    by 0x1BBC6842: Bond_lines_container::make_graphical_bonds() const (Bond_lines.cc:1644)
==4411==    by 0x82D95EC: molecule_class_info_t::makebonds() (molecule-class-info.cc:2206)
==4411==    by 0x82E41D4: molecule_class_info_t::install_model(int, atom_selection_container_t, std::string const&, short) (molecule-class-info.cc:392)
==4411==    by 0x818C9FB: graphics_info_t::add_cb_to_terminal_res(atom_selection_container_t) (graphics-info-mutate.cc:76)
==4411==    by 0x81469DE: graphics_info_t::execute_add_terminal_residue(int, std::string const&, CResidue const*, std::string const&, std::string const&, short) (graphics-info-modelling.cc:1436)
==4411==    by 0x8209CD7: add_terminal_residue (c-interface-build.cc:528)
==4411==    by 0x1BE52918: _wrap_add_terminal_residue(scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) (coot_wrap_guile.cc:19697)

----
Thu Mar 27 07:44:50 GMT 2008


    Frank:

   "torsion general - crappy tail?"  I think I meant: why can't one
   use torsion general to swing a whole lot of protein around a main
   chain bond?  If I try, the mouse just clears after the 4th click.
   i.e., all I can move around is a miserable little tail of a
   sidechain, maybe.  Oh wait, I see now: yes, torsion general works
   only inside a residue.  Which is a bit anal, what if I want to
   swivel a whole domain or helix when it's changed from the MR model.
   Other place of nuisance: when modelling around in poor density at
   the end of a chain.

   "Ramachandran boundaries".  Ah yes: any reason why you don't have
   the same smooth boundaries that Richardsons use?  I've seen cases
   just outside your boundaries, but happily inside the Richardson
   one.

   "Views file: #Views".  Yes, the views file coot writes out itself
   doesn't load back.  Reason is (I remember) that the second (or
   third line) contains #Views, which screws up scheme.

   "Save coords: most recently changed".  Oh yes: could you populate
   the defaults (molecule; filename) based on the file most recently
   changed, and not on the one currently active?  These are not always
   the same, and chances are I want to save what I just built at, not
   what I was looking at.

----
Fri Mar 28 10:08:09 GMT 2008

    PRE:
    Use LSQ for NCS matrices.

----
Fri Mar 28 10:46:13 GMT 2008

  PRE:

     Just noticed another slightly weird thing: I mutated a couple of
     residues and added 3 in one NCS copy, then "NCS looped" them to
     the other subunit. The mutated ones in the second subunit had the
     right coordinates & atoms, but were still labelled with the old
     residue type.

     The inserted ones were on the end of the subunit

  Add tests for these.

----
Fri Mar 28 10:48:25 GMT 2008

    PRE:

      Somehow allow me to set that I want "Colour by Chain" on by
      default. (i.e. set-colour-by-chain for future molecules).

    Same for CA mode.

    (Pass default representation type to molecule_class_info_t's
    handle_read_draw_molecule?)

---
Fri Mar 28 10:51:31 GMT 2008

    CNS to coot: script needs a GUI?

----
Fri Mar 28 22:47:43 GMT 2008

Randy Read:
Some time back I sent you a bug report about split-screen stereo.  Don't know
if you've been able to reproduce it, but since then I've worked out the
problems.  Basically, coot doesn't like the "Side by Side (Wall Eyed)" option
any more.  Part of the problem is the saved state.  If the saved state is
Mono or normal "Side by Side", then you're fine -- coot comes up the way you
left it.  (Don't know about hardware, as I don't have access to an
appropriate machine.)  If the saved state is "Side by Side (Wall Eyed)", then
Draw -> Stereo... brings up a box claiming that you're still in that mode,
but the view is a mono one.  The only way to get wall-eyed stereo from this
state is to click "Mono" then "Side by Side" then finally "Side by Side (Wall
Eyed)".  If you come up in Mono mode, you also can't go directly to
wall-eyed -- first you have to go into normal side-by-side mode.


-----
Sat Mar 29 23:13:39 GMT 2008

    Documentation - including the functions should all be in one document
    (texi).

----
Sat Mar 29 23:15:20 GMT 2008

    update the density fit graph on delete residue (e.g. water).

---
Sun Apr  6 22:01:39 BST 2008

    Write a wiki script for munging/unmunging the atom names of NADP/H
    so that it can refine.

----
Mon Apr 14 09:33:36 BST 2008

Lothar Esser

I am using coot 0.5 pre 958 and noticed that after resizing the
window of the ramachandran plot and possibly zooming in (with the
right mouse) the scroll bars don't allow to pan over the plot. Only
under extreme zoom, the scroll bars allow a little bit of
adjustment. I have over 2000 residues and need to zoom and scroll a
bit if I want to click on residues.

I do get error messages on the
terminal that might help:

** CRITICAL **: file gtk-canvas.c: line 3518
** (gtk_canvas_set_pixels_per_unit): a ssertion `n >
** GTK_CANVAS_EPSILON' failed.

The same message repeats presumably every
time I scroll(?) or perphas zoom.

Also, I noticed after a long search that the -key zooms out after I
had zoomed in with the right-mouse. Could zooming out be added to the
mouse perhaps like Shift-right-mouse ?

Another feature of coot would be good: Show ramachandran plots by
chains that the user select i.e. a plot with one chain at a time.

---
Fri Apr 18 17:43:12 BST 2008

    There is a EM software wiki (scripps?)

-----
Mon Apr 14 09:41:32 BST 2008

    can findligand be use to find just blobs (no input model?).  If
    not, make it so.

----
Mon Apr 14 09:42:28 BST 2008

    There is a server with uremediated files - from Kim?
    Use this to validate new software.

-----

PISA:

Buried surface area (average in pdb is about 40%).

Test for connected crystal

And min number of interfaces per chain (needs to be at lest 3 or the
crystal is not held in 3 dimensions)


---
Mon Apr 14 10:57:18 BST 2008

    add a function to display (a set of) spheres,
    radius, position, colour

----
Mon Apr 14 11:29:17 BST 2008

    Jane Richardson

1rb1 bad clashscore.  embedded waters.  "Tassos' waters - from
ARP/warp

1k8z: geometry outlier

----
Mon Apr 14 11:43:59 BST 2008

  question to self: can you make a packing check quick?
  (I guess not).


----
Mon Apr 14 23:07:06 BST 2008

    chat with Nigel M.
    Use CONNECT records in bonding (if possible)

-----
Tue Apr 15 14:02:16 BST 2008

How to run elal:

$ elal -pdb ~/data/rnase/tutorial-modern.pdb -map tmp.map -lib $warpbin/elal.lib

[there has to be a calculated map too, somewhere]

For checking carbohydrates:

wwww.glycosciences.de/tools/pdb-care


"ramachandran plots for carbohydrates"

however, need to do it for each linkage type.

----
Tue Apr 15 15:25:38 BST 2008

    Kim says Hursthouse for Portsmouth, Southhampton etc
    small molecule crystal structures.

* eCrystals

----
Wed Apr 16 11:23:49 BST 2008

   Add internal packing function? (bumps)

----
Wed Apr 16 11:36:44 BST 2008

    What is the RSR Z score from EDS?
    Can we make something similar?

    Correlation?


----
Fri Apr 25 12:39:14 BST 2008

   When the startup script is not given as a dialog option but not
   accepted, then, on
   exiting, don't create a new state file.

    (better would be to give a GUI on exiting, shall we overwrite?)


---
Mon Apr 28 18:21:07 BST 2008


valgrinding migels rl shelx file:

(saving as pdb)

==12236== 621024 (187824 direct, 433200 indirect) bytes in 1092 blocks are definitely lost in loss record 302 of 312
==12236==    at 0x1B90B39A: operator new(unsigned) (vg_replace_malloc.c:132)
==12236==    by 0x1BD6A1B4: coot::util::deep_copy_this_residue(CResidue const*, std::string const&, short) (coot-coord-utils.cc:1414)
==12236==    by 0x1BDADCB8: coot::reshelx(CMMDBManager*) (coot-shelx-ins.cc:1961)
==12236==    by 0x1BDAE05F: coot::ShelxIns::write_ins_file_internal(CMMDBManager*, std::string const&) const (coot-shelx-ins.cc:997)
==12236==    by 0x1BDAF90F: coot::ShelxIns::write_ins_file(CMMDBManager*, std::string const&) (coot-shelx-ins.cc:988)
==12236==    by 0x8341182: molecule_class_info_t::write_shelx_ins_file(std::string const&) (molecule-class-info-other.cc:4437)
==12236==    by 0x8308DC6: molecule_class_info_t::save_coordinates(std::string) (molecule-class-info.cc:4228)
==12236==    by 0x81C8F50: save_coordinates (c-interface.cc:4042)
==12236==    by 0x81E3E45: save_coordinates_using_widget (c-interface-gui.cc:3248)
==12236==    by 0x82E83F7: on_save_coord_ok_button_clicked (callbacks.c:2190)
==12236==    by 0xAC4816: g_cclosure_marshal_VOID__VOID (in /usr/lib/libgobject-2.0.so.0.600.4)
==12236==    by 0xAB9284: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.600.4)

----
Thu May  1 20:08:33 BST 2008

    When waters are added with the W keybinding, let us know (with a
    dialog) if a "Pointer Atoms" molecule was created (may be pointer
    atom molecule was not set?)

----
Thu May  1 20:26:28 BST 2008

    1a02: place helix here at (9.2 36.6 28.3)

    1env: place helix here - many places.  Lots of errors.

    1xb7_sigmaa.mtz 2FOFCWT PH2FOFCWT (-16.5184307098389 50.2622299194336 19.386697769165)

       -> Helix overshoot


----
Thu May  1 20:55:01 EDT 2008

    Fixed atoms still fail - e.g. on TMC in 1e2k

-------

   When activating the restriants editor dialog, make the option menu
   be the residue type at the centre of the screen.

   Priority: High
   Dificultly: Easy


-----

    A must before 1.0:

    revist add strand here,
    check in low res maps.
    Try other orientations of the cylinder
        score more badly atoms in negative density.

----
Sat May  3 11:33:52 EDT 2008

    Maria Chern:

    Can I have "view drag" on middle mouse, rather than ctrl left-mouse?

    Question to self: will that fix the single atom drag vs view drag
    problem that drives Erik insane?

-----
Sat May  3 12:46:24 EDT 2008

    c-interface-info.cc:3081 chiral volume restraint is checked
    against 7.  Should it be 6, because there no sigma is needed for a
    chiral volume restraint?

-----
Sat May 10 07:22:54 CST 2008

    Consider a test for wiggly ligands.

----

  For Sabine Schneider:

  How about "ideal geometry" restraints, that try to idealize torsion
  angles to A or B form geometry?

-----

   How does side by side stereo work for maps when using (default on Mac)
   (set-display-lists-for-maps 1)

-----

   Do NCS map average. then denisty fit analysis vs the average map -
   the scores go down vs the first map (adding not averaging suggests
   eleanor?)

   The NCS average *is* being averaged.  It could a result of the
   density outsite the averaged block being set to zero.

----

   look at graphics-info-t::execute_add_terminal_residue() to see
   masking a map by atoms around a point.

----

   ask Stuart about line 113 in mmdb_chain.h
   virtual pstr GetEntryID()

   line 133 mmdb_symop.cpp CSymOp::GetSymOp()


----
Tue Jun  3 16:19:39 BST 2008

    valgrinding a greg test run:


==13600== 3 errors in context 55 of 212:
==13600== Invalid read of size 1
==13600==    at 0x42048AE: coot::protein_geometry::try_dynamic_add(std::string const&, int) (protein-geometry.cc:2085)
==13600==    by 0x42052F2: coot::protein_geometry::have_dictionary_for_residue_type(std::string const&, int) (protein-geometry.cc:2408)
==13600==    by 0x80FEDAC: graphics_info_t::check_dictionary_for_residues(CResidue**, int) (graphics-info-modelling.cc:484)
==13600==    by 0x810463A: graphics_info_t::copy_mol_and_refine(int, int, int, std::string, int, std::string, std::string, std::string) (graphics-info-modelling.cc:265)
==13600==    by 0x8106882: graphics_info_t::copy_mol_and_regularize(int, int, std::string, int, std::string, std::string, std::string) (graphics-info-modelling.cc:107)
==13600==    by 0x8106CF7: graphics_info_t::regularize(int, short, int, int) (graphics-info-modelling.cc:688)
==13600==    by 0x819FF5E: regularize_zone (c-interface-build.cc:5915)
==13600==    by 0x44391A0: _wrap_regularize_zone(scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) (coot_wrap_guile.cc:14018)
==13600==    by 0x4559B90: scm_gsubr_apply (gsubr.c:221)
==13600==    by 0x4540523: scm_dapply (eval.c:4915)
==13600==    by 0x4542724: deval (eval.c:4364)
==13600==    by 0x4543A20: deval (eval.c:3384)
==13600==  Address 0x6145E14 is 12 bytes inside a block of size 14 free'd
==13600==    at 0x4023096: operator delete(void*) (vg_replace_malloc.c:244)
==13600==    by 0x56B890C: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==13600==    by 0x56BA7B0: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==13600==    by 0x42048AD: coot::protein_geometry::try_dynamic_add(std::string const&, int) (protein-geometry.cc:2084)
==13600==    by 0x42052F2: coot::protein_geometry::have_dictionary_for_residue_type(std::string const&, int) (protein-geometry.cc:2408)
==13600==    by 0x80FEDAC: graphics_info_t::check_dictionary_for_residues(CResidue**, int) (graphics-info-modelling.cc:484)
==13600==    by 0x810463A: graphics_info_t::copy_mol_and_refine(int, int, int, std::string, int, std::string, std::string, std::string) (graphics-info-modelling.cc:265)
==13600==    by 0x8106882: graphics_info_t::copy_mol_and_regularize(int, int, std::string, int, std::string, std::string, std::string) (graphics-info-modelling.cc:107)
==13600==    by 0x8106CF7: graphics_info_t::regularize(int, short, int, int) (graphics-info-modelling.cc:688)
==13600==    by 0x819FF5E: regularize_zone (c-interface-build.cc:5915)
==13600==    by 0x44391A0: _wrap_regularize_zone(scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) (coot_wrap_guile.cc:14018)
==13600==    by 0x4559B90: scm_gsubr_apply (gsubr.c:221)


==13600==
==13600== 1 errors in context 5 of 212:
==13600== Invalid read of size 8
==13600==    at 0x828797E: molecule_class_info_t::closest_atom(coot::Cartesian const&, bool) const (molecule-class-info.cc:330)
==13600==    by 0x8287AC2: molecule_class_info_t::closest_atom(coot::Cartesian const&) const (molecule-class-info.cc:313)
==13600==    by 0x81877BE: active_atom_spec() (c-interface-info.cc:1108)
==13600==    by 0x818E856: active_residue() (c-interface-info.cc:1139)
==13600==    by 0x442DD86: _wrap_active_residue() (coot_wrap_guile.cc:29092)
==13600==    by 0x4542A78: deval (eval.c:4122)
==13600==    by 0x4544012: deval (eval.c:3635)
==13600==    by 0x4544012: deval (eval.c:3635)
==13600==    by 0x45406C6: scm_dapply (eval.c:4997)
==13600==    by 0x45408B2: scm_apply (eval.c:4796)
==13600==    by 0x45454DC: scm_call_0 (eval.c:4651)
==13600==    by 0x45A2F1F: scm_body_thunk (throw.c:356)
==13600==  Address 0x5BBCB78 is not stack'd, malloc'd or (recently) free'd
==13600==


==13600== 1 errors in context 6 of 212:
==13600== Conditional jump or move depends on uninitialised value(s)
==13600==    at 0x80E8E1A: clipper::Map_stats::Map_stats<clipper::Xmap<float> >(clipper::Xmap<float> const&) (map_utils.h:123)
==13600==    by 0x40465EA: coot::ligand::find_clusters_internal(float, std::vector<clipper::Coord_orth, std::allocator<clipper::Coord_orth> > const&) (ligand.cc:774)
==13600==    by 0x40471E1: coot::ligand::find_clusters(float) (ligand.cc:762)
==13600==    by 0x81D2E42: execute_ligand_search_internal() (c-interface-ligands.cc:953)
==13600==    by 0x81D3A11: execute_ligand_search (c-interface-ligands.cc:854)
==13600==    by 0x4435F16: _wrap_execute_ligand_search() (coot_wrap_guile.cc:18153)
==13600==    by 0x4542A78: deval (eval.c:4122)
==13600==    by 0x4544012: deval (eval.c:3635)
==13600==    by 0x4544012: deval (eval.c:3635)
==13600==    by 0x45406C6: scm_dapply (eval.c:4997)
==13600==    by 0x45408B2: scm_apply (eval.c:4796)
==13600==    by 0x45454DC: scm_call_0 (eval.c:4651)


==13600==
==13600== 1 errors in context 1 of 212:
==13600== Invalid read of size 4
==13600==    at 0x49FF2A9: CResidue::GetAtomTable(CAtom**&, int&) (mmdb_atom.cpp:2568)
==13600==    by 0x82879DC: molecule_class_info_t::closest_atom(coot::Cartesian const&, bool) const (molecule-class-info.cc:343)
==13600==    by 0x8287AC2: molecule_class_info_t::closest_atom(coot::Cartesian const&) const (molecule-class-info.cc:313)
==13600==    by 0x81877BE: active_atom_spec() (c-interface-info.cc:1108)
==13600==    by 0x818E856: active_residue() (c-interface-info.cc:1139)
==13600==    by 0x442DD86: _wrap_active_residue() (coot_wrap_guile.cc:29092)
==13600==    by 0x4542A78: deval (eval.c:4122)
==13600==    by 0x4544012: deval (eval.c:3635)
==13600==    by 0x4544012: deval (eval.c:3635)
==13600==    by 0x45406C6: scm_dapply (eval.c:4997)
==13600==    by 0x45408B2: scm_apply (eval.c:4796)
==13600==    by 0x45454DC: scm_call_0 (eval.c:4651)
==13600==  Address 0x3E10912E is not stack'd, malloc'd or (recently) free'd
==13600==

---
Tue Jun  3 17:14:33 BST 2008

    Make a new source file with the widget work in c-interface-info.cc
    c-interface-info-gui.cc


----

    JB:

    Refine by sphere. IMPORTANT!

    Render Geometry objects in raster3d

    For beauty:
      Consider putting a std::vector<coot::generic_display_object_t>
      generic_objects into raytrace_info_t, to store info for generic
      objects in ray trace info.


----


    check the number of saves on Eigen flips.  On undoing, it seems I
    have to undo twice for each step.

    Priority: Critical.


----
Thu Jun  5 16:17:38 BST 2008

    Conversation with Robert von Dreele:

    Create a "What's New in Coot" button - which gets the latest
    Release Notes from the web server and displays it in a text
    widget.

    Should be done in a sub-thread


----
Sat Jun  7 03:45:44 BST 2008

MolProbity: all-atom contacts and structure validation for proteins
and nucleic acids

  Ian W. Davis1, Andrew Leaver-Fay2, Vincent B. Chen1, Jeremy
  N. Block1, Gary J. Kapral1, Xueyi Wang2, Laura W. Murray1, W. Bryan
  Arendall, III1, Jack Snoeyink2, Jane S. Richardson1 and David
  C. Richardson1,*

  Sugar puckers

     RNA sugar pucker (C3' endo or C2' endo) is strongly correlated to
     the perpendicular distance between the following (3') phosphate
     and either the plane of the base or the C1'-N1/9 glycosidic bond
     vector. Incorrectly chosen sugar puckers also often result in
     out-of-range values for the epsilon dihedral. This is important
     information, because a sugar pucker is very difficult to
     determine directly from the electron density at resolutions
     typical for large RNAs. MolProbity checks epsilon angles and
     checks the modeled sugar pucker against the base-phosphate
     distance; it flags outliers as potentially having the wrong
     pucker.

  Nucleic Acids Research, 2007, Vol. 35, No. suppl_2 W375-W383

------
Sun Jun 15 15:40:10 BST 2008

    Activate readline in guile build (at least for my computers!)


------
Wed Jun 18 02:51:47 BST 2008

    "Mark all for Close" button in the close molecule dialog.

----
Wed Jun 18 12:46:02 BST 2008

    Distances and angles dialog is a transient(?) and needs to be
    position-saved like the other transients.

-----
Wed Jun 18 22:33:25 BST 2008

    Fun: How about a script to make ray traced images of ligands at
    active sites.  Use kinases like these (find others that match but
    have different ligands).  Need to find structures with data of
    course.  Consider using j-multi-read, get the matrices and apply
    them to their maps.  Maybe that is not needed, because we are not
    going to look at the overlapped maps anyway, just ligands in the
    binding sites.

    Data needs to be formatted differently in the
    text control file - we need a specification of the mtz file and
    column labels too.

coot-download/3bv2.pdb
coot-download/2zb0.pdb
coot-download/3Coi.pdb

-----
Wed Jun 18 22:40:45 BST 2008

   RAPPER notes:

   Loop modelling with section not currently modelled in input PDB:

rapper params.xml model-loops --pdb "test.pdb" --map "test.map" --chain-id "B" --models "1" --cryst-d-high "1.77" -seq ~AAA~ --start 705 -stop 708 --use-CCP4i-file-name true --ccp4i-file-name "rapper_1" --runs-dir "test_dir" --edm-fit true --sidechain-mode smart --sidechain-radius-reduction 0.75 --sidechain-library RAPPER-DIR/data/richardson.lib

   Loop modelling with section already modelling in input PDB file using electron density:

rapper params.xml model-loops --pdb "test.pdb" --map "test.map" --chain-id "B" --models "1" --cryst-d-high "1.77" --start 705 -stop 708 --use-CCP4i-file-name true --ccp4i-file-name "rapper_1" --runs-dir "test_dir" --edm-fit true --sidechain-mode smart --sidechain-radius-reduction 0.75 --sidechain-library RAPPER-DIR/data/richardson.lib

-----
Thu Jun 19 09:13:48 BST 2008



==27246== Invalid read of size 1
==27246==    at 0x4007203: strlen (mc_replace_strmem.c:242)
==27246==    by 0x709A16A: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.10)
==27246==    by 0x8178864: make_directory_maybe (c-interface.cc:7080)
==27246==    by 0x80FA10C: c_inner_main (c-inner-main.c:246)
==27246==    by 0x410392C: invoke_main_func (in /home/juditd/coot-build-3/autobuild-installed-pre-release-gtk2/lib/libguile.so.17.1.2)
==27246==    by 0x40D6409: c_body (in /home/juditd/coot-build-3/autobuild-installed-pre-release-gtk2/lib/libguile.so.17.1.2)



----
Sat Jun 21 01:55:45 BST 2008

    Joel Bard:

    When coming out of side-by-side stereo, the map disappears -
    something to do with the GL context the display list is generated
    in?

    Priority: Medium/Low  (fix refine by sphere first)



----
Sat Jun 21 12:39:55 BST 2008


   "Triple refine" (manual-refine-residues 1) at the C terminus should refine
   2 residues (like autozone does, I think).


----
Sat Jun 21 14:56:11 BST 2008

running loopy:

$flex_wARP_warpbin/loop -paramfile=rnase_2_1_com.tmp

---
Wed Jun 25 16:40:23 BST 2008

    a function similar to shell-command-to-string, but that takes
    command line args and data lines and returns a list of strings.

    Use it in get-refmac-version.


---
Mon Jun 30 15:20:48 BST 2008

    asc_to_graphics() and all of atom-utils can go (need to fix up
    skeleton/BuildCas.cc)

    For 0.6


-----
Wed Jul  2 08:27:50 BST 2008

    Do rotamers. (55B)

    Do Residue Info.  Intermediate atoms disappear.  Why?

----
> > In message <B0848263-CEEB-48EF-B991-4ED71F81E9D4@idi.harvard.edu>
> > Jianghai Zhu
> > <jzhu@idi.harvard.edu> writes:
> >>
> >> I am using the nightly build of coot prerelease.  I found out that
> >> every time when I switch the stereo on and off, I lose the electron
> >> density map.  If I scroll the mouse, I can bring the map back.  But
> >> if
> >> I have multiple maps on display, then only one map can be brought
> >> back.

----
Thu Jul  3 12:44:23 BST 2008


    on_draw_hydrogens_yes_radiobutton_toggled

    This draw hydrogens thing should be a single check button, not 2
    radio toggle buttons.

    Get rid of the "Apply" button.

    Low priority


----
Mon 14 Jul 02:17:01 2008 BST


   molecule_class_info_t::handle_read_draw_molecule() has:

      // update the maps so that they appear around the new centre.
      //
      if (reset_rotation_centre)
	 for (int ii=0; ii<g.n_molecules(); ii++) {
	    g.molecules[ii].update_map();
	 }

   It should not be there.  That should be outside of the
   molecule_class_info_t class.


-----

    How shall I fix the ramachandran restraints?

I need to investigate grad.tab when I try with a triple in the
graphics.

A hidden scripting interface to turn on numerical gradients?  Put that
in graphics-info-modelling and copy_mol_and_refine() after we
make_restraints().


----
Mon Jul 14 15:23:21 BST 2008

    revision 1274: before (big) messing with torsion restraints

---
Mon Jul 14 23:20:37 BST 2008

    Phil Evans:

    new waters are marked as HETATMs?  They should be.

----
Thu Jul 17 13:43:34 BST 2008

in void
on_refine_params_use_torsions_checkbutton_toggled (GtkToggleButton *togglebutton,
						   gpointer         user_data)

do we need to unset the Rama angle refinement?  (and toggle the box too?)


----
Thu Jul 17 23:33:32 BST 200


int
coot::restraints_container_t::make_flanking_atoms_rama_restraints(const protein_geometry &geom)

	 // super careful would mean that we check the link type of
	 // both pairs before calling this function:


---
Fri Jul 18 12:33:10 BST 2008

   Penelope build-hardy:

   0-coot.state.scm-fails-to-reset-view

---
Fri Jul 18 14:55:30 BST 2008

    Get a residue.  do b factor analysis

    copy the residue. do b factor analysis.

    delete some atoms from mol 1.  the wrong plot updates.

----

to get what_check output for all pdb entries

www.cmbi.ru.nl/pdbreport/ab/1abc/pdbout.txt


-----
Tue Jul 22 16:06:11 BST 2008

    Robbie J suggests:

    Check and fix nomenclature errors for ARG.

    Put Fix nomenclature errors into the GUI.

    Schedule this for 0.6.


------
Wed Jul 23 12:28:06 BST 2008

    Think about adding Thomas' Phi/Psi (energy) plots (of the torsions
    around the glycosidic linkage) and plotting the points for the
    linked carbodydrates in the molecule.


----
Thu Jul 24 10:40:06 BST 2008

    1mn8 D52 do-180-degree-side-chain-flip must work!
    chi5 must be recognised.


------

   a BMA in 3d2u: trying to refine a BMA, should Coot on the fly
   generate the BMA full dict from the minimal description?


-----
Mon Jul 21 12:33:21 BST 2008


in molecule_class_info_t::handle_read_draw_molecule():


      // update the maps so that they appear around the new centre.
      //
      if (reset_rotation_centre)
	 for (int ii=0; ii<g.n_molecules(); ii++) {
	    g.molecules[ii].update_map();
	 }


    and symmetry likewise.

    Bleugh - needs a fix.  Needs to be in
    handle_read_draw_molecule_with_recentre in the c-interface
    function


---
Mon Jul 28 23:36:45 BST 2008

    function to strip spaces from a string (scheme).

----
Mon Jul 28 23:39:48 BST 2008

    rework const char *atom_info_string(int imol, const char *chain_id, int resno,
			     const char *ins_code, const char *atname,
			     const char *altconf)

    to return a SCM.  And test that it gives #f when atom not exist.



-----
Tue Aug  5 23:11:18 BST 2008

    Here's another rama test.

    Turn on Rama restraints. turn on helical restraints.  try to turn
    residues 84 to 93 into a helix.  (you can cut them out from the
    rest of the protein to make things clearer).

----
Wed Aug 13 12:44:28 BST 2008

    It would be nice if the scripting window(s) were available via
    some sort of (iconfied?) combo box in the horizontal toolbar.

    rajan@mbu.iisc.ernet.in 12 Aug 2008.

----
Wed Aug 13 12:52:23 BST 2008

    Fix up the atom ordering in modified (added to) residues
    Steven Sheriff 12 Aug 2008.


---
Thu Aug 14 23:18:24 BST 2008

    EJD: I want to do an atom selection for my Ramachandran
    Plot. (e.g. I want to see just one chain)


---
Mon Aug 18 16:15:01 BST 2008

    How about a "fast save" that saves pdb files with modifications,
    and the state file... bound to a key.


----
Fri Aug 22 18:24:20 BST 2008

    IUCr: make a GUI interface to mutate-by-overlap.



-----
Tue Sep  2 09:53:52 JST 2008

    what happens when you try to rigid body refine an a fragment from
    ribosome (or something big)?

    If utter slowness, consider introducing a function to turn off
    fixed-atom masking.


---
Wed Sep 10 13:43:57 BST 2008

    When rotating atom in chi or rotamers, change the aniso B values too.

---
Thu Sep 11 07:18:38 BST 2008

    Reasons why the builds fail:

    o because the sourceforge host for the gtkglext package disappeared
      (dynamic/direct hostname)

    o Ran out of memory, causing the compiler to crash (I'd forgotten
      to add swap)

    o Forgotten to add new files to the svn repo


---
Sun Sep 14 09:49:35 BST 2008

    Failures/Issues at the BCA Summer School

   o Recover session didn't work - "Nothing to Recover".

   o "Add Strand here" failed - dictionary of structures, either
     didn't exist or was in the wrong place:
     C:\share\coot\ss-reference-structure..  found 0 pdb files

   o Rotamer probability tables not found - falling back to simple
     (confusing) rotamer probabilities
     C:\msys\home\bernhard\autobuild\MINGW..\share\coot\rama-.. not found

   o Refmac button failed

----
Sun Sep 14 10:45:38 BST 2008

    There is a dialog for globularize protein.  It needs to be
    activated. (Some work).

----
Sun Sep 14 12:32:23 BST 2008

    Note: the right way to set an active menu item for an option menu
    is in fill_option_menu_with_undo_options().


----
Tue Sep 16 12:56:16 BST 2008

    Note: Processes for automated builds/testing

 o The process that checks out the latest sources, compiles the code
   and publishes a source tar file, the build log (for building
   problems) and build-from-source success status

 o The build+test+tar+(copies+)publish process itself - build-it, runs
   on all up to hosts several times a day

 o The process that cleans up the build directory - every day, deletes
   everthing more than 7 day old

 o The process that deletes "old" pre-release build tar files from the
   web - runs every day, deleting everything more than 30 days old

 o The process that makes a web page from the build results - runs
   every 5 minutes, examining results from fedrated builds


---
Tue Sep 16 13:22:03 BST 2008

    key bindings

* Done

    non-clickable molecule

* Done (apparently)

    molprobity dots problem

* Done.

    render graphical objects

* Done.


-----
Thu Sep 11 15:43:22 BST 2008

    Warn when making a screenshot of a density map that is dark blue.

----
Thu Sep 18 13:01:38 BST 2008

    Add text to Raster3D input.r3d

----
Mon Sep 22 17:53:14 BST 2008

    "Cocktail test this blob" vs 200 candidates (to be addeded to
    distro).  Allow the user to add their own ligands.

    Medium to high importance.


----
Tue Sep 23 09:52:40 BST 2008

[Note to self, rigid body fit is not working/did not complete? after
ligand fitting, should fit against masked map (the one that gets
exported to graphics after ligand fitting has completed].

[Note to self, make a set of slides for these]

----

Mon Oct  6 13:56:30 BST 2008
PRE RELEASE CHECKS

Does ligand fitting work?
Does torsion bond hilighting work?

----
Wed Oct  1 14:14:26 CEST 2008

   What is Wadley et al. RNA torsion angles? P and C4'

   Mentioned by Tim Grune

----
Fri Oct  3 15:23:51 CEST 2008

  o Note: Randy says that the maps from phenix autobuild don't work -
  all red in the validation (traffic lights?) - I guess that the maps
  are scaled up.

----

   For a tutorial: design a drug in libcheck/sketcher and fit it to
   the density - use something from the PDB.

* How about APN/aspirin?

---
Mon Oct  6 13:56:44 BST 2008

	It's not the algorithms

   After the release, there are no pre-release source tars, so the
   build web page builder fails (a list-ref of a #f list)

   Python 2.5.2 build tests are failing with sendmail on FC5 (after
   re-install?)

   Crash on CentOS 4 machines when trying to read svgs

   Trying to separate python build logs from non-python build
   logs. Problems! overlapping dependencies, test the tar file and
   transfer it - many fixes to sort out.

   Coot builds on 32 and 64 bit systems.  In which directory should
   the libraries go?  By convention, 32 bit libs in prefix/lib and 64
   bit libs in prefix/lib64.  How is this sorted out in the configure?
   Buy using an autoconf macro AC_LIB_PREPARE_MULTILIB.  Where is this
   provided? In a recent version of gettext (more recent that fink
   currently provides).  So on every build system we have to get (e.g
   from the pre-build package e.g. Ubuntu intrepid) or downlaod and
   install gettext manually and point the autogen (that run aclocal and
   autoconf) to use the macros in the files installed from gettext.

   I wanted to check that the torsions in ligand conformation were
   being correctly set.  I needed a function therefore to return a
   torsion to the scripting level - given a set of atom specifiers.
   So first a wrote a test that tested that the torsion generation
   function worked - did it fail properly when the (some of) the atoms
   were not correctly specified (i.e. not in the molecule).  When that
   was working, I could write a test to do the ligand fitting and
   check the torsions of the best fitting (hopefully correctly
   fitting) model.



---- Wed Oct 8 14:11:40 BST 2008

   coot-shelx-ins.cc
   // 20081008 allow for a site occupancy factor on the PART line
   // but then throw it away.  Not good. Should fix at some stage.

---
Fri Oct 17 13:43:26 BST 2008

   The crash catcher should check that the core belongs to coot before
   giving dialog with text. e.g. it fails to read the correct core on
   jackal (run from ~).

---
Fri Oct 17 14:13:50 BST 2008

   main.cc:
   // else we need to pass cld.alternate_splash_screen_file_name
   // to a function that accepts a file_name a makes a splash
   // screen.  Hmm..

----
Thu Oct 23 11:54:39 BST 2008

   It would be nice if baton building would orient as it translates
   so that the baton is along the screen Y.

----
Sat Oct 25 03:11:07 BST 2008

  In the conformer generation, generate many models first, then
  select the top N for energy minimization.

  Instead of search the maps for ligand sites, try to position the
  ligand at a give postion (e.g. the screen centre).

  Try a 27 pt box search around the centre position.  Try different
  rigid body angles at the box points.


----
Tue Oct 28 20:14:17 GMT 2008

  on reading the ribosome structure, 99% of 110 - (about 2) seconds is
  spend here:

	MMDBManager->ReadCoorFile(pdb_name.c_str());

---
Wed Oct 29 08:16:59 GMT 2008

   Frank:

     This one is quicker: are you able to colour text in the Display
     Manager?  In which case it would be handy to have the text for
     the map objects coloured according to map type, e.g. blue for
     sigmaA map, red for difference map (info you can infer from the
     mtz?), and even green for other maps (usually
     experimental/averaged).

   Yes, except use the background color, I think.  And how about a
   button that is half red, half green?


---
Wed Nov  5 17:47:55 GMT 2008

    For restraints editor hilighting: generate graphics objects

    restraints_editor_hilight_bond(residue_type, atom_name_1, atom_name_2)
    restraints_editor_hilight_angle(residue_type, atom_name_1, atom_name_2, atom_3)
    restraints_editor_hilight_atom(residue_type, atom_name_1)
           draw a ring around the atom say.  Maybe in 2 planes

    torsion and plane are a lot more difficult


---
Fri Nov  7 08:07:07 GMT 2008

    3bmw: difference map 11, near 645 ILE, surely there is something
    wrong with the "peak next to molecule" algorithm?

----
Sun Nov 16 16:42:42 GMT 2008

   look at xnee for testing the gui (needs linux).

----
Sun Nov 16 16:46:20 GMT 2008

   run test_yourself() for rotamer_probability_tables needs to be
   added to test suite.


---
Sat Nov 29 15:08:44 GMT 2008

   In make_link_restraints() we need to make sure that we are sensibly
   setting the fixed atom/residue flag.

   Where is the test that these residues are L-peptides? in
   add_rama()?  No.  So it should be in make_rama_triples() then.
   Perhaps.  But it should be somewhere.

---
Thu Dec  4 16:27:58 GMT 2008

   Conversation with Ed:

  o Nice to have ^S bound to Save Coords (Add accelerator to gui)

  o Can you generate "arrow key-press events" from rotating the
  PowerMate?  Surely yes, it's just a matter of getting the power mate
  in the mode to generate the characters.  Ah.. but no, the powermate
  can generate 3 key presses basically (in Bills example, F1, F2, F3)

   Hmm...

  o What about binding PowerMate to chi angle motion - which is moving
    the mouse a bit.  Surely we can do that?

* Yes we can.

---
Sun Dec  7 19:36:04 GMT 2008

   simple-restraint.hh

	    // 20081207: don't do this here now - because the
	    // memory/selection is deleted again in
	    // clear_up_moving_atoms(). It *should* be done here of
	    // course, but we'll save that for the future.
	    //
	    //if (atom) {
	    // mol->DeleteSelection(SelHnd_atom);
	    // atom = NULL;
	    // }

   NOTE: In future problems of memory when using a CRresidue * vector
   could be due to restraints_container_t deconstuctor.

---
Wed Dec 10 10:16:05 GMT 2008

	Add Use of 1hvv NCS residue range maps to advanced tutorial.

---
Thu Dec 11 12:55:32 GMT 2008

   After an mmdb read, delete chains that don't have atoms in them.
   (created by LINK? records in the header).

---
Fri Dec 12 00:01:19 GMT 2008

   When writing out the state file (header?) only include pdb
   molecules that can be read.

   e.g. after using copy fragment, but no saving of the molecule.

----
Fri Dec 12 00:07:18 GMT 2008

   Tutorial II ideas:

   Find and fix the bad trans bond in 1h4p

---
Fri Dec 12 13:23:52 GMT 2008

   Roberto Steiner wants CA + ligs + waters mode.


---
Mon Dec 15 14:07:50 GMT 2008

INFO::
	How to do a release
	How to make a release

   o Up to date with Bernie's commits?
   o Run the damn tests - don't be lazy
   o make check
   o before the release commit, make sure it builds and passes tests on cluster
   o New entry in ChangeLog
   o Make sure RELEASE-NOTES are up to date and add a ----- marker at the top
     Make sure the release is called Release, not pre-release
   o change the version in coot.appdata.xml - add release notes
   o change the version in configure.ac
   o change the version (image file name) in src/new-startup.cc
   o change the PACKAGE_VERSION in CMakeLists.txt
   o Correct the version in the about_dialog in the coot-gtk4.ui file
   o Artists acknowledged in glade/aboutdialog?
   o Use []
        Change the splash screen?
        Change the release name in the About dialog (aboutdialog) (not needed for bug fix)
        and copyright years.
        git add the new splash screen pixmap
        Change the pixmaps/Makefile.am for the current splash screen image

     configure with configure-it-for-release
     make clean && make
   o make dist to make a tar-ball
        Use this to untar and make a build - this will test that the tarball has
        all the files before commit:
        cd ../build-coot-1.1
        and untar it there
        copy into the new directory the script configure-it.
        configure and make check
   o git status # what did you forget to add?
   o are the shaders up to date?
   o Transfer the dist tar to hal and build it there
   o git commit -a
   o git tag Release-0.x.y
   o git push origin Release-0.x.y  # publish the tag
   o git push # push the actual release commit
   o Update latest version info on coot web page:
     cd Projects/coot/web/index.html
   o Release on Github
   o update libcootapi documentation
   o update coot python documentation
   o Blog post
   o Mail mailing list

---
Mon Jan 12 00:17:05 GMT 2009

   INFO:: run libcheck from a pdb file:

Y
_FILE_L /home/paule/ccp4i/rnase/STU_bondlist.cif
_MON STU
_SRCH N
_FILE_O /home/paule/ccp4_scr/RNAse_22
_REF
_END

Fine but where did /home/paule/ccp4i/rnase/STU_bondlist.cif come from?


---
Mon Jan 12 17:26:40 GMT 2009


   INFO::

   Nice example of sphere refinement:

   set 37 B (or A) to rotamer 1.

   Do "r" refinement.  -> Wrong solution

   Do "R" (sphere) refinment, PHE gets kicked and goes to the right
   solution (I wonder if refmac would do that?)

   # not any more - they both work.

---
Mon Jan 12 22:43:50 GMT 2009

	in wiggly-ligands, add an option to invert chiral centres
	(just in case the chemist made the wrong thing).


----
Tue 20 Jan 2009 10:13:19 EST

    Heres a failure that should not be...

    Get monomer -> PAD.

    Delete residue 3 from 1a72 and try to fit libchecked PAD.


-----
Fri 23 Jan 2009 17:31:50 EST

  Paul Hubbard:  I want to do rigid body refinement on the fragment
   of the active residue - don't make me click 2 residues to define
   the fragment - find it yourself

* You can do this now with "X" key binding (laertes)


----
Sun 25 Jan 2009 04:57:33 EST

   How about adding the rmsd bonds, angles (etc?) along with the
   chi squareds.


----
Tue Feb  3 14:55:32 GMT 2009

   INFO:::

	std::FILE (e.g. used by gmp.h) is resolved by including cstdio
	(e.g. before including libguile.h).

----
Wed Mar  4 13:12:21 GMT 2009

    Metal distances:

    http://tanna.bch.ed.ac.uk/

-----
Sat Feb 28 19:36:50 GMT 2009

     when testing new tree code:

     test: torsion general
     test: wiggly ligand best solution C* N9 C1* C2* is correct
     test: var4 and var4 for ATP and var1s for MPR

     Note: revision 1917 has "new" mgtree code, which seems to work
     for wiggly ligands, but torsion angles are horrifically broken.


----
Thu Mar  5 10:26:43 GMT 2009

    Torsion general should optionally wag the chain or molecule (not
    just the rest of the residue).  Frank von Delft, Cathy Lawson.
    Maia Cheney.


-----

   Better Credit for USF in get pdb and data.

   3f5p has a nice ligand


-----
Tue Mar 24 19:05:54 GMT 2009

     Let the Display Manager auto-resize on reading new pdb or map.
	[Frank von Delft]


---
Wed Mar 25 19:09:38 GMT 2009

    A tool to split out ions/ NA/ CL from a particular chain(?) and
    put them in their own chain.

    Then isSolventChain() can work, and so renumber-waters can work.


----

     Add a residue/chain selector (an mmdb string entry) to allow the
     selction for a ramachandran plot (put it at the bottom of the dialog).


-----
Thu Mar 26 18:39:42 GMT 2009

     Adding a terminal residue:

     the phi/psi pairs from a ramamchandran plot can't be the phi/psi
     for *one* residue, they
     must be psi of one and phi of the next (or the other way round).
     Hmm... needs some though.

---
Fri Apr 17 17:38:02 BST 2009

	 Worry about the generation of coot_wrap_*_pre.cc.  Copying
	 them from the build directory back to source dir.  Do it more
	 often so that these files are not out of date.

	How can this be made easier/automated?


---
Sat 16 May 2009 12:40:38 BST

	It would be nice if when batton building, Coot realized that
	the maps was not sufficiently smoothly sampled and suggested
	to resample it.


----
Thu May 21 15:11:17 BST 2009

    Ligand search:

    Fit libcheck_ZMR.pdb (jackal) to 2cml (without A1477 of course)

    "Right here" mode.


----
Fri May 15 14:37:13 BST 2009

   how to move an svn repo:
http://whynotwiki.com/How_I_moved_my_code_repository_to_Google_Code


   how to svn revert a particular revision (just this one)
   $ svn merge -c -5702 .

--
Sun 17 May 2009 13:01:52 BST

compiling on bragg3

c-interface-mmdb.cc: In function 'CMMDBManager* mmdb_manager_from_python_expression(PyObject*)':
c-interface-mmdb.cc:326: warning: deprecated conversion from string constant to 'char*'
c-interface-mmdb.cc: In function 'PyObject* display_python(PyObject*)':
c-interface-mmdb.cc:424: warning: deprecated conversion from string constant to 'char*'


----
Sun 24 May 2009 11:27:12 BST

	gtk2-build-status on cycle seems to being written by a gtk2
	build.

----
Mon May 18 23:28:41 BST 2009

	Add to GUI talk: What's the difference between:
        Some function
	and
	Some function...
       	?

----
Wed May 20 00:16:05 BST 2009

	Have go to atom open... on a bulding structure

	file -> get 1gxt from pdb

	(change molecule to (new) 1gxt

	but the chains in the residue/chain tree do not change!

	Bug!


---
Thu 28 May 2009 23:16:29 EDT

   Bug!

   (On mac) restraints editor -> edit ESD for O C in ACT -> 0.0 (or
   anything) -> Coot resets it to 0.02 Grr.


---
Sun 31 May 2009 09:32:42 EDT

	read-cif-dictionary should return a result and should be
	tested against in greg tests.


---
Tue Jun  2 02:52:49 EDT 2009

   Herb Klei:

   unsaved changes dialog should have a check button that
   allows/dissallows showing unsaved-only/all as menu items in the
   option menu.

   It should start up as default showing only unsaved molecules.

   See graphics_info_t::fill_unsaved_changes_dialog().


* Done - sort of.  The active molecule is the first unsaved molecule.
  It would be better to have a check button here:
  "Just molecules with unsaved changes?"

---
Mon Jun  8 17:28:43 BST 2009


	on rama refining pdb1h3y.ent (at the end, I think)

In /home/paule/autobuild/Linux-kalypso-pre-release-gtk2/share/guile/gtk-2.0/gtk.scm:
 147:  0* [apply #<procedure #f ()> ()]
In unknown file:
   ?:  1  [#<procedure #f ()>]
In /home/paule/autobuild/Linux-kalypso-pre-release-gtk2/share/coot/scheme/fitting.scm:
    ...
 212:  2  (let* ((imol-map #)) (func (car *multi-refine-spec-list*) imol-map) ...)
 213:  3* [fit-protein-rama-fit-function (4 "B" -10000 #f) 5]
 173:  4  (let ((imol #) (chain-id #) (res-no #) ...) (let (# #) (map # #) ...))
 177:  5  (let (# #) (map # #) ...)
 179:  6* [map #<procedure #f (alt-conf)> ...
 188:  7*  [residue-alt-confs 4 "B" -10000 #f]
In /home/paule/autobuild/Linux-kalypso-pre-release-gtk2/share/coot/scheme/coot-utils.scm:
1456:  8   [reverse ...
1457:  9*   [f ...
1457: 10*    [residue-info 4 "B" -10000 #f]
/home/paule/autobuild/Linux-kalypso-pre-release-gtk2/share/coot/scheme/coot-utils.scm:1457:21: In procedure SWIG_Guile_scm2newstr in expression (residue-info imol chain-id ...):
/home/paule/autobuild/Linux-kalypso-pre-release-gtk2/share/coot/scheme/coot-utils.scm:1457:21: Wrong type argument in position 1: #f

----
Tue Jun  9 06:30:16 BST 2009

   In a MET, move the SD to 2.85A from the CG/CE and then do rotamers.
   The SD and CE do not move. [HK]


----
Tue Jun  9 06:30:23 BST 2009

   MolProbity display clashes with Alt conf atoms handled correctly,
   currently it's a mess. [HK]


---
Tue Jun  9 06:30:49 BST 2009

   Update symmetry on Ctrl-G resno Return [HK]


----

     Think about providing a syncing "service"

     sync from here:

     rsync is basically a free lib?

     rsyncing from an ftp server directory tree?


----

    Charles want to add "update mechanisms" to the "testing" talks
    day.


    Display the R-factors from the refmac log file somehow.
    Job for Bernhard?


----

   Phil: gross structural changes in 7A anisotropic data (had higher
   resolution structure in a different conformation) for Den.


----

    When cootaneer fails, what has it done?  Why did it fails?


---

    Think about "undo" on delete molecule form the display manager

    validation -> check waters or density fit window, there are
    multiple copies of these that fall behind the main window

   Using GNOME suse 11?

-----

   Nick: compare pdb file to original sequence.  As a validation tool

* Done.

----

   Easy way to make the baton build build backwards.

* Done.

---

  Phil (considering building from scratch ) "Join up these
  fragments for me"


---

   fobs - fobs difference map made in coot, you need to define a scale
   for the maps.

	minimize:   sigma (fobs1 - (k+b)fobs2)

   * consider phase?  |FWT| can substitue for |Fobs| I guess.
     (considering phase only makes sense for isomorphous maps)

----

   shift-click and ctrl click on the file browser for file selection.

* Done.


----

In tests:

Fix non-printable characters.

Entered testcase - Read small molecule .res file


WARNING:: failed to get AFIX handle for  <DA> HIS  N   ,
WARNING:: failed to get AFIX handle for  <DA> HIS  CA  ,
WARNING:: failed to get AFIX handle for  <DA> HIS  C   ,
WARNING:: failed to get AFIX handle for  <DA> HIS  O   ,
WARNING:: failed to get AFIX handle for  <DA> HIS  CB  ,
WARNING:: failed to get AFIX handle for  <DA> HIS  CG  ,



----

    NCS Jumping with ligands: pdb2vt4.ent (from EDS) [Beta1 Adrenergic
    Receptor]


----

    INFO:: when adding a Gtk2-only widget, you need to adds it
    create_xxx_dialog function to add-c-extern.sh


---
Wed Jul  8 12:44:43 BST 2009

	links should be dashed.  1ehz.

* Done.

----
Wed Jul  8 12:45:53 BST 2009

   sequence view problems 1ehz

* Fixed.

----
Mon Jul  6 20:04:39 BST 2009

    What's the Ubuntu way of checking for dependencies?  (i.e. those
    in the README file)?

* dpkg-query. Done.


----
Wed Jul  8 23:29:46 BST 2009

	 the tick marks for crashes-on-sphere-refine-maybe.pdb are not good.


----
Sun Jul 12 12:07:56 BST 2009

	how does add_alt_conf residue range work?

   It doesn't!  The function is not filled.


----
Mon Jul 13 09:16:18 CDT 2009

   Project for summer student:

   improve b-factor validation test by finding the proper distribution
   of b-factors for residues (and include as a function of resolution)
   (and refinement program for amusement).

  Another:

   Code up Otwinowski and Richardson distributions for use in
   Ramachandran refinements.  Compare and contrast.  Do it well, and
   there could be a paper in this.

  Another:

   Add Pre-pro to Rama plot possibilities (may need to enhance
   clipper).


----
Mon Jul 13 11:42:00 CDT 2009

   molecule_class_info_t's get_residue() function has arguments in the wrong order.


----
Tue Jul 14 15:11:53 CDT 2009

  distances should make reference to the molecule from which them came
  and should go away when molecule is undisplayed or deleted.


---
Tue Jul 14 19:19:07 CDT 2009

	in backrubbing
float
molecule_class_info_t::backrub_rotamer(const std::string &...

    can we (should we) delete the fragment_asc?


---
Thu Jul 16 09:21:32 CDT 2009

   what is 'errat' (validation of protein structures)?

   what is 'modloop' - modelling of loops in protein structures.

---
Thu Jul 16 13:57:19 CDT 2009

   The ligand fitting dialog in windows (i.e. the dialog of fitting
   ligand positions after the ligand fitting has completed) is
   missing.

---
Sun Aug  2 21:52:04 BST 2009

   Use scm_from_locale_string() not scm_makfrom0str().


----
Mon Aug  3 12:29:37 BST 2009

   Show (4 sigma by default) outliers in the geometry analysis.

----
Wed Aug  5 18:28:07 BST 2009

   side-chain weighting (slider?), useful for low-res refinement.

---
Tue Aug  4 13:04:58 BST 2009

   INFO: install coot (autobuilder) dependencies on Ubuntu 9.04: -> 76
   packages.


---
Sat Aug  8 09:10:22 BST 2009

openexr fink on mac uses OpenGL and frameworks.


---
Mon Aug 10 14:18:16 BST 2009

   Why does Ca + Ligands show the SAH in 1o9s, but not the SAM in in
   1nw3? [Steve Bellon]


---
Tue Aug  4 13:04:58 BST 2009

   side-chain weighting (slider?), useful for low-res refinement.


---
Tue Aug 18 08:42:28 BST 2009

   When adding waters, do a sphericity test.  You need to know the
   resolution of the data and have pre-calculated tables of sphericity
   at various resolutions.  So that requires a search of PDB data.

---
Thu 20 Aug 2009 10:13:21 EDT

   JB et al:

   Copy fragment 2bz1 //B/1-305  -> no atoms selected

   Make the image type png

   Don't display bumps - in the environment distances (so that
   biologist see the hydrogen bonds - but not the bumps (the are not
   interested in them)).

   Unphosphorylate (change the residue type)

   Add a key binding to cut side chains (shift K, perhaps).

* Done.

   Perhaps the hydrogens on a ligand from probe is not working as
   you'd hoped.  Try with several different ligands.  See "Use
   write_connectivity to generate ligand hydrogens" in the rel-todo.

   Then you will need to use the hydrogen conn file when running
   reduce.

   It is reasonble for me to say he period is 0 and the sd is 0 on a
   rotatable bond.  So coot should deal with that.

      i.e. if the sd is 0, then no torsion restraint on that tor.
       also if the period is 0, there souold ben no torsion
       restraints.

   The weight matrix refinement control dialog needs to be read/set.

   We want button in the main toolbar to open a coordinaes file (so
   that we dont have to click and hold and select a menu item on the
   file men (Word does it).  Same for cif and mtz.  We need to make
   the open_coords_dialog() acceccesable from scripting.

   split residue (his) and rotamers (try both from CA, and all).

   Try rotamers on a alt confed residue.

   Delete a water (shift W).

   On adding a water, it defaults to adding to "Waters molecule" or
   something - stop doing that and if it is default/not assigned, then
   give me a dialog to assign it

   Somehow go to reside "GTY" (let me type a triple letter).

   The sequence alignement seems to fail, because lets say the protein
   starts with residue 11, the sequence alignemnt should be for the
   model, not the sequence.  Needs investigating.

   Residues with missing atoms: I want to use the . and , key on the
   generated list.

   Same goes for the list from Find Waters.  I want a list of waters
   in a dialog that I can use . and , with. Like questionable waters.

   Backrub rotamer search on a PHE in a helix.  -> terrible solution.
   Need to include clash terms.

   User-define-click resets the cursor after it has run the
   function. This can be inconvenient, when user-defined-click calls
   itself at the end (e.g. we don't know how many times
   user-defined-click needs to be called - so we use it in one-by-one
   mode)

   Try sphere refinement with hydrogens on. Check that convergence
   happens.

   "SSM all" to this: give me a dialog, with an "all on" button.

   chains ligands
   A        D
   B        E
   C        F

   SSM-all should copy across the ligands too - that is what we are
   most interested in. You will have to find which ligands should come
   with which chains.

   NCS ghosts don't work with ligands/cofacors.  Can you make it work
   with those too?

   There should be quick way to undo/undisplay "highight intereting
   residue"

   Make an uberfile with views, maps, proteinm models in it.

   align vs pir sequence failed to do anything obvious.
   We then dis alignment-mismatches-gui by hand and it gave us a gui.

   An "Insert residue" should take you to the nearest residue.

   But the residue number is wrong for insertions.
   Mutations look fine.

   In the colour map rotation for maps, let there be "an allowed range"
   on the colour wheel).

----

      In baton build, make it work better/more clearly when starting
      with no skeleton.
      ->  ask me to make a skeleton

* Done.

     Doing go to blob when the refiement map has not been set,
     needs better feedback.

* Done.

     Sharpening a map, read in from a map:  -> crash.

* Fixed

     I want a function to set the refinment weight for me,
     i.e.  it should do a triple refine and look at the chi squareds.
     Keep doing that with different weights until we get to 1.0.

* Scheduled.

     The very low level map from phenix, makes refinement fail to
     converge without setting the map weight to 3000!

     How about doing Ramachandran refinement with optional sphere refinement.

---
Sun Aug 23 16:43:37 EDT 2009

    make_asc(CMMDBManager *mol) should be (also?) a constructor of an asc.

----
Mon Aug 24 16:57:58 EDT 2009

    When doing add strand here, make the residues ALA

----
Mon Aug 24 16:58:02 EDT 2009

   quit with no save state.

----
Mon Aug 24 17:02:29 EDT 2009

   3 molecules loaded,  0 3 and 7

   post-go-to-atom-window starts up showing 0.

   Use the option menu to change to 3.

   -> fails to update the residue list

   Use the option menu to change to 0.
   Use the option menu to change to 3.

   -> updates the residue list.

    Probably due to this:

    set-go-to-atom-molecule 3 (before post-go-to-atom-window)

    but go to atom dialog starts up showing molecule 0.


----
Mon Aug 24 17:17:35 EDT 2009

    how do I start up coot and force it to read the state script?

---
Mon Aug 24 17:17:40 EDT 2009

   can you make the display manager start up the "correct" size?
   (is it saved in the state script?)

----
Mon Aug 24 17:24:50 EDT 2009

   Difference map peaks with a nice ligand, completely connected at 5
   sigma, there are 10 "peaks" on the ligand! when we peak search
   difference map.

----

   simple average of maps, many maps, something like difference-map function.

* Done.

---

   set map is *not* difference map!  need this function

---
Mon Aug 24 17:42:55 EDT 2009

   "library of things in crystallization: what is this blob: let me
   trivially select."

   cryo-solvent molecule dialog:  Where is this?


----
Mon Aug 24 17:52:10 EDT 2009

   Close the application with the X, don't save the state.

   Perhaps, needs thinking about.


---
Mon Aug 24 17:53:32 EDT 2009

   On exit (or optional exit) save all modified moelcules with default
   save names.


---
Tue Aug 25 10:09:07 EDT 2009

  check the Chi-2 on a leucine.  The dictionary is CA-CB-CG-CG2, but
  built-in is...?  And how does that work with molprobity rotamers?

  These also may be suspicious:
  THR VAL LEU ASP ASN GLU GLN ILE


---
Tue Aug 25 10:54:57 EDT 2009

    Pukka puckers?  Dont use the out of plane distance, use the N1/9
    C1' vector and find the distance of the Phosphate from the
    extension of that line.  It is more sensitive than the out of
    plane distance.

    > 3.0A -> C3' says Jeff.


 Change the probe radius you can see potential interactions at longer distnaces.
 Jeremy: Try changing this at quarter angstrom increments.

 David: how about looking at a "packing moment" - perhaps having to
 move a block first.  Looking athe the dots along the edge of range of
 residues, moving the range of reisdues by a rotation/trans operator
 derives from the dots.


----
Tue Aug 25 14:30:19 EDT 2009

    2b4j: do a sequence association and add terminal residue (either
    at end or a test deleted residue)


----
Tue Aug 25 14:30:19 EDT 2009


    set-hardware-stereo-angel-factor : typo somewhere?  preferences?

* Done. c-interface.cc

----
parse-pisa-xml.scm :371 should check for #f in status


148  in coot-utils.scm

0 "E" -10000 #f

wrong type in position 1: #f

----
Wed Aug 26 05:00:42 EDT 2009

   Align & Mutate changes the residue numbers

   Align & Mutate seems to do a rotamer fit of all residues, I didn't ask for that

   In Align & Mutate, if I do not click the "autofit residues" nothing
      seems to happen, the sequence is not mutated.  Oh, or possibly
      it mutated residues in the wrong place.


----
Wed Aug 26 10:28:45 EDT 2009

 with spw:

  Allow me to have more cycles before saying "Time's Up"

  Allow me to interupt a bad refinement with "Esc" key.


---
Wed Aug 26 17:12:43 EDT 2009

   get_rotamer_name_scm() needs to be passed an alt_conf?


----
Wed Aug 26 17:18:58 EDT 2009

   fix_nomenclature_errors() works on residues with alt confs?

* Punt.

   rotamer_graphs() for residues with altconfs.

* Seems OK.

   molecule-info-class's set_residue_to_rotamer_number() works with altconfs?

* No.  The alt conf is not specified in the c-interface.h function (even).


----
Sat Aug 29 06:47:18 BST 2009

   get rid of GTK_ENABLE_BROKEN


---
Sun Aug 30 10:21:50 BST 2009

   JED request:
   extend the output capabilities of export-map so that it covers a
   molecule (say).  "auto-extend".


----
Tue Sep  1 19:17:15 BST 2009

   Put phosphate backbone mode into symmetry.

* Done.

----
Fri Sep  4 13:40:49 BST 2009

   It would be nice if the alignment results (e.g Validate vs PIR or
   Align & Mutate) came up in a slider


---
Fri Sep  4 16:18:20 BST 2009

	Project student idea: In refining RNA, it would be nice to
	have extra restraints to keep the base planes aligned.  This
	could be done with a combination of angle and plane (pseudo)
	restraints as a mmCIF link.  Write a program to generate these
	from a PDB file.  You'll need a wiggle-room factor.  Maybe
	generate an intermediate representation/file that the user can
	optionally edit and generate the dictionary from that.

Garib: 08/01/09


  If top/par file could be converted to the following type of
  instructions then you do not need to define everything in cif file
  (these are for torsion angles, all other restraints can be defined
  similarly)

  General torsion angle restraints for any quartet of atoms:

  external torsion first chain [ch] residue [res] insertion [ins] atom
  [n] [altecode [a]] next chain [ch] residue [res] insertion [ins]
  atom [n] [altecode [a] ] [symm y/n] next chain [ch] residue [res]
  insertion [ins] atom [n] [altecode [a] ] next chain [ch] residue
  [res] insertion [ins] atom [n] [altecode [a] ]
 [symm y/n] value <v> sigma <s> period> <p>

  Exampl

  external torsion first chain A residue 220 atom C next chain A
  residue 220 atom CA next chain A residue 220 atom C next chain A
  residue 221 atom N value -60 sigma 10 period 1



----
Fri Sep  4 16:59:29 BST 2009

   It would be nice if coot::util::model_sequence() (or its argument -
   vseq) only allowed residues that were protein amino acids - thus we
   would not get problems of trying to mutate a SO4 into an ALA in
   Aligment vs PIR.  (Yes, it is a stupid idea to put phosphates into
   protein chain, but some people do it).


---
Sat Sep  5 10:17:51 BST 2009

   in molecule-class-info-mutate.cc, align_and_mutate()

   bool renumber_residues_flag = 0; // make this derived from the GUI one day


---
Tue Sep  8 21:14:49 BST 2009

    Summer student project: Use PDB to find distribution of B-factors
    around centre residue atoms.  Find outliers.  Make validation
    tool.


---
Tue Sep 15 11:55:50 BST 2009

   It would be nice to add the Ramachandran angles to the residue info
   dialog and a colour patch (like refinement dialog).


----
Sat Sep 19 18:11:45 BST 2009

	box-pack-end the "Play Views" button to the vbox (it's
	returned), rather than add it as a normal button (and
	currently new views go after the "Play Views" button which is
	ugly.


----
Sat Sep 19 18:36:06 BST 2009

    The bond parameters and bond colours dialogs need to be consolidated.

----
Mon Sep 21 15:43:47 BST 2009

     student project:

     In jiggle-fitting ligands, mask the density by the surrounding
     atoms of the molecule that it will be merged into.  (and/or use
     them to make a bump/clash score).

     Go through the ligands of the PDB, how well does this method work?


----
Tue Sep 22 17:24:48 BST 2009

     http://www.chembiogrid.org/index.html
     What services do they provide that we can use?  SMILES->3D?


---
Wed 23 Sep 2009 22:08:41 BST

   check the fps of rnase coords, say, when it is molecule 0 and when
   it is molecule 10, with the others closed or undisplayed.


----
Thu 24 Sep 2009 18:07:02 BST

   Student project:
   The use of sound as a form of user-feedback in molecular
   model-building

---
Mon Sep 28 14:26:25 BST 2009

   molecule_class_info_t::find_ncs_matrix(int SelHandle1, int SelHandle2) const;
   does not pass the graphics_info_t::ncs_matrix_flag.  It should (and
   should not use it statically).


---
Tue Sep 29 11:39:05 BST 2009

   Doing a rotamer search should first to an automatic nomenclature
   check (and correction if necessary), e.g. 105A in 1a0j.

---
Tue Sep 29 13:18:33 BST 2009

   move minimol into coot-utils and make that just one coot-utils lib.


----
Wed Sep 30 14:55:21 BST 2009

    Several tool bar function (autofit rotamer, rotamers, edit chi
    angles, pepflip, side-chain-180, edit-backbone,
    mutate&auto-fit-rotamer, simple-mutate, add-peptide, add-alt-conf)
    might work better using active-atom.

    Big change.


----
Wed Oct  7 15:44:59 BST 2009

   Ingo K: if you try to add a c-terminal residue, coot does recognize
   the residue number correctly, but will not do any real space
   refinement. if you output the coordinates, you will see that the
   new residue is attached to the end of the B chain, i.e. BEHIND the
   waters.  i would guess that this breaks real space refinement in
   coot. i would guess ... (it asks to increase
   max_number_refine_residues or so)

----
Sat Oct 10 08:36:45 BST 2009

   Student project.  Add metal distances (water validation).
   consolidate water validation.  Run difference map water validation
   across all structures in the PDB with anomalous data. See "metal
   distances" above.


----
Mon Oct 12 19:07:07 BST 2009

   Get real-space R factors (or correlations) per residue for many
   structures in the PDB (as a function of resolution say).  Use these
   to validate *this* structure.


---
Sat Oct 17 05:43:53 EDT 2009

    on starting up fresh coot:

(set-default-initial-contour-level-for-difference-map -1075912448.00)
(set-idle-function-rotate-angle -1075912448.00)

set-default-bond-thickness needs to be added to the history


----
Wed Oct 14 11:05:03 BST 2009


   student project: implement hole:

    O.S. Smart, J.M. Goodfellow and B.A. Wallace (1993)
    The Pore Dimensions of Gramicidin A
    Biophysical Journal 65:2455-2460.

http://d2o.bioch.ox.ac.uk:38080/doc/index.html
http://d2o.bioch.ox.ac.uk:38080/


----

    student project:

  o nucleic acid analog of Ramachandran plot (theta, eta), see message
    from Bill Scott:
    http://www.csb.yale.edu/people/pyle/software/index.html


----

     student projects:

  o NOE violations (or successes)

----
Mon Oct 19 10:09:42 EDT 2009

   o maybe base-pair alignment (and preparation of pseudo-restraints)
    is a student project.

   o use the sphere tool (interactive position and radius) to select a
     set of residues - then use those for rigid-body refinement.

----
Fri Oct 16 14:38:00 BST 2009

  o INFO:: mac compile problems:
    check out the static analyser:
    http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/9


----
Mon Oct 19 10:39:58 EDT 2009

    The baton build problem:  Gina

   Produce like this (not verified):
   Calc -> Map Skeleton -> On

   Ca Baton mode mode, open, close, open, undo, close
   [candidate positions displayed]
   Ca mode,
   Undo
   Accept
   Undo
   Accept -> Now the baton positions atoms are gone.


----
Tue Oct 20 11:29:07 EDT 2009

   Need to add Pre-PRO to clipper.


---

   consider looking for unsatified H-bond donors and acceptors, for
   NMR structures in particular c.f. cing?


----
Wed Oct 21 13:56:38 EDT 2009

   For VTF: Talk with Kevin about running sequins on the Chang
   structures (backwards and forwards).


----
Wed Oct 21 16:49:43 EDT 2009

   For VTF: make sure that the findligand is usable with absolute
   levels of density.



----

    Jane: some comment about someone who made a server? program that
    searches for (general?) active sites in proteins.

    Find out more.


---
Sat Oct 24 00:30:39 EDT 2009

    Filling density with close dummy atoms and then refining them:

    Acta Cryst. (1997). D53, 540-543
    Local Improvement of Electron-Density Maps
    A. G. Urzhumtsev

    Improves weak loop density?


----
Sun Oct 25 17:54:59 EDT 2009


(from Garib)
>
> libcheck
>
> file_l <dicntionary_file>
> mon <monomoer_you_want>
> nodist y


----

   INFO:: Friesner, R. A et al Glide: a new approach for rapid,
   accurate docking and scoring, 1. Method and assessment of docking
   accuracy J. Med. Chem 2004, 47, 1739-1749

----
Sat Nov 14 19:58:48 GMT 2009

   needs cleanup:

   in several of the delete_x() functions,
   e.g. delete_atom_by_atom_index, delete_atom, delete_residue, we
   have:

   CResidue *residue_p =
      graphics_info_t::molecules[imol].get_residue(resno, ins_code, chain_id);
   if (residue_p) {
      coot::residue_spec_t spec(residue_p);
      g.delete_residue_from_geometry_graphs(imol, spec);
   }

   This needs to be rationalised into (perhaps)
   delete_residue_from_geometry_graphs_maybe(chain_id, resno, ins_code);



----
Sat Nov 14 12:56:21 GMT 2009

   Take a shelx molecule and add 10 to the coords (means fixed).  Now
   display symmetry.  Fail.  See message from Z Dauter.

----
Mon Nov 30 10:23:48 GMT 2009

   check that users of the fill_chain_option_menu function work
   nicely.  They now should use menu_item_label(item) in the callback,
   not the horrible casting of pointer to user_data to char *s.


---
Tue Nov 24 17:07:20 GMT 2009

    An extension to backrub rotamer:

    For each rotamer: try chi-by-chi to improve the fit to the density
    of the side chain.  It will probably only need 2 rounds.  Needs
    non-trivial minimiser though (having said that, it's only a series
    of 1-d functions).

    Hmmm... what to do about clash_score...?  The variation in clash
    score wil be relatively low and ignorable?


---
Mon Dec  7 16:32:38 GMT 2009

Ed Pozharski:

   Coot severely slows down the system when I try to generate the
   density fit graph using multi-model (NMR-style) pdb file.  First,
   it apparently generates as many dialogs as there are models, yet
   every graph has multiple bars (which is not very useful since they
   are overlapping).  Computer becomes unresponsive for some time, but
   when it comes back everything is very slow (except that I can
   rotate and zoom in smoothly, things get slow if I re-centre).

   The problem appears to be that coot eats a lot of RAM under these
   circumstances.  I have 4Gb here and it's still not enough so
   machine starts using the swap and thus gets very-very slow.
   Interestingly, most of the extra RAM is owned by Xorg, not coot,
   and is not freed even when I exit (but it is when I log out).

   If I load the same number of models as individual pdb-files, I can
   generate multiple density fit graphs with virtually undetectable
   increase in memory use.


---
Mon Dec  7 17:39:09 GMT 2009

   do the 1 2 3 4 keys work for edit chi angles?


----
Mon Dec  7 17:43:08 GMT 2009

   rotate peptide to optimise a combination of the density fit of
   mainchain (3) atoms and the ramachandran plot.

----
Mon Dec 21 11:14:22 GMT 2009

    In the Go To Atom, rightmouse should activate a pop-up,

    Highlight "MET"s  (for example) taking the residue type of the residue label we clicked on
    Highlight type -> entry

---
Tue Dec 22 08:03:46 GMT 2009

   o (set-find-hydrogen-torsion 1) and edit chi angles on a SMILES
     CCCCCC.  The torsions are in the wrong order.  ::: 4


---
Sun Dec 27 02:09:22 GMT 2009

   o the arguments of molecule_info_class_t get_residue() are the
     wrong way round.

* Done.


---
Mon Dec 28 02:23:49 GMT 2009

   Problem?

   Try refining a post-reduced model (e.g. tutorial-modern.pdb)
   reidues 1A, what is happening to the hydrogens?

---
Tue Dec 29 14:44:49 GMT 2009

   Improve the NBC restraints so that regularization doesn't cause
   clashes.  eg. regularize A 45-47 with
   (set-do-probe-dots-post-refine 1)


---
Fri Jan 15 21:06:12 GMT 2010

   double-clicking on go to atom residue, elg. E2B from 3hb5, should
   take you to the atom closest the the centre of the residue, not the
   first residue (it doesn't have a CA of course).


----
Sat Jan 16 09:16:32 GMT 2010

   tutorial example

   1bav, Difference map peaks, Bad rotamers, missing NCS waters


---
Sun Jan 17 12:51:25 GMT 2010

   Simple mutate base in 1v15.  This has PDB standard base names?


----
Thu Jan 21 11:31:07 GMT 2010

   o Read in coot-ccp4/monomer-BIP.pdb and regularize.  -> No restraints.
     Dynamic add does not use libcheck.  should it?
     ::: 1


----
Thu Jan 21 23:23:30 GMT 2010

   o Refine: click on ASN, click on terminal NAG, get residues that
     are linked and use "sphere" refinement for just those residues.


---
Mon Jan 25 15:10:19 GMT 2010

	on finding a glycosidic linkage, Coot should do the DEL-xxx
	mod if needed.

---
Mon Jan 25 17:22:45 GMT 2010

	sphere refine on a water (with no neighbours). -> No
	restraints dialog.  [JED]

---
Tue Jan 26 16:47:45 GMT 2010

    When doing refinement, check that all the non-H atoms of the
    selected residues appear in the restraints.  If not, give a dialog
    and run a hook (which is passed a list of the failing residues
    specs and types). [JED].


---
Wed Jan 27 01:47:31 GMT 2010

    Make sure guile is 1.8.7 and GSL is 1.13


---
Sat Feb  6 16:58:24 GMT 2010

   Small baton build tutorial:

   Build the kinase consensus sequence peptide: 2q0n


---
Sat Feb 13 14:35:12 GMT 2010

   INFO:: 3CH6 is nice for showing NCS skipping.  Or is it a case of
   the wrong spacegroup? NCS jumping.

   Look at the ligand near 177


---
Mon Feb 15 02:32:00 GMT 2010

   (Refmac) Additional restraints:

exte dist first chain A resi 2 atom CA second chain A resi 5 atom CA value 4.0 sigma 0.02
http://www.ccp4.ac.uk/dist/html/refmac5/keywords/keywords_5_5.html#External

----
Wed Feb 17 03:05:21 GMT 2010

   Sphere refinement with alt confs creates problems (no progress).
   e.g.: around B 425 in 3h7w.

----
Fri Feb 26 11:21:07 GMT 2010


   All pairs NCS rmsd comparison. (Requested by FvD)

  GK:

   - my favourite plot would be the "CD plot" (but then again, it
   would, wouldn't it?) - see for instance:

   http://xray.bmc.uu.se/cgi-bin/gerard/image_page.pl?image=usf/pics/cdplot_1ldn.gif


----
Sat Feb 27 13:01:00 GMT 2010

   Missing waters using this PDB file:

   tutorial-modern-symmetry-2-bad-water-finding-using-this-protein.pdb


---
Wed Mar  3 14:16:25 GMT 2010

  INFO:: To stop being in DOS mode:

  M-x set-buffer-file-coding-system
  undecided-unix

  -> save


----
Thu Mar 25 15:55:10 GMT 2010

   EJD: let me click on one atom in a chain to convert it (the whole
     chain) to mainchain.


---

   here's one for the validation tutorial: 1m1f


---
Thu May 13 13:36:31 BST 2010


   JED comments:


   - Ball and stick does not obey show hydrogens off.

  Agreed. This should be fixed.

   - Environment distances are shown for hydrogens -- makes the view
     pretty crowded.

  Don't know how to "fix"

   - The "Apply" button in the bond parameters window seems superfluous.

  Agreed, it's a bit non-canonical.

* Done.

----
Mon May 17 16:46:04 BST 2010

  Andrew Sharff:

    CMH
    BEZ and BOX
    many: methyl mercury

* a problem for PDBe, not Eugene.

----

   Andrew Sharf::

   Just refining / building a structure that has a number of LINK and
   SSBOND cards in the PDB header.  I have had to renumber one of the
   chains to make the numbering consistent with other structures.

   However, on saving output, the residue numbers in the SSBOND and
   LINK lines is not changed.


----
Tue May 18 11:25:15 BST 2010

----
   BN: When alt-confing ligands, I'd like to see a slide-bar to set
       the occs.

----

   On loading the output of refmac, give us a way of seeing the "most
   moved" atoms. (seems to be a useful thing to see when developing
   lbg).

----
Fri May  7 12:48:16 UYT 2010

    re: Kate's project: c.f. SPASM (USF?)

----
Thu May 20 18:38:52 BST 2010

   o Bob Nolte:  "clean up structure button"

	 reorder chains - renumber waters - arrange water around
	 protein - fix nomenclature errors - merge water chains

----
Sun May 23 13:35:38 BST 2010


   2WOT: lbg the ligand and re-import back to Coot main.  Now try to
   fit the ligand.

   It's hard.  Make it easier. Identify matched atom (atom name map) and
   the rotatable bonds and match them between reference ligand and new
   ligand.  Now set the rotatable bonds to those values (before
   minimisation).

   o need some cleverness to match and set the chi angles of the
     rotatable bonds (before lsqing, even, I guess)  (or at least,
     an LSQ is needed afterwards).


---
Thu May 20 18:45:29 BST 2010

    put in Edit Peferences the settings for these:

    (define *clear-out-backup-run-n-days* 7)
    (define *clear-out-backup-old-days* 7)


---
Thu May 20 18:50:50 BST 2010

    o Bob Nolte: give me a slider to set the alt confs.

---
Thu May 20 18:58:26 BST 2010

   o I want be able to edit bond colours and params from the molecule
     in the display manager.


----
Sun May 23 13:37:55 BST 2010

   Ian Tickle:

   o I have long been advocating the use of the RMS density
     deviation Z-score statistic for this purpose, i.e.
     sqrt(sum(delta_rho2)/Npoints)/sigma(rho), where delta_rho is a
     grid-point value in a 2(mFo-DFc) map, the sum is over the region
     of interest (atom, residue, side-chain etc), Npoints is the
     number of grid points in the region, and sigma(rho) is the
     uncertainty in the density (which must be estimated for the
     asymmetric unit of the map, NOT just the region).  Note that it's
     equivalent to the negative log-likelihood, which IMO is the
     appropriate statistic for this situation, if it's assumed that
     the errors in the density have a normal distribution.


-----

    integration of calcuated chemical shift with molecular dynamics...
    interesting..

----
Fri Jun  4 13:24:37 CEST 2010


Judit Debreczeni wrote:

> 1. coot remembers the presence of additional representations from the
> state file. It would be nice if it also remembered if they were
> switched on or off.

Funny - I was annoyed by that lack of feature just last night.

* Done now.

> 2. If there are two different ligands bound to the same active site
> with partial occupancies (with alt conf identifiers A and B), coot
> will still draw the environment distances between them, making the
> view quite crowded.

Bleugh.  quite right.


> 3. For covalent ligands (but also for SS-bonds etc): if I change the
> chain ID, the pdb header will still refer to the original chain IDs in
> therms of LINK and SS-bond records.
> It would be nice if the header could be automatically updated. (Or if
> not, it would be nice to have a "view and edit pdb header" option
> somewhere.)

Second person, maybe 3rd including Eleanor, to complain about this.
Agreed.


> 4. Currently it is frustratingly tedious to set the occupancy for
> newly added alt conf ligands.

Do you know about:

(set-add-alt-conf-new-atoms-occupancy 0.2)

before splitting?

If that won't do, a trivial function to fix occs of given alt conf can
be made by wrapping set-atom-attributes


> It would be nice if we had a similar
> mechanism to what is used for standard residues (without the rotamer
> bit, of course) -- i.e. a slide bar or some such.

Yes.  That can be done - even with scripting - by above system.

-----
Wed Jun  9 10:40:31 CEST 2010

   Topf et al structure (2008?)

   Flex-EM, hinge-based flexable fitting of protein structures to EM
   map (decent/good resolution maps).

----
Wed Jun  9 12:13:44 CEST 2010

   Eddy Arnold

   "strategic flexibility" (wiggling and jiggling)

   Janssen et al. 2005, J. Med Chem. 48, 1901 (perhaps)

   hydrophobic pocket - adaptabilty to changes:

   2004 Das,

   2008

   ligprep in schrodinger suite, preparing for glide

   make the "omega" geneation of ligand conformers usable at the
   scripting layer

    ,... e.g give me 2000 low energy conformers.

	Janssen:  Centre of Molecular Design


----
Wed Jun  9 13:17:27 CEST 2010

   Open Display manager.
   Add an add rep (ball & stick, say).
   Turn off all add reps of this molecule.
   Close display manager.
   Open Display Manager

       -> the "All" button has disappeared.


----
Fri Jun 11 11:56:15 CEST 2010


   debora makino - elena conti's lab.


------

> How do you shutdown coot such that it doesn't test whether backups are
> needed?
>
> (define clear-backups-maybe (lambda () (delete-coot-backup-files
> 'delete) #f))

Add to docs.

* Done.

----

1T5S nice map to play with?

  TT:
  flood fill density with dummy atom,
  move the atoms the centre line.
  find characteristic ca-ca-ca-ca geometry.
  link bits together.  15 residues/second

------
Thu Jul 22 21:40:12 EDT 2010

  John Spence: Molecular movies:
   -> make it easy to make movies from a series of electron density
      maps (mtz files).

      Consider interpolation.

----

   Update NCS maps based on local NCS.
   generate NCS matrix by local LSQing.

-------

  Garib: new refmac restraints type:
  Kullback - Leibler divergence.

-----
Fri Jul 30 14:54:42 BST 2010

   Fed 12 bins don't run on Fed 13.


----
Thu Aug  5 05:23:49 BST 2010

   Use rdkit/openbabel for Gasteiger-Marsili partial charge calculation


-----
Thu Aug  5 06:32:43 BST 2010

   Do I have the surface normals reversed?
   Try reversing the normals - does that make backface culling work?

-----
Mon Aug  9 08:12:35 BST 2010

    o CA Zone + ligands has thick hydrogen sticks (e.g. with-ligand.pdb)

* To fix this requires a big change in the colour system of coot.  The
  xth colour is grey and gregy is this (hydrogen sticks) unless
  make_graphical_bonds is called with "no_thinning" (CA mode).  Tricky.


-----
Sun Aug 15 12:59:12 BST 2010

    o in edit chi mode, if I mouse over another chi box then that bond
      gets highlighted.  It shouldn't update hilighted bond when I am
      in edit chi mode.  Or something. See JED mail from a few days ago.


-----
Wed Sep 29 10:35:58 BST 2010

Transparent sphere with glutsphere:

   martinm:

   You can do it by enabling culling, and using two draw calls - one
   with glFrontFace(GL_CW) and another with glFrontFace(GL_CCW). First
   draw call will draw back faces of sphere, and second one front
   faces, therefore you will get transparent sphere with correct
   polygons rendered from back to front.

http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=250770


----
Thu Sep  2 11:50:17 BST 2010

  Use GL_ONE_MINUS_DST_COLOR in blending with white background edges?

http://msdn.microsoft.com/en-us/library/ms537046.aspx

----
Thu Sep  2 11:40:03 BST 2010

   Libraries have been installed in:
       /lmb/wear/emsley/coot/fed-12/lib

    use the `-Wl,-rpath -Wl,LIBDIR' linker flag


-----
Interesting valgrind problems:

==23673== 67,982 bytes in 2,432 blocks are possibly lost in loss record 9,100 of 9,127
==23673==    at 0x4C28CC1: operator new(unsigned long) (vg_replace_malloc.c:261)
==23673==    by 0xFE8ED98: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0xFE8F8B4: ??? (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0xFE8FA52: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0x6437F07: coot::protein_geometry::simple_mon_lib_chem_comp(CMMCIFLoop*) (protein-geometry.cc:1128)
==23673==    by 0x643D3FA: coot::protein_geometry::init_refmac_mon_lib(std::string, int) (protein-geometry.cc:281)
==23673==    by 0x643F0F9: coot::protein_geometry::init_standard() (protein-geometry.cc:2751)
==23673==    by 0x4A5E2C: graphics_info_t::init() (graphics-info.h:856)
==23673==    by 0x4A257B: main (main.cc:269)
==23673==

another:

==23673==    by 0xFE8F8B4: ??? (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0xFE8FA52: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char
> const&) (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0x6437EDB: coot::protein_geometry::simple_mon_lib_chem_comp(CMMCIFLoop*) (protein-geometry.cc:1124)
==23673==    by 0x643D3FA: coot::protein_geometry::init_refmac_mon_lib(std::string, int) (protein-geometry.cc:281)
==23673==    by 0x643F0F9: coot::protein_geometry::init_standard() (protein-geometry.cc:2751)
==23673==    by 0x4A5E2C: graphics_info_t::init() (graphics-info.h:856)
==23673==    by 0x4A257B: main (main.cc:269)
==23673==

another:

==23673== 86,435 bytes in 2,432 blocks are possibly lost in loss record 9,106 of 9,127
==23673==    at 0x4C28CC1: operator new(unsigned long) (vg_replace_malloc.c:261)
==23673==    by 0xFE8ED98: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0xFE909E9: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0xFE90B7B: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/libstdc++.so.6.0.13)
==23673==    by 0x6437FFD: coot::protein_geometry::simple_mon_lib_chem_comp(CMMCIFLoop*) (basic_string.h:970)
==23673==    by 0x643D3FA: coot::protein_geometry::init_refmac_mon_lib(std::string, int) (protein-geometry.cc:281)
==23673==    by 0x643F0F9: coot::protein_geometry::init_standard() (protein-geometry.cc:2751)
==23673==    by 0x4A5E2C: graphics_info_t::init() (graphics-info.h:856)
==23673==    by 0x4A257B: main (main.cc:269)
==23673==

Another:

==23673== 2,502,720 bytes in 2 blocks are possibly lost in loss record 9,123 of 9,127
==23673==    at 0x4C28939: operator new[](unsigned long) (vg_replace_malloc.c:305)
==23673==    by 0x552A776: CIsoSurface<float>::returnTriangles(clipper::Xmap<float> const&, clipper::Coord_frac const&, float, coot::Cartesian) const (CIsoSurface.cpp:1576)
==23673==    by 0x552B3D6: CIsoSurface<float>::GenerateSurface_from_Xmap(clipper::Xmap<float> const&, float, float, coot::Cartesian, int) (CIsoSurface.cpp:616)
==23673==    by 0x6ED8A1: molecule_class_info_t::update_map_triangles(float, coot::Cartesian) (molecule-class-info-maps.cc:534)
==23673==    by 0x6EDC91: molecule_class_info_t::update_map_internal() (molecule-class-info-maps.cc:256)
==23673==    by 0x6EDCAE: molecule_class_info_t::update_map() (molecule-class-info-maps.cc:244)
==23673==    by 0x5D74A4: graphics_info_t::update_things_on_move() (graphics-info.cc:2095)
==23673==    by 0x5D74E8: graphics_info_t::update_things_on_move_and_redraw() (graphics-info.cc:2086)
==23673==    by 0x4F4ADC: set_rotation_centre (c-interface.cc:2726)
==23673==    by 0x59B473: _wrap_set_rotation_centre(scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) (coot_wrap_guile_gtk2.cc:11925)
==23673==    by 0x87E633D: deval (in /home/paule/autobuild/Linux-scylla-pre-release-gtk2/lib/libguile.so.17.3.1)
==23673==    by 0x87E732A: scm_i_eval_x (in /home/paule/autobuild/Linux-scylla-pre-release-gtk2/lib/libguile.so.17.3.1)

----
Sun Oct 10 12:14:21 EDT 2010

   o trivial but useful addition, but a button "non-standard residue"
     at the bottom of the residue list when mutating.
     ::: 0.5

-------
Sat Nov 13 16:34:37 GMT 2010

     o JED: environment distances when there are hydrogens on the ligand should not
       show interactions with the hydrogen base atom when there is an interaction
       with the hydrogen.

     o JED: Display manager: all molecules to xxx representation, (option menu, say).

     o JED: load 2wot: then sprout hydrogens on the ligand -> total failure

     o JED: keybinding w should check that there is a water/pointer-atom molecule defined.

     o JED: Sphere refine on a water should do something sensible.

     o (There should be a key that goes to hetatms)

     o question to self: do we need restraints to layout molecules?  e.g. 2bzh


----
Mon Nov 15 16:27:35 GMT 2010

    A 500 CDK in 2xmy fails to prodrgify (alt confs)


----
Wed Nov 17 14:01:30 GMT 2010

    Bernhard's Biocryst report.


    o Out of plane distances should have graphical output c.f. a distance.

    o 'findligand --help' does not list x-pos, y-pos,... (there may be more)

    o we may want to lose the HID part of the tutorial


----
Sat Nov 27 10:58:27 GMT 2010

  o merge a 3GP into tutorial modern then try to undisplay hydrogens
    with Bond Parameters.  Fail (because of new bonding algorithm) - not for 0.6.2.


----
Sat Nov 27 10:58:27 GMT 2010

  o ncs difference graph updating on autofit rotamer and refine residue

---
Tue Nov 30 02:42:51 GMT 2010

  o The hydrogens on DTT are drawn wrongly (additional half-bond).

* Too complicated for now

----
Tue Dec  7 00:37:42 GMT 2010

    student project:

   dig out whatcheck parsing interface, parse more info and
   automatically fix stuff (needs (more) intelligence).


----
Tue Dec  7 15:25:30 GMT 2010

    Here is how to run molprobity probe for just the interactions of
    environment onto the ligand (and vica versa):

    (No internal interaction of ligand)

   Here residue 459 is the ligand:

   probe -u -both "459" "not 459" 2gpu-A459.pdb 2gpu-coot-0.pdb > probe.dots

   Do this after running reduce of course (so that the Hs are pointing
   in good directions).

---
Wed Dec  8 14:37:58 GMT 2010

  Francis Reyes

  On pressing Esc during refinement:

	Can we have a dialog box pop up summarizing the geometry and
	asking us to accept/reject instead of reverting back?
	Sometimes a real space refine takes too long/gets lost when
	the best fit to the density is observed before that happens.


---
Mon Feb 28 17:01:48 GMT 2011

   in make a difference map (say for overlayed ligand structures)
   find the scale the maps (around a given spot) mean, standard
   deviation perhaps?


----
Sun Jan  9 17:21:10 GMT 2011

   How about this: map the surface of a protein onto a cylinder,

   Then unwrap the cylinder and display as a 2d plot.

   Do that for both sides of an interface.

   or mutant vs native.

   so we will need some way to mark the surface of atom selection.



----
Mon Jan 10 10:50:29 GMT 2011

    after changing the interface, e.g. c-interface.h

    you will probably need to do:
    an install in scheme
    an install in python
    run swig to make new coot.py
    an install in src, to update installed coot.py



---
Sun Mar 20 23:08:50 GMT 2011

checkmol/matchmol

GPL Pascal

http://merian.pch.univie.ac.at/~nhaider/cheminf/cmmm.html


---
Sun Jun 19 14:15:19 BST 2011

    JED:

    Add an tool to add OP3 to DNA and RNA. Find the torsion of the OP1
    and OP2. Average.  Add 180 then position OP3 by torsion,angle,bond
    (use the values in the dictionary).

    (ideal DNA and RNA helix builder doesn't add them - you might like
    to reconsider that).

---
Sun Jun 19 14:18:41 BST 2011

    JED:

    Tool to WC base-pair a residue range and put the results into the
    same molecule (as the reference) but a different chain of course.

* Done.


----
Wed Jul 20 19:34:25 BST 2011

    Ctrl Shift middle-mouse behaves differently to Shift Ctrl middle-mouse


----
Fri Jul 22 16:43:47 BST 2011

    Make a small tutorial for jligand link making.

    Find something from the PDB?

    Check jligand tutorial first?


---
Sun Jul 10 23:29:32 BST 2011

   Note:
   When making a scrolled list to add things in to, don't forget to put
   the vbox into a viewport and the viewport into the scrolled window
   (e.g. nomenclature errors dialog).

---
Mon Jul 11 11:58:13 BST 2011

   2y0z has problematic Z40 on reading.  Why?


----
Wed Jul 20 13:03:27 BST 2011

   ca+ ligands view mode should not be able to click on waters (or
   things that are not ca/ligands!)


----
Tue Jul 26 23:11:17 BST 2011

    Mutate and autofit to an MSE should change the atoms to HETATM,
    but it does not.

    So, minimol's atom class needs 'bool is_hetatm' flag.

    Import: minimol's residue constructors from CResidue * need to set
    the is_hetatm flag by testing at->Het.

    Extraction: When constructing the pcmmdbmanager(), we need to set
    at->Het = true when making the CAtom *.


---
Thu Jul 28 14:26:13 BST 2011

    Need to import and display the refmac external restraints (from a
    file)


----
Thu Jul 28 14:42:51 BST 2011

    Must have user defined colour system! (for reading prosmart
    output)

    here: green (good alignment), red (bad alignment), white (not aligned)


----
Fri Jul 29 19:48:03 BST 2011

    Importing an sdf/mdl file should create a residue with HETATMs!

* Done, I think - needs checking.

    Get the TLC from the first line (if the first line consists of 3 letters)


----
Fri Aug 12 15:59:29 BST 2011

   Areej bug: Adding an altconf on a ligand (hetgroup) makes the
   atoms into ATOMs, (they were HETATMs)

    or is it that ligands with alt confs are drawn without dictionary?

----
Fri Aug 12 16:05:07 BST 2011


   Nice feature:

   In the sequence view (the window needs a title) it would be nice if
   the ligands had a highlighting background colour and showed the TLC
   (and molecule name?) as a tooltip.

   Yes.  Very nice.

----
Fri Aug 12 16:07:05 BST 2011

   Areej Bug. (Another one).

   Add a Glycerol using Solvent Ligands.

   Add another.

   They go into different chains.

   Badness


----
Fri Aug 12 16:17:52 BST 2011

    In the Solvent Ligands dialog, DTT should be added.

    And it would be nice if the molecule names were there too.

---
Fri Aug 12 12:29:03 BST 2011

   INFO:: For new depositions:

   Parse this:
   http://www.ebi.ac.uk/pdbe/searchResults.html?display=latest&tab=pdb
   http://www.ebi.ac.uk/pdbe/searchResults.html?display=latest&tab=pdb

   Or this, perhaps better: The rss feed:
   http://www.ebi.ac.uk/pdbe/pdblatest/latest_pdb.xml

   Then get:
   http://www.ebi.ac.uk/pdbe-srv/view/files/$code.ent
   http://www.ebi.ac.uk/pdbe-srv/view/files/r{$code}sf.ent

   Then cif_to_mtz

* Done!  For the most part...

---
Mon Sep  5 16:19:45 BST 2011


dbi for COD:


guile> (use-modules (dbi dbi))
guile> (define db-obj (dbi-open "mysql" "cod_reader::molecules:tcp:www.crystallography.net::")
... )
guile> db-obj
#<guile-dbi open mysql cod_reader::molecules:tcp:www.crystallography.net:: (0 . db connected)>
guile> db-obj
#<guile-dbi open mysql cod_reader::molecules:tcp:www.crystallography.net:: (0 . query ok, got results)>
guile> (display db-obj)
#<guile-dbi open mysql cod_reader::molecules:tcp:www.crystallography.net:: (0 . query ok, got results)>
guile>
guile> (dbi-query db-obj "select * from numbers")
guile> db-obj

(write (dbi-get_row db-obj)) (newline)
(write (dbi-get_row db-obj)) (newline)
(write (dbi-get_row db-obj)) (newline)
(write (dbi-get_row db-obj)) (newline)

----
Wed Aug 17 16:05:36 CEST 2011

Some ideas for Control key bindings:

    C-c to copy residue

    Shift C-c to copy a molecule

    C-v to paste residue/molecule to new molecule

    C-x to delete residue

    Shift C-x to delete (undisplay) molecule.


----

  learnable (discoverable),
  usable (get stuff done with least amount of clicking).
  forgiving (undo),
  repsonsive (feedback),
  asthetics (pretty)


---
Thu Aug 18 16:25:07 CEST 2011


   3pcq for FEL data (photosystem I)


---

   c.f.  Pioglitazone with Rosiglitazone


----

   Discuss with Max: 3s5x and its refmac LINKR records

----

   3oeg: the BCLs at the end of the chain: can we navigate to them
   correctly in density fit and geometry graphs?

----

   "At least one person should look at the map" - GWK

   1qw9

----

   Dale Tronrud structures: 1qlw - nice difference map peaks, waters,
                                   phosphate, disulphide

                            3ls9 - lots of model-building errors,
                                   missing ligand? badly built loop
                                  THR-ILE mutation

                            3oeg - BCL fantasy.


                            2qns - retracted structure - lots of substantial
                                   mistakes good for tutorial?


----
Wed Oct 26 13:49:32 EDT 2011

	predict3d for membrane proteins?


----
Fri Oct 28 11:20:15 EDT 2011

   ligand expo -> browse -> popular drugs


----
Sat Oct 29 16:36:25 EDT 2011

   allow colour by c-a deviation , c-b deviations etc.  (user-defined scale and
   colour map of course)

-----
Thu Dec  8 17:09:55 GMT 2011

    interesting glyco:  3u2s, 1s4p


    2fbj fails - goes into neighbour density.


----
Sat Dec 31 18:09:09 GMT 2011


    Failing ligands:

	4a55 A 2062. P08 Prodrgified.  Ring oxygen has 3 bonds.
[19:27:05] Explicit valence for atom # 10 O, 3, is greater than permitted


 PLP  in 3zzj 1246 A


---
Sun Jan  8 12:07:43 GMT 2012

   to get the lbg icon labels on Ubuntu:

   gconf-editor desktop -> gnome -> interface -> toolbar_style "both"


----
Tue Jan 10 06:03:39 GMT 2012

   The new way to set data, set user data on a gtk object:

   gtk_object_set_data(GTK_OBJECT(dialog), "goograph", this);

   // and in the static callback function:
   coot::goograph *g_p = (coot::goograph *) gtk_object_get_data(GTK_OBJECT(widget), "goograph");


---
Fri Jan 13 01:17:45 GMT 2012

    For GLSL
    Triangle order optimization:
    http://gameangst.com/?p=9
    http://www.lighthouse3d.com/tutorials/glsl-core-tutorial/vertex-shader/


---
Fri Jan 13 01:23:15 GMT 2012

   Conversation with Bernie:

   Is it possible to track screen X,Y of the mouse when over chi angle
   buttons and selectively only change to a new selected (highlighted)
   chi angle if delta(Y) > delta(X)?

   Something for 0.8?

* Done, I think.  Or at least, tinkered with...


---
Tue Jan 24 19:15:37 GMT 2012

gentoo libtool usage:
 * Running libtoolize --copy --force --install --automake ...


---
Mon Jan 30 11:45:55 GMT 2012

   Mogul chemistry perception

      determined using input file (mol, mol2, pdb) information.

      http://www.ccdc.cam.ac.uk/support/documentation/mogul/mogul/mogul.3.12.html

      There is no guarantee that bond-type deduction or hydrogen-atom
      addition will be completely correct. Consequently, you should
      check the changes that Mogul has made. A summary of the changes
      made will be given in a Structure edited pop-up.


----
Fri Feb  3 16:36:37 GMT 2012

   relative rpath:

  http://groups.google.com/group/gnu.gcc.help/browse_thread/thread/1b713af28905247b?pli=1

  man ld.so

http://support.bibblelabs.com/webboard/viewtopic.php?p=64073&sid=04162de5073a8e07db92d0a0c22e23b6

contains($$list($$[QT_VERSION]), 4.2.*) {
    QMAKE_LFLAGS+=$${QMAKE_RPATH}\\\$\$ORIGIN/../lib
} else {
    QMAKE_LFLAGS+=$${QMAKE_RPATH}\\$\$ORIGIN/../lib
}

http://enchildfone.wordpress.com/2010/03/23/a-description-of-rpath-origin-ld_library_path-and-portable-linux-binaries/

consider chrpath

http://stackoverflow.com/questions/6323603/ld-using-rpath-origin-inside-a-shared-library-recursive

    how about this:
   LIBS=-Wl,-rpath,'$${ORIGIN}/../lib -Wl,-rpath,/usr/lib'


---
Tue Jan 31 22:44:31 GMT 2012

rdkit

python $RDBASE/rdkit/Chem/Features/ShowFeats.py --writeFeats --fdef=$RDBASE/Data/BaseFeatures.fdef 1ezq_RPR.sdf



---
Fri Feb  3 11:46:48 GMT 2012

on windows:

ECHO %HOMEDRIVE%%HOMEPATH%


----
Tue Feb 14 11:54:31 EST 2012

   need a test that updating restraints from mogul works with atom names that are not 4-chars.

   mogul::get_bond_type()

----
Mon Feb 20 17:42:28 GMT 2012

   3t3g has a covalently linked ligand?


----

   we have sets of pdb files and cif files generated by different
   methods given the same SMILES string.

   give me a tool that consolidates the names in the files - and
   restraints of course so that they are "the same".



---
Mon Mar 19 16:55:16 GMT 2012

   Interesting project?  Maybe rama plot can be rendered over this?

   http://giv.sourceforge.net/gtk-image-viewer/gtkimageviewer_tutorial.html

---
Wed Apr  4 15:19:44 BST 2012

  ---> we drop the image url

  such as

  http://www.chemspider.com/ImagesHandler.ashx?id=24747352&w=200&h=200

  extract chemspider_id = 24747352

  --> we curl get mdl mol file:
  "http://www.chemspider.com/FilesHandler.ashx?type=str&striph=yes&id=" + chemspider_id


  and while you are at it, you might get the wikipedia page, look for

  href="http://www.chemspider.com/Chemical-Structure.24747352" to extract the chemspider_id


---
Tue Apr  3 17:04:40 BST 2012

valgrind:

 valgrind --leak-check=full --suppressions=../../coot/trunk/guile.supp --suppressions=../../coot/trunk/valgrind-python.supp --error-limit=no --log-file=valgrind.log .libs/lt-coot-real

# valgrind --leak-check=full --suppressions=../../coot/trunk/guile.supp --error-limit=no --log-file=valgrind.log .libs/lt-coot-bin
 valgrind --leak-check=full --suppressions=../../coot/git/coot/guile.supp --error-limit=no --log-file=valgrind.log .libs/lt-coot-bin


  Where are the python suppressions?

   http://stackoverflow.com/questions/16659781/memory-leaks-in-gtk-hello-world-program

   For debugging glib/gtk programs I would use this command:

   G_SLICE=debug-blocks valgrind --tool=memcheck --leak-check=full <gtk program>
   G_SLICE=debug-blocks will turn off gtk's advanced memory management to allow valgrind to show correct results.
   --leak-check=full will show stack traces for the leaked memory blocks.

   You can also use --show-reachable=yes to see stack traces for all
   memory blocks that haven't been free when the program exits.

   There is also the massif valgrind tool that tracks memory usage to
   show which parts of the program are using the most memory.

   Run program under massif:

   G_SLICE=always-malloc valgrind --tool=massif --detailed-freq=2 --max-snapshots=400 --num-callers=20 <gtk program>

   Show results:

   ms_print massif.out.<pid>

----
Mon Apr  9 16:45:32 BST 2012

   COOT_CHEMICAL_FEATURES_DEF file needs to be put in place (or the
   env var to be defined in coot script).  See sdf-interface.cc:get_feature_factory().

---
Tue May  1 12:29:50 BST 2012

   To get and set string on widgets use
   g_object_set_data()
   and
   g_object_get_data()

   coot::dictionary_residue_restraints_t *t =
      (coot::dictionary_residue_restraints_t *) g_object_get_data (G_OBJECT (chooser), "restraints");


----
Tue May  1 15:37:30 BST 2012

  RDKit UFF atom types? UFFGetMoleculeForceField()


---
Thu May  3 18:45:01 BST 2012

    energy-lib.cc

	 // FIXME, allow bond definitions with no distances?
	 if (0)
	    std::cout << "WARNING reject energy lib bond \"" << atom_type_1
		      << "\" \"" << atom_type_2 << "\" \"" << type << "\"" << std::endl;



----
Fri May 18 12:34:38 BST 2012

// I think that graphics_info_t::Geom_p() should be passed to this function.
//
void
molecule_class_info_t::makebonds() {


----
Tue May 29 19:35:49 BST 2012

    projects:

    make graphics look nice on white background

    Add data analysis graphs sigF vs F etc.

    Learn Qt.  Make ramachandran widget - with atom selections

    Transparent surfaces via z-sorting


----
Fri May 18 12:34:38 BST 2012

// I think that graphics_info_t::Geom_p() should be passed to this function.
//
void
molecule_class_info_t::makebonds() {


----
Sun May 20 22:34:54 BST 2012

can redefine functions be done with a macro? using symbol->string and string->symbol?


----
Tue May 22 06:34:20 BST 2012

   Burrow-owl:

   Needed starparse, g-wrap-1.9.14, guile-cairo-1.9.91, guile-gnome-platform-2.16.2
   and guile-1.8.8.  Becuase guile does not have the same prefix as
   target, we need to set PKG_CONFIG_PATH.  guile-cairo is needed to
   get gtk parts of guile-gnome-platform to compile and install.

   guile-gnome-platform needs indent.

prfx=$HOME/burrow-owl
export PATH=$prfx/bin:$PATH
export STARTPARSE_LIBS=$prfx/lib
export STARTPARSE_CFLAGS=$prfx/include
export PKG_CONFIG_PATH=$prfx/lib/pkgconfig:/usr/lib64/pkgconfig
./configure --prefix=$prfx

----
Tue May 22 11:07:38 BST 2012

	fast lennard jones, fast double sqrt.

----
Thu May 24 10:58:11 BST 2012

   get rid of "Won't read preferences" output.

---
Sat May 26 10:36:23 BST 2012

   Newcastle: add a slide or 2 on restraints: planes and torsions
   (different from molecular mechanics - c.f. antechamber).
   43 non-elemental atom types in GAFF, 93 in refmac


----
Fri May 25 14:46:38 BST 2012

	alt conf ligands 3ljj

* Done.


----
Sun May 27 22:55:54 BST 2012

    Here's an interesting function:

    given a molecule (model) (and an optional atom selection?) implement
    get_distances(min_dist, max_dist, max_n_distances)


    which finds all atom-atom distances in the atom selection and
    makes a random selection of them and returns max_n_distances

* Done.

----
Wed Jun  6 13:56:17 CEST 2012

   when generic objects are solid, the point size seems fixed.

----
Fri Jun  8 15:53:56 CEST 2012

QM treatment of large systems

Hisao, Sanchez-garcia, Doerr J. Phys. Chem B 2011 review

consider London dispersion

Goerigk, Grimme 2011, 13, 6670, Phys. Chem. Chem. Phys.


---
Sat Jun  9 17:15:40 CEST 2012

  PDB_REDO add to extension menu next to pdbe getting.

---
Wed Jun 27 10:29:54 BST 2012

   INFO:: format in scheme/guile

(format #t "~3,'0d~%" 5)
->
005

(format #t "~4f%" 6.321567)
->
6.322


http://www.gnu.org/software/guile/manual/html_node/Formatted-Output.html#Formatted-Output


---
Wed Jun 27 22:48:01 BST 2012

   building carbohydrate

   nicotinic acetylcholine receptor alpha bungarotoxin: 2qc1

   a structure with interesting carbohydrate to build:  3zr6
   also 4fom (low res)


---
Wed Jun 27 10:29:54 BST 2012

   INFO:: example of remove and remove_if

#include <vector>
#include <string>
#include <algorithm>
#include <iostream>
#include <functional>

// for erase_if()
class eraser {
public:
   std::string s;
   // the constructor, can be information that needs to be used
   // internally in the operator() function.  This is run once
   //
   eraser(const std::string &s_in) {
      s = s_in;
   }
   // The passed object type is the <type> of the vector.
   // Run for each an item in the vector to see if it is deletable.
   bool operator()(const std::string &x) const {
      std::cout << "comparing " << s << " vs " << x << std::endl;
      return (x == s);
   }
};

int main(int argc, char **argv) {

   std::vector<std::string> v;
   v.push_back("One");
   v.push_back("Two");
   v.push_back("Three");
   v.push_back("Four");
   v.push_back("Five");

   std::string bad_boy = "Three";

   // remove() and remove_if() generate a useful pointer used by erase()
   v.erase(std::remove(v.begin(), v.end(), "Two"), v.end());
   v.erase(std::remove_if(v.begin(), v.end(), eraser(bad_boy)), v.end());

   for (unsigned int i=0; i<v.size(); i++)
      std::cout << "   " << i << " " << v[i] << std::endl;
   return 0;
}

   // also see erase/remove_if usage in morph_fit_uncrunch().


Here is a more simple example:

      auto eraser = [] (const TextureMesh &tm) {
         return (tm.get_name().find("-section") != std::string::npos);
      };
      texture_meshes.erase(std::remove_if(texture_meshes.begin(), texture_meshes.end(), eraser),
                           texture_meshes.end());

---
Tue Jul  3 17:14:08 BST 2012

CentOS 6 extras

glib2-devel zlib-devel  (coot config)
gtk2-devel

(for coot clipper config)

libXt-devel (for gtkglext)
libgnomecanvas-devel for coot configure

for mosflm (ccp4)
ncurses-devel

for xemacs:
yum install Xaw3d-devel libXp-devel xorg-x11-xbitmaps libXaw-devel

bison for rdkit.

---
Wed Jun 27 22:48:01 BST 2012

   a structure with interesting carbohydrate to build:  3zr6


---
Thu Jul 26 19:47:52 EDT 2012

    INFO:: other projects

    Mac Coot,
    Native Mac Coot
    All-molecule scoring modifications, 2011 presentation follow-up
    cif-merge
    cif-grep
    cif2mtz (clipper)
    understand what's in COD
    look at pi-pi stacking in ligand protein complexes.
        get statistics for plane distances and angle offsets,
        so that I can model that distribution to generate a penalty function
        in the regularizer
    zernike-like moments for ligand fitting

    b value distribution histogram


    --comp_id x


----
Sun Jul 29 16:31:40 EDT 2012

    Roberto:

    I want a button that splits a water into A and B conformers 50 50
    occs, 0.7A appart and jiggle-fitted

    Call it WASP.


----
Tue Jul 31 08:56:41 EDT 2012

    Contact Alex for LH protein?


----
Tue Jul 31 11:16:57 EDT 2012

   Howard:
   given an mtz file with anomalous data (deltas) and a pdb file, show
   the anomalous map


----
Tue Jul 31 11:17:55 EDT 2012

   Why is refmac not run after libcheck SMILES?

   4th spears lecture

   William asbury


---
Tue Aug  7 00:13:03 BST 2012

make coot-user-manual.html
texi2html ../../coot-read-only/trunk/doc/coot-user-manual.texi
*** Duplicate node found: Sectionless functions (in ../../coot-read-only/trunk/doc/cc-interface.hh.texi l. 411)
** Node following `Drag and Drop Functions' in menu `Sectionless functions' and in sectionning `Sectionless functions' differ
** `Sectionless functions' is up for `ligand-search-make-conformers-scm', but has no menu entry for this node
splitstr='-split_chapter' ; \
	texi2html --version ; \
	if [ $? = 0 ] ; then splitstr='-split=chapter' ; fi ; \
	texi2html $splitstr ../../coot-read-only/trunk/doc/coot-user-manual.texi ; \
	cd ..
1.82
*** Duplicate node found: Sectionless functions (in ../../coot-read-only/trunk/doc/cc-interface.hh.texi l. 411)
** Node following `Drag and Drop Functions' in menu `Sectionless functions' and in sectionning `Sectionless functions' differ
** `Sectionless functions' is up for `ligand-search-make-conformers-scm', but has no menu entry for this node
make coot-user-manual.html done
dvips -o coot-user-manual.ps coot-user-manual.dvi
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
' TeX output 2012.03.09:1647' -> coot-user-manual.ps
</usr/share/texmf/dvips/base/tex.pro></usr/share/texmf/dvips/base/texps.pro>
</usr/share/texmf/dvips/base/special.pro>.



----
Mon Aug  6 15:00:07 BST 2012

   try to pdbe get 4fts: refmac says:

Fatal error in ccp4spg_register_by_symops

   4e6n fails with label error

---
Thu Aug 30 12:17:31 BST 2012

   what is this? dictionary default values:

    Ponder, J. & Case, D. (2003). Adv. Protein Chem. 66, 27±85.

   from the refmac monomer library paper

   It's (from) a book.

----
Sat Sep  1 11:38:51 BST 2012

	add hydrogen bond analysis (understand output of reduce) into
	tutorials (validation?)

----

    things for MRC:
        carbohydrate building paper
        glsl
        build on a mac
        cif2mtz
        ffearing in low res maps - test
        new structures ligand analysis - moments?
        what's up with simplex refinement?

----
Sat Sep  1 11:58:18 BST 2012

   verify3d for membrane proteins?


----
Thu Sep 13 04:55:20 EDT 2012

  4eg6 is interesting to build - and good example of how to use fixed
  atoms in refinement.


---

   plif-related

 	1.  Cavasotto, C. "Ligand docking and structure-based virtual
 	screening in drug discovery." Current topics in medicinal
 	chemistry 7.10 (2007): 1006-1014.  Link to SFX for this item

	2.  McInnes, C. "Virtual screening strategies in drug
	discovery." Current opinion in chemical biology 11.5 (2007):
	494-502.  Link to SFX for this item

	3.  Barril, X. "Virtual screening in structure-based drug
	discovery." Mini reviews in medicinal chemistry 4.7 (2004):
	779-791.

----
Tue Sep 18 12:47:57 BST 2012

simplify_numbering() needs a scripting interface - and to work over
all chains.

   That will give us a function to remove insertion codes


----
Tue Sep 18 20:55:39 BST 2012

  How about a ring flip function where you identify an atom in a ring,
  it checks that there are less than 3 connections to the ring, then
  rotates 180 about one of the connecting bonds (the one with the
  largest number of atoms in the fragment) and back-rotates the
  other torsion (if exists), choosing and torsion that minimizes the
  movement of the atoms.


----
Fri Oct 26 14:07:13 EDT 2012

Dave:
   rotamers buttons should have name, not chi1!

* it does have the rotamer name (now)

Jeff
   tell me about the geometry of this residue, bond angle deviantions
   etc (as a table sorted on Z?)

   building a loop: I have a number of resdues, I want to see the
   geometric distrtions of the residues (c.f. how king does it with
   red springs for bonds, and fan for angles?)

For presentation next time:

   Add "it takes a brain to validate" slide
   figure for bond and angle restraints,
   Dig out the bayes slide, mention validation
     introduce probability and likelihood

Does zero-occupancy-residue-range work?


---
Tue Nov 13 15:46:06 GMT 2012

   2xkm is problematic when reading/converting the data.


---
Tue Nov 20 10:27:38 GMT 2012


   Phil Evans:

mutate then refine

INFO:: backup file coot-backup/_Users_PhilStuff_Projects_Varp_InmaVR_VR32_SeMet2_s13.pdb_Mon_Nov_19_13:45:35_2012_modification_123.pdb.gz
INFO:: replace_coords: 24 atoms updated.
ERROR:: Null atom_colour_map_p with COLOUR_BY_CHAIN_C_ONLY mode
ERROR:: Null atom_colour_map_p with COLOUR_BY_CHAIN_C_ONLY mode
ERROR:: Null atom_colour_map_p with COLOUR_BY_CHAIN_C_ONLY mode
ERROR:: Null atom_colour_map_p with COLOUR_BY_CHAIN_C_ONLY mode
ERROR:: Null atom_colour_map_p with COLOUR_BY_CHAIN_C_ONLY mode
ERROR:: Null atom_colour_map_p with COLOUR_BY_CHAIN_C_ONLY mode
INFO:: graphics_info_t::clear_up_moving_atoms...


----
Thu Feb 21 12:34:18 GMT 2013

OXT on multi-residue torsion:  OXT is left behind on rotation

----
Wed Apr 17 16:47:04 UYT 2013


   o sc: lawerence and colman jmb 1993

   might be worth a look.


----
Thu May 16 13:29:43 BST 2013

   Find areas of a map that should have model but do not:

   o make a partial model, run refmac, make a map, low res filter it,
     mask out the protein parts that we have, fill big blobs with dummy atoms - zero occ
     (these should be added to the partial model for sending back to
     refmac).  Make dummy atoms 1.5A apart.

   -> resulting map should have better density for the missing domain.  Does it?


-----
Thu Jun 27 15:40:01 BST 2013

    from chimera:

    create a new map by placing target points in the map (position
    them like go to blob) then mask a map around these atoms.

    Hmm... this is basically how Water+ works.  No point in making
    another interface.


------
Sat Oct  5 09:29:10 BST 2013

   Problems with python's pip:
tiresias ~/compile/pip-1.4.1> pip install tornado
Traceback (most recent call last):
  File "/home/paule/autobuild/build-coot+rdkit-pre-release-gtk2-python/bin/pip", line 9, in <module>
    load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 357, in load_entry_point
    """Yield named metadata resource as list of non-blank non-comment lines
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2394, in load_entry_point

  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2108, in load
    parse_map = classmethod(parse_map)
  File "/home/paule/autobuild/build-coot+rdkit-pre-release-gtk2-python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/__init__.py", line 10, in <module>
    from pip.util import get_installed_distributions, get_prog
  File "/home/paule/autobuild/build-coot+rdkit-pre-release-gtk2-python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/util.py", line 17, in <module>
    from pip.vendor.distlib import version
  File "/home/paule/autobuild/build-coot+rdkit-pre-release-gtk2-python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/vendor/distlib/version.py", line 13, in <module>
    from .compat import string_types
  File "/home/paule/autobuild/build-coot+rdkit-pre-release-gtk2-python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/vendor/distlib/compat.py", line 31, in <module>
    from urllib2 import (Request, urlopen, URLError, HTTPError,
ImportError: cannot import name HTTPSHandler

https://plus.google.com/117010240131763942181/posts/h3AzbmSQU6r

 install openssl-devel, then re-make python


-----
Sat Feb  8 22:57:51 GMT 2014

   Gaussian Legendre Integration:
   http://www.holoborodko.com/pavel/numerical-methods/numerical-integration/

------
Tue Mar  4 14:27:39 GMT 2014

   For ligands at RCSB:

   http://www.rcsb.org/pdb/ligand/ligandsummary.do?hetId=AMP


------
Tue Mar  4 14:27:39 GMT 2014

   The thumbnail for ATP should be:

            O-  O-  O-
            |   |   |
	 -O-P-O-P-O-P=0
            H   H   |
            O   O   O-

      H = vertical double bond

      It is.

---
Tue Mar 11 08:08:48 GMT 2014

Font stuff:

http://stackoverflow.com/questions/2071621/opengl-live-text-rendering
http://nothings.org/stb/font/

---
Fri May 30 03:55:36 CEST 2014

   mmdb documentation
   http://www.ebi.ac.uk/pdbe/docs/cldoc/object/cl_obj_surf.html
   http://www.ebi.ac.uk/pdbe/docs/cldoc/object/cl_obj_selfnc.html

   Delete hydrogens:
   (new-molecule-by-atom-selection 0 "//*//*[!H]")

   C-alphas selection
   (new-molecule-by-atom-selection 0 "//*//CA[C]")

---
Tue Jul  8 11:03:57 BST 2014

   glycam: what is this?

---
Tue Jul  8 11:03:33 BST 2014

  Boost for Android?

  http://stackoverflow.com/questions/14036311/official-boost-library-support-for-android-and-ios

---
Sat Jul 19 13:17:01 BST 2014

#include <iomanip>

   // the width settings specify the *minimum* width (i.e. the field
   must be at least specified number of characters).  If the number is
   longer than the minimum width, it just is wider.

   std::setw() before strings

   std::cout.width() before numbers # this is nonsense I now think. Use setw() for both 
                                      strings and ints.
   std::setw(6) to set the min width for a floating point field -0.123 doesn't seem to work.

	 // Formatted output:
	 //
	 // For float/double numbers
	 // Using std::fixed the precision is the number of decimal places
	 // use std::right << std::setprecision(3) << std::fixed << f
	 // You may need to set std::left at the beginning of the line (typically for strings)
	 // To reset from std::fixed:
	 // std::cout.setf(std::ios::fixed, std::ios::floatfield);
	 // See dictionary-bond-distributions.cc

   For integers:

   #include <iomanip>
   std::cout << "map " << itm->first <<  "  [" << std::setw(2) << itm->second.size() << "] ";


---
Sat Jul 19 13:31:04

 BST 2014

 ipython:

 http://archive.ipython.org/release/2.1.0/ipython-2.1.0.tar.gz

---
Fri Jul 25 13:56:46 BST 2014

  Store the bond order as an enum, not a string.  That makes
  convert_bond_type() conversion to rdkit type easier.

---
Sun Aug 17 18:10:34 BST 2014

   4mt6 good example for morphing - based no what though? Hmm.

----
Wed Aug 20 00:01:56 BST 2014

   If/when compiling guile-dbi, rename src/guile-dbi.x so that it gets rebuilt.

----
 3b75

 hba1c - or something like that.

----
IUCr Note

   o Sameer: java to javascript compiler - used to make javascript astexviewer

----
IUCr Note:

   Put the mogul/refmac colour annotations over the lbg representation
   of the figure.  Make it interactive.

----
Tue Aug 12 14:32:32 EDT 2014

   Sameer: Make the FLEV output as coordinates so that we can use it
   to make a figure and make it interactive.

---

   Scoring Protein-Ligand Complex interactions:

      http://pubs.acs.org/doi/abs/10.1021/jm050436v

   Improving the scoring of torsion? KDE by CCDC

      http://pubs.acs.org/doi/abs/10.1021/ci500156d

---


You can obtain the newest version of config.guess and config.sub from the ‘config’ project at http://savannah.gnu.org/. The commands to fetch them are

$ wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
$ wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'

----

watch this vid:

http://www.youtube.com/watch?v=aMSPwFvlICM

  * it was OK, bit old now.

---


   COD: /lmb/home/flong/COD/cod/cif/1/10/01

---

   How do I write atom names in an sdf file?

---

   o add Water Validation to validation tutorial. What about using the
     anomalous data (Nat Echols is doing this?)

   o Add intro to new validation report

   o 1qw9 bad trp

   o 4q8j many cis-peptides

   o 4d72 real non-pro cis

---

   Read this paper:

   Acta Cryst. (2007). D63, 42-49  [ doi:10.1107/S0907444906041059 ]

   EMatch: an efficient method for aligning atomic resolution subunits
   into intermediate-resolution cryo-EM maps of large macromolecular
   assemblies

   O. Dror, K. Lasker, R. Nussinov and H. Wolfson

   Synopsis: A method for detecting structural homologs of components
   in an intermediate resolution cryo-EM map and their spatial
   configuration is presented.


----

  CSHL 2nd Talk:

  Pirate, Parrot, Buccaneer, Prosmart and refinement(?)

----

   How can we find compact domains that are misplaced in density?

----

   Read this:

   practicalfragments.blogspot.com


----

   SLERPing:

   http://number-none.com/product/Understanding%20Slerp,%20Then%20Not%20Using%20It/
   http://www.cbloom.com/3d/

   Thomas Busser, “PolySlerp, A Fast and Accurate Polynomial Approximation of
   Slerp”, Game Developer Magazine, February, 2004.

   http://mollyrocket.com/forums/molly_forum_246.html

   Shoemake, K., Animating rotation with quaternion curves, Computer
     Graphics 19, No 3 (Proc. SIGGRAPH'85), 245-254, 1985.
   Pletinckx, D., Quaternion calculus as a basic tool in computer
     graphics, The Visual Computer 5, 2-13, 1989.


   Smoothing quaternion interpolations:

   http://allenchou.net/2014/04/game-math-interpolating-quaternions-with-circular-blending/

   Do it with Bezier splines?
   http://caig.cs.nctu.edu.tw/course/CA/Lecture/slerp.pdf

----

  Refinement of hydrogens:  Allow them to be refined by gemetry gradients
     but not by density map (Garib).



----

   How to do file -> string vector

   std::ifstream f(file_name.c_str());
   if (f) {
      std::vector<std::string> lines;
      std::string line;
      while (std::getline(f, line)) {
	 lines.push_back(line);
      }
    }


------------

    How to use prefer_python

	 if (graphics_info_t::prefer_python) {
#if defined USE_PYTHON
	    std::string python_command("xxx()");
	    safe_python_command(python_command);
#endif // USE_PYTHON
	 } else {
#if defined USE_GUILE
	    std::string scheme_command("(xxx)");
	    safe_scheme_command(scheme_command);
#endif // USE_GUILE
          }

-----

   ligand series:

   Structures have been deposited into the PDB with the following
   codes; 4bf2 (Ask1/Staurosporin), 4bhn (Ask1/Compound5), 4bib
   (Ask1/Compound1), 4bic (Ask1/Compound2), 4bid (Ask1/compound3),
   4bie (Ask1/Compound4).

   http://onlinelibrary.wiley.com/enhanced/doi/10.1002/pro.2298


---

   Libs on a Mac:

   https://blogs.oracle.com/dipol/entry/dynamic_libraries_rpath_and_mac


----

   librsvg gdk-pixbuf-query-loaders:

   https://www.guiguan.net/fix-python-graph-tool-couldnt-recognise-svg-problem/

later:
Thu 28 Dec 2017 01:32:59 GMT

On Debian 14.04
$ coot
Error loading icon: Couldn't recognize the image file format for file '/home/paule/autobuild/Linux-emsley-vm-ubuntu1404-enhanced-ligand-pre-release-gtk2-python/share/coot/pixmaps/05_Hotel_Icon_Hair_Salon.svg'
Error loading icon: Couldn't recognize the image file format for file '/home/paule/autobuild/Linux-emsley-vm-ubuntu1404-enhanced-ligand-pre-release-gtk2-python/share/coot/pixmaps/3-c-new.svg'
Error loading icon: Couldn't recognize the image file format for file '/home/paule/autobuild/Linux-emsley-vm-ubuntu1404-enhanced-ligand-pre-release-gtk2-python/share/coot/pixmaps/3-c-other.svg'
Error loading icon: Couldn't recognize the image file format for file '/home/paule/autobuild/Linux-emsley-vm-ubuntu1404-enhanced-ligand-pre-release-gtk2-python/share/coot/pixmaps/3-c.svg'
etc
$ apt-get install librsvg2-dev

(maybe it was not the dev package but the libs/common that solved it, librsvg2-common)



----
Wed 20 Feb 2019 16:07:02 PST


$ ls ~/ccp4/ccp4-src-2015-02-05%/ccp4-6.5/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
$ ls "/Users/pemsley/ccp4/ccp4-src-2015-02-05/ccp4-6.5/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so"
$ otool -L "/Users/pemsley/ccp4/ccp4-src-2015-02-05/ccp4-6.5/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so"

fragment of loaders.cache:

"/Users/pemsley/ccp4/ccp4-src-2015-02-05/ccp4-6.5/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ras.so"
"ras" 4 "gdk-pixbuf" "The Sun raster image format" "LGPL"
"image/x-cmu-raster" "image/x-sun-raster" ""
"ras" ""
"Y\246j\225" "" 100

"/Users/pemsley/ccp4/ccp4-src-2015-02-05/ccp4-6.5/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so"
"svg" 2 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL"
"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" ""
"svg" ""
" <svg" "*    " 100
" <!DOCTYPE svg" "*             " 100


----

   using lldb:

   lldb .libs/coot-bin
   process launch -- --no-graphics

   http://lldb.llvm.org/lldb-gdb.html

    How to run lldb on a core:

   $ lldb .libs/coot-bin -c /cores/core.18439

    How to set a break point in a function:

   break set --name malloc_error_break

    and a member function:

   break set --name coot::restraints_container_t::bonded_flanking_residues_by_residue_vector

   using gdb:

   break Shader::Use()

   Hmm... It seems that 
   break g_application_run() doesn't work,
   but
   break g_application_run
   does.
   If that doesn't work crash it using this:
   int *x = 0;
   std::cout << " " << *x << std::endl;


----

   torsion fit this residue should do a rigid body refinement after each modification,
   or perhaps store the best torsion set and RBR the best ones.


---

Thu Jul 23 12:31:24 BST 2015

   Student/paper project:
   Find low points in map: Look at many mannoses say LSQ plane of
   pyranose, projection of C1-C4 onto the LSQ plane and Plane->O2 for
   "up" - the cross of these will give the other dimension.  Make a
   grid.  Sample map around NAGs, BMA and MANs. Use low points
   (convert to internal coordinates) (making dummy atoms?) to assist
   score from z_weighted_density_score_new() in multi_residue_torsion_fit_map().
   Low points may be resolution dependent.

----

   Student/paper project:

   Where mbf is median b factor
   What's is the mbf(res)/mbf(protein) for each of the residues in an N-linked tree?
   Is this resolution dependent?


----

    Buckyball coords

    https://gist.github.com/jarvist/4570215

------

    Topological RS Chirality

    http://www.chemcomp.com/journal/chiral.htm

    Clever old Labute.

-----

    Is this interesting?

http://www.koreascience.or.kr/article/ArticleFullRecord.jsp?cn=CDCHCH_2009_v14n6_404


----

   o experiment: use Rdkit with pdb perception to generate molecules and
     compare them with molecules generated from reading the cif.

------

	Interesting Ligands:

   TF7 in 3nia: can be remodelled as glycerol? (next to real ligand)
                dihydoxy sulfanyl is "strange" chemistry (c.f neighbour ligand)
                not published

------

    Pathology scatter plots: holiday project.
    Use matplotlib

------

    gtk font size:

    http://stackoverflow.com/questions/1269326/how-can-i-change-the-font-size-in-gtk

------

    investigate stl_tree.h

------

    openmp notes:

    http://www.compunity.org/events/pastevents/parco07/parco_cpp_openmp.pdf

    http://www.viva64.com/en/a/0054/

    http://michaelsuess.net/publications/suess_leopold_common_mistakes_06.pdf

------

    readline:  Add -lcurses to shlib/Makefile:

    SHLIB_XLDFLAGS =  -Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)` -lcurses

    (or change support/shobj-conf which creates this)

    Does this mean I can now use command line editing in coot --no-graphics
    --python?

    e.g. import readline

-----

   New Presentation slides

     to CSHL talk: A front page: accession code, comp-id

   non-Pro cis-peptides

     why is cis-Pro so much more common than non-cis Pro?

   non-Pro cis-peptides in structures

     1) "if you don't know what a cis-peptide is and don't care to
        find out when Coot tells you that you've introduced one, then on
        your own head be it - there is a validation tool that will navigate
	you to all the cis-peptides in your structure should you care to
	press the button. Validations tests won't help you if you choose
	not to run them."

     2) ... but there was a bug ... as I was writing the code and
     testing it, I could see that there was a danger of flipping the N
     to the same (of the CA-CA vector) side as the CO and then coot
     would happily use plane restraint minimization to create a
     cis-peptide... so I tried to make this less probable by
     introducing a non-linearity term so that the atoms further from
     the pull point are pulled less than their linear fraction (by
     raising a fraction to a power). Unfortunately I made an
     arithmetic error which meant that I had made such pull
     transformations *more* likely than less.

     October 2014 I heard Jane Richardson discuss the problem and
     reviewed, fixed the problem that afternoon.

     Given that several papers have recently (now) been published about
     non-Pro cis-peptides in the PDB, it seems that my expectation of
     skill had not been met in large part and it necessary for me to
     rework the interface to remove the possibility unitentional
     creation of non-Pro cis-peptides during refinement.

  trans-restraints:

     what's trans, cis? draw arrows to mid-line.  Why is this
     restraint necessary (because user can create non-local changes
     that have large energy difference (and accidentally create a
     peptide with and omega of 89 degress)).

     how does this help refinement?  Before and after video?



-----

     Quickly estimate B-factor of atoms:

     Using PDB data, do a plot of density vs radius for atoms at various
     resolutions so that

     rpo(r) -> resolution

     Compare that with what we have in a fragment model.

----

   http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/

----

   GLSL cylinders and more:

   http://stackoverflow.com/questions/9595300/cylinder-impostor-in-glsl

----

   Modeling Local Structural Rearrangements Using FEP/REST: Application to
   Relative Binding Affinity Predictions of CDK2 Inhibitors

   http://pubs.acs.org/doi/abs/10.1021/ct300911a?journalCode=jctcce

PDB: 1h1q
PDB: 1h1r
PDB: 1h1s
PDB: 1oiu
PDB: 1oi9
PDB: 1oiy
PDB: 1ioy

   Also:

   Accurate Binding Free Energy Predictions in Fragment Optimization
   Thomas B. Steinbrecher, Markus Dahlgren, Daniel Cappel, Teng Lin,
   Lingle Wang, Goran Krilov, Robert Abel, Richard Friesner, and Woody Sherman

   Journal of Chemical Information and Modeling 2015 55 (11), 2411-2420


----

     2bmd resdiue 72 is good for trans peptide restraints testing.
     kw5124 Touw et al (2015): Trans-cis and peptide plane flips

----

     sphere and interesting stuff

     http://paulbourke.net/geometry/circlesphere/

----

     How to make a core dump for CCP4 Coot

     which coot
     cp that coot script to local-dir
     edit to remove limit
          hack in value of CCP4_PREFIX
     $ unlimit coredumpsize
     $ gdb /lmb/home/public/xtal/CCP4/ccp4-64/ccp4-7.0/libexec/coot-bin core.14139


----

     FLEV and Residue->2D Problems:

     00J in 2xir is a good example for dictionary generation (and slider test?).
     Yes, show this in the LIGANDS meeting (it's good for tutorial too)

     FLEV: 4f6x: ZYL A 301: Mg-O on ligand: make it O- and delete the H.
     R-2D: 3p8x: ZYD A 1:   OH on tail should be HO (also HUD ligand)


----

     Dictionary files:

     e.g. ftp://ftp.ebi.ac.uk/pub/databases/msd/pdbechem/files/mmcif/1H2.cif

----

     clustering lib: interesting? https://github.com/dsteinberg/libcluster


----

    FBDD, interesting?

    http://www.slideshare.net/AnthonyCoyne1/fragment-based-drug-discovery

----


   To stop this:

$ coot --no-graphics --python --script comp_ids.py

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "all_comp_ids.py", line 19, in <module>
    m = pyrogen.rdkit_mol_chem_comp_pdbx(cif_file_name_in, comp_id)
TypeError: No Python class registered for C++ class RDKit::ROMol

imort rdkit # we need this of course
# but don't forget:
from rdkit import Chem

----

   Keep an eye on this:

   https://apps.fedoraproject.org/packages/coot

-----


when trying to lib bundle, and run coot-bin:

* thread #1: tid = 0x0000, 0x000000010bf485e1 libcoot-bundle.0.dylib`set_model_toolbar_docked_position + 337, stop reason = signal SIGSTOP
use_graphics_interface_state ()
Running python script /Users/pemsley/.coot-preferences/00-console.py
Running python script /Users/pemsley/.coot-preferences/ball_for_sticks.py
Running python script /Users/pemsley/.coot-preferences/coot_preferences.py

** (coot-bin:68769): WARNING **: Widget is NULL: accept_reject_dialog_frame_docked
/Users/pemsley/Projects/build-enhanced-ligand-no-guile-gtk/src/.libs/coot-bin:11: GtkWarning: void gtk_widget_set_sensitive(GtkWidget *, gboolean): assertion `GTK_IS_WIDGET (widget)' failed
  /opt/X11/lib/libX11.6.dylib
                             `
/Users/pemsley/Projects/build-enhanced-ligand-no-guile-gtk/src/.libs/coot-bin:11: GtkWarning: void gtk_widget_hide(GtkWidget *): assertion `GTK_IS_WIDGET (widget)' failed
  /opt/X11/lib/libX11.6.dylib
                             `

** (coot-bin:68769): WARNING **: Widget is NULL: model_fit_refine_toolbar_handlebox
/Users/pemsley/Projects/build-enhanced-ligand-no-guile-gtk/src/.libs/coot-bin:15: GtkWarning: GtkWidget *gtk_widget_get_parent(GtkWidget *): assertion `GTK_IS_WIDGET (widget)' failed
  /Users/pemsley/ccp4/ccp4-src-2015-02-05/ccp4-6.5/lib/libgdk_pixbuf-2.0.0.dylib
                                                                                `I
failed to lookup toolbar

** (coot-bin:68769): WARNING **: Widget is NULL: main_window_model_fit_dialog_frame_left

** (coot-bin:68769): WARNING **: Widget is NULL: main_window_model_fit_dialog_frame

** (coot-bin:68769): WARNING **: Widget is NULL: model_fit_refine_toolbar_handlebox

** (coot-bin:68769): WARNING **: Widget is NULL: vbox1

** (coot-bin:68769): WARNING **: Widget is NULL: model_toolbar

** (coot-bin:68769): WARNING **: Widget is NULL: model_toolbar_vsep_toolitem

** (coot-bin:68769): WARNING **: Widget is NULL: model_toolbar_hsep_toolitem

** (coot-bin:68769): WARNING **: Widget is NULL: model_toolbar_style_toolitem

  * frame #0: 0x000000010bf485e1 libcoot-bundle.0.dylib`set_model_toolbar_docked_position + 337
    frame #1: 0x000000010b8c8673 _coot.so`_wrap_set_model_toolbar_docked_position(_object*, _object*) + 195
    frame #2: 0x00000001062d5901 libpython2.7.dylib`PyEval_EvalFrameEx + 19681
    frame #3: 0x00000001062d07c2 libpython2.7.dylib`PyEval_EvalCodeEx + 1666
    frame #4: 0x00000001062d0136 libpython2.7.dylib`PyEval_EvalCode + 54
    frame #5: 0x00000001062f9544 libpython2.7.dylib`PyRun_FileExFlags + 164
    frame #6: 0x00000001062cc60b libpython2.7.dylib`builtin_execfile + 507
    frame #7: 0x00000001062d5901 libpython2.7.dylib`PyEval_EvalFrameEx + 19681
    frame #8: 0x00000001062d07c2 libpython2.7.dylib`PyEval_EvalCodeEx + 1666
    frame #9: 0x00000001062d0136 libpython2.7.dylib`PyEval_EvalCode + 54
    frame #10: 0x00000001062f9615 libpython2.7.dylib`PyRun_SimpleStringFlags + 149
    frame #11: 0x0000000102bf8591 coot-bin`run_python_script(filename_in=0x00007fc5b29c1150) + 1409 at c-interface.cc:6374
    frame #12: 0x0000000102caaaba coot-bin`try_load_dot_coot_py_and_preferences(home_directory=0x00007fff5d305360) + 5034 at coot-setup-python.cc:187
    frame #13: 0x0000000102ca95d6 coot-bin`setup_python(argc=1, argv=0x00007fff5d306790) + 2230 at coot-setup-python.cc:121
    frame #14: 0x00000001028fd7b9 coot-bin`main(argc=1, argv=0x00007fff5d306790) + 9817 at main.cc:408
    frame #15: 0x00007fff893645c9 libdyld.dylib`start + 1
(lldb) ^D

----
Thu Aug 18 12:03:32 BST 2016

   RNA building test: coot-download/5fw1.ent

---
Wed 24 Aug 2016 00:54:22 BST


Redo the torsion energy/distortion:

http://www.cryst.bbk.ac.uk/PPS2/course/section7/os_cov.html#tor_graph_back

----
Fri 26 Aug 2016 20:59:55 BST

   http://osiris.laya.com/coding/dylib_linking.html

   libtool -dynamic -flat_namespace -install_name @executable_path/../lib/libbz2.1.0.2.dylib \
    -lSystem -compatibility_version 1.0 -current_version 1.0.2 \
    -o libbz2.1.0.2.dylib $(OBJS)

   this should be in libtool archive_cmds

---
Mon Sep  5 23:19:46 BST 2016


http://www.click2drug.org/encyclopedia/chemistry/fda-based-rings.html
https://upload.wikimedia.org/wikipedia/commons/a/a8/Heterocycle_compounds.jpg


---
Thu 24 Nov 2016 16:55:07 GMT

   scheme education:

   http://www.cs.dartmouth.edu/~sergey/cs59/S2016/scheme/continuations.txt

mod SNNmd1 show that I've got the wrong internal structure for plane chem
mods.  That adds and deletes refer to named plane restraints (see the
add and delete atoms).

---
Thu  1 Dec 2016 23:08:27 GMT

   testing for std::thread (needs -pthread?)

   https://github.com/molpopgen/devnotes/wiki/Useful-autoconf-macros

   (not quite what I want, I think)

   Maybe this:

   https://github.com/emcrisostomo/CXX-Autoconf-Macros/blob/master/ax_cxx_have_thread.m4

---
Sun 26 Feb 2017 14:41:03 GMT

   for soft mode/hard mode, look at the way (when)
   turn_off_when_close_target_position_restraint_eraser is evoked

---
Sat  4 Mar 2017 01:13:08 GMT

   How to set a breakpoint in lldb:

   breakpoint set --method set_dihedral

   puts a breakpoint in all methods/functions called set_dihedral()

   breakpoint set -b malloc_error_break

   for malloc errors

----
Sat  4 Mar 2017 12:05:58 GMT

   Can you build it better/faster? recap sequence alignment, "chainsaw" model, HOLE picture

   http://science.sciencemag.org/content/355/6328/eaal4326.full

   The atomic coordinates have been deposited in the Protein Data Bank (PDB) with accession
   code 5X0M, and the EM map has been deposited in the Electron Microscopy Data Bank
   with accession code EMD-6698.

----
Thu 23 Mar 2017 12:04:12 GMT

    Gert Vriend contact map exploitation paper, 2017.


----
Tue 18 Apr 2017 16:33:00 BST

    5jik is good/interesting for carbohydrate building - non-oligomannose


----
Sun 28 May 2017 17:09:21 CDT

   Oleg Borbulevych's talk: ONIOM QM/MM DivCon improves clash score
   after their refinement of Astex Diverse set.

   2016 paper

   What would you get (clash score deltas) if you tried coot for hydrogen
   addition and refinement?

----
Sat  1 Jul 2017 17:36:03 BST

   rdkit fragments:

http://rdkit.org/docs_temp/Chem/Fragments.m.html


----
Sat  1 Jul 2017 18:27:09 BST

   Makefile rules variables $@ $^ $<
   $@ -> target,      $^ -> all dependences,   $< -> first dependency

   https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html

---
Mon Jun 19 19:46:51 BST 2017

   beta strand: phi=-110, psi=120 from link-restraint.cc

   can you use that with add-terminal-residue-using-phi-psi to make an
   extended polypetide strand?

----
Sun  9 Jul 2017 00:52:16 BST

open drug discovery toolkit - what does it do?

https://iwatobipen.wordpress.com/2017/06/04/open-drug-discovery-toolkit-for-python/

http://www.blopig.com/blog/2016/11/how-to-calculate-plifs-using-rdkit-and-plip/

---
Wed 12 Jul 2017 21:55:28 BST

Project: look this up:

Ho, B. K. & Gruswitz, F. HOLLOW: generating accurate representations
of channel and interior surfaces in molecular structures. BMC
Struct. Biol. 8, 49 (2008).

---
Sun 16 Jul 2017 14:57:51 BST

http://www.boost.org/doc/libs/1_64_0/libs/python/doc/html/tutorial/tutorial/object.html

   Creating boost::python::object from PyObject*

   When you want a boost::python::object to manage a pointer to
   PyObject* pyobj one does:

   boost::python::object o(boost::python::handle<>(pyobj)); In this
   case, the object, manages the pyobj, it won't increase the
   reference count on construction.

    Otherwise, to use a borrowed reference:

    boost::python::object
    boost::python::handle<>(boost::python::borrowed(pyobj)));
    In this case, Py_INCREF is called, so pyobj is not destructed when
    object goes out of scope.

----
Sun 16 Jul 2017 22:43:37 BST

    convert an RDKit molecule to boost::python::object

   	             std::pair<bool, coot::dictionary_residue_restraints_t> rp =
		     geom.get_monomer_restraints(res_name, imol);
		     RDKit::RWMol rdkm = rdkit_mol(residue_p, rp.second);
                     boost::python::list rdkit_mols_list;
		     RDKit::ROMol *cm_p = new RDKit::ROMol(rdkm);
		     boost::shared_ptr<RDKit::ROMol> xx(cm_p);
		     // maybe I can append(xx) rather than needing this step:
		     boost::python::object obj(xx);
		     rdkit_mols_list.append(obj);

---
Wed 19 Jul 2017 23:41:43 BST

what's this?

   Dixon, S. L. et al.
   PHASE: a new engine for pharmacophore perception, 3D QSAR model development,
   and 3D database screening: 1. Methodology and preliminary results.
   J. Comput. Aided Mol. Des. 20, 647-671,
  doi: 10.1007/s10822-006-9087-6   (2006).

---
Sat 19 Aug 2017 00:09:10 BST

   jupyter notebook intereting rdkit and pymol usage from years ago

   http://nbviewer.jupyter.org/gist/greglandrum/4316435

---
Thu Jul 27 19:48:52 BST 2017

   To compile newest Python 2.7.x on Mac, use additional configure argument
   MACOSX_DEPLOYMENT_TARGET=10.10
   to get past
   compile python configure: error cannot compute sizeof size_t

---
Thu Jul 27 20:07:08 BST 2017

   to upgrade ipython using pip:

   $ pip install ipython --upgrade

   to force PIL (say)

   $ pip install --upgrade --force-reinstall PIL

   (this didn't work for version-related issues)

   $ pip install --upgrade --force-reinstall pillow

---
Sat 29 Jul 2017 15:37:06 BST

  read this: https://autotools.io/index.html


---
Fri Aug 11 14:19:34 BST 2017

https://stackoverflow.com/questions/21971449/how-do-i-increase-the-cell-width-of-the-jupyter-ipython-notebook-in-my-browser

~/.ipython/profile_default/static/custom/custom.css (iPython) or ~/.jupyter/custom/custom.css (Jupyter) with content

.container { width:100% !important; }


---
Fri  1 Sep 2017 05:52:26 BST

   server threaded:

   https://stackoverflow.com/questions/15074393/python-multithreading-xmlrpc-server


---
Fri  1 Sep 2017 17:51:38 BST

   WebVR and Coot - I discover:

   https://forums.oculus.com/community/discussion/4232/visualizing-protein-structures

   unitymol, molvr

   http://www.molvr.org/category/downloads/


---
Tue 12 Sep 2017 12:19:45 BST

   Try deleting sidechains of a chain in a cryo em map (I was using chain J from 3771) then
   Extensions -> All Molecule -> Fill partial

   It takes forever (copying the map).

----
Mon Sep 11 13:06:17 BST 2017

Thunderbird says this:

(firefox:11665): Gdk-WARNING **: Native children wider or taller than 65535 pixels are not supported

(firefox:11665): Gdk-WARNING **: Native children wider or taller than 65535 pixels are not supported

----
Fri 29 Sep 2017 06:03:42 BST

 Use -Wl,-rpath (if passing to cc) or -rpath (if passing to ld) as more portable than
       -R. ephemient Mar 30 '09 at 17:35

 also

 https://www.eyrie.org/~eagle/notes/rpath.html

----
Tue  3 Oct 2017 11:49:21 BST

   Tristan Croll mentions PyOpenCL

   https://mathema.tician.de/software/pyopencl/

----
Wed  4 Oct 2017 06:36:53 BST

   sounds

   https://freesound.org/browse/tags/effect/?page=13#sound


----
Thu 16 Nov 2017 01:48:51 ART

  ligand docking things to read

  https://worldwidescience.org/topicpages/q/qm-polarized+ligand+docking.html

----
Thu 14 Dec 2017 14:45:13 GMT

  o  configuring python with ssl - for pip:  --with-ensurepip=install
     and LDFLAGS="-Wl,--rpath=${AUTOBUILD_INSTALLED}${build_type}/lib" of course

  o apply the patch

  Then copy Modules/Setup.dist Modules/Setup
  Because - it gets overwritten...? Or something?

--- Modules/Setup.dist.orig	2017-12-14 14:24:16.314852316 +0000
+++ Modules/Setup.dist	2017-12-14 14:30:02.601760197 +0000
@@ -215,10 +215,10 @@

 # Socket module helper for SSL support; you must comment out the other
 # socket line above, and possibly edit the SSL variable:
-#SSL=/usr/local/ssl
-#_ssl _ssl.c \
-#	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-#	-L$(SSL)/lib -lssl -lcrypto
+SSL=/usr
+_ssl _ssl.c \
+	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
+	-L$(SSL)/lib64 -lssl -lcrypto


----
Sun 17 Dec 2017 16:17:48 GMT

   o Fix the documentation generation (coot-dox.cfg needs to be generated from coot-dox.cfg.in)
     because the source header files are not in the build directory. Useful?

     http://chris-miceli.blogspot.co.uk/2011/01/integrating-doxygen-with-autotools.html

     ::: 2

----
Sat 30 Dec 2017 20:31:56 GMT

   o Nice to have function: --emdb code which uses files if they are available or gets the
     bundle first if not.

----
Sun 31 Dec 2017 04:54:00 GMT

   o Non-bonded contacts are slow to generate on a big chain (say 400 residues or more) e.g. EMD-6698.

     Make them faster.

---
Sun 31 Dec 2017 05:00:22 GMT

   o put the refinement in a thread.


----
Sun 31 Dec 2017 14:35:22 GMT

File to string;

https://www.fluentcpp.com/2017/12/19/build-strings-from-plain-string-up-to-boost-karma/

  std::ostringstream fileContentsStream;
  fileContentsStream << std::ifstream("MyFile.txt").rdbuf();
  std::string fileContents = fileContentsStream.str();

---
Sun 31 Dec 2017 14:39:12 GMT

  interesting minimization:

http://www.csm.ro/home/mmelsp_series/mmelsp_08_papers/nandrei_08.pdf


---
Sun 31 Dec 2017 20:15:08 GMT

  pango-cairo:

https://developer.gnome.org/pango/stable/pango-Cairo-Rendering.html

  pango notes:

https://www.gtk.org/api/2.6/pango/PangoMarkupFormat.html

---
Thu  4 Jan 2018 16:54:56 GMT

   Have a look at 6aqf

   Allosteric Coupling of Drug Binding and Intracellular Signaling in the A2A Adenosine Receptor

---
Wed 17 Jan 2018 05:07:31 FKST

  jupyter interesting

  import jupyter_client
  k = jupyter_client.KernelManager()
  k.start_kernel()

---
Sun 18 Feb 2018 15:24:11 EET

   HTC Vive on Linux:

   https://www.gamingonlinux.com/articles/first-steps-with-openvr-and-the-vive-on-linux.7229

----
Sun 18 Feb 2018 18:06:29 EET

   For moving single atoms of the moving atoms (for vrcoot), look at
   graphics_info_t::move_single_atom_of_moving_atoms(int screenx, int screeny)

----
Tue 20 Feb 2018 23:47:55 EET

   MDFF example:

   http://pubs.rsc.org/en/content/articlehtml/2014/fd/c4fd00005f

   Actually, maybe not - needs close reading.

---
Sun 25 Feb 2018 07:28:36 EET

   cryo-em tutorial:

   o Note: 4m1m  model and 7325 for the map (Gaby)

---
Sun 25 Feb 2018 18:17:33 EET

   o cryo-EM tutorial 6771 middle of J: 196 209 281

     the middle of the pyrimidine ring of the ligand 401 J NDP


---
Mon 26 Feb 2018 10:43:18 EET

   o 3wbm is a good example for RNA building - when RCrane works again :-/
     It has some difference map features that need fixing (in the protein).

---
Fri  9 Mar 2018 14:57:25 GMT

   o Note to self: covalently bonded ligands must be in the same chain as the
     protein chain to which they are attached.


---
Fri  9 Mar 2018 15:03:18 GMT

   o when merging a ligand, try to change the chain-id to that of the protein
     to which it's close. Add checked button to gui: auto-chain-for-ligands


---
Fri  9 Mar 2018 15:12:44 GMT

   o yesterday I installed 3 virtual machines:
     centos 6.9, Fedora live latest, Ubunutu 17.10 (latest)
     All compiled coot out of the box with build-it.
     (I had to install a few system libraries with apt, yum, dnf)


---
Sat 24 Mar 2018 03:00:25 GMT

   o Can you find some "negatively" scoring parts of a domain for jiggle fitting?
     Make n test points inside the domain box and iterate moving them away from the
     closest atom of the protein.  Make a chain of test points so that you can use
     SeekContacts - use a distance that is more than the maximum distance a
     test point will move (n_iter * step size). Atoms that move away from more than
     one atom are interesting (probably). Test points will drift away on the outside.
     So only keep those points that are within xA of any atom.

     Use generic display objects.

---
Sat 24 Mar 2018 10:27:45 GMT

   Stuart: Make a "extensions looker-upper" as a dropdown option in the Coot interface,
           so that people don't have to find/download/run scripts.

---
Fri 20 Apr 2018 14:53:26 BST

   3j3q hiv capsid

   4whj - interesting fitting Alvarez et al, domain needs to be shifted - 4.6A

----
Sun 20 May 2018 12:54:32 BST

   cute graphics: https://github.com/prideout/aobaker
                  https://github.com/prideout/blog-source/blob/master/p61/Cylinder.glsl

                  http://github.prideout.net/
                  http://prideout.net/blog/

    built them into coot :-)



----
Sun 20 May 2018 12:54:28 BST

    OpenGL and gtk on gtkglext mailing list (last entries?)

    https://mail.gnome.org/archives/gtkglext-list/2014-February/msg00016.html


---
Sun 20 May 2018 12:59:28 BST

   sharpconstruct for drawing heads?


---
Sun 20 May 2018 13:22:00 BST

    https://www.blendswap.com for heads

----
Tue 22 May 2018 15:12:04 BST

   o re: a console: look at this:
     http://www.cplusplus.com/reference/cstdio/freopen/
     reopen std out as a static string stream?



---
Mon 28 May 2018 12:33:02 BST

    Indirect GLX is no longer supported by default.  You can enable it with:

    defaults write org.macosforge.xquartz.X11 enable_iglx -bool true

   Jeremy Huddleston Sequoia
   https://bugs.freedesktop.org/show_bug.cgi?id=99146


---
Tue 29 May 2018 16:29:39 BST

   investigate __FILE__ __LINE__ and __FUNCTION__ for debugging


---
Fri  1 Jun 2018 21:52:08 BST

    graphics:

    https://cesium.com/blog/2013/04/22/robust-polyline-rendering-with-webgl/

---
Sat  2 Jun 2018 17:26:41 BST


  14.150 How can I make line or polygon antialiasing work?

  https://www.opengl.org/archives/resources/faq/technical/rasterization.htm#rast0150



---
Thu  7 Jun 19:50:40 BST 2018

	compiling on ubuntu 18.04:

   https://stackoverflow.com/questions/39188919/different-exception-specifier-with-g-6-2
   HACK_THROW_

---
Fri  8 Jun 2018 17:31:20 BST

   Keele notes:

   have a look at this:

   3j3q hiv capsid

   4whj - interesting fitting Alvarez et al, domain needs to be shifted - 4.6A


----
Tue 12 Jun 2018 17:35:48 BST

  record the desktop

  ffmpeg -f x11grab -r 30 -i :0.0 /tmp/recording.mp4


----
Thu 21 Jun 2018 14:35:55 BST

   Use PyGI+GTK instead of pygtk with Python3

   Converting gtk_timeout_add:

   https://askubuntu.com/questions/228849/pygtk-to-pygi-gtk-timeout-add-equivalent

----
Fri 22 Jun 2018 14:44:20 BST

  Spin-search Hydrogen atoms - read this first

  Hydrogen bond networks
  R.W.W.Hooft, C.Sander and G.Vriend,
  Positioning hydrogen atoms by optimizing hydrogen bond networks in
  protein structures
  PROTEINS, 26, 363--376 (1996).

---
Fri  6 Jul 2018 11:24:42 BST

    1h4h residue 49 is good for NCS jumping

---
Fri  6 Jul 2018 21:53:36 BST

In refmac


   vdwr 2

divides sigma by 2

----
Sat 21 Jul 2018 21:59:38 BST


  Scapin Potter Carragher 2018 Cell Chem Bio  in press

 maps between 4 and 2.5. standard MR is still possible but lodel building/rebuilding and refinement
need to be guided.  Ligands are a guessing game.

Maps worse than 5A standard MR likely to fail model building/rebuilding and refinement need to
be guided Ligands? What ligands?

A good model is essential for god modelling. Validation.

Insulin receptor and Insulin 2018 Nature 556 122-125.

But still very few examples of cryo-EM in SBDD. (something... ?) bottom left panel reference?
What was it?

---
Sat 14 Jul 2018 02:23:20 BST

   std::unique_ptr: read this:

http://www.drdobbs.com/cpp/c11-uniqueptr/240002708

---
Sun 15 Jul 2018 14:45:10 BST

   converting a QuickTime movie

ffmpeg -i {in-video}.mov -vcodec h264 -acodec aac -strict -2 {out-video}.mp4


---
Wed 18 Jul 2018 02:06:02 BST

 Fitting problem: https://www.nature.com/articles/nature12162

                  https://www.sciencedirect.com/science/article/pii/S0969212608001330


 This?

Electron Cryomicroscopy of Viruses at Near-Atomic Resolutions
Article September 2017
DOI: 10.1146/annurev-virology-101416-041921

Accurate model annotation of a near-atomic resolution cryo-EM map
Article (PDF Available) Proceedings of the National Academy of Sciences 114(12):201621152


 Interesting for other reasons:

The HIV-1 envelope glycoprotein structure: nailing down a moving target
Article
Jan 2017IMMUNOL REV
Andrew B Ward Ian A Wilson



----

   Henry van bedem?

   Read this:  minor modification in a ligand results in different binding mode.

   j med chem 2016, 59, 6356


----
Sun 22 Jul 2018 13:47:36 EDT

   transparent triangles in raster3d?
   Yes, it is possible.

---

evaluation System and web infrastructure of 3d cryo em model challenge, 2018, JMB

uses EMRinger


----
Mon 23 Jul 2018 13:59:52 EDT

   sgc xchem sabrina mckinnon(?) HAO1 fragment screening.


----
Thu 26 Jul 2018 14:43:36 BST

for difference map for cryoem from refmac:

mapcalc vector

---
Fri 27 Jul 2018 14:45:14 BST

   o Pathwalking: Look at 2015/16 EM model-bulding trial:
     find e2pathwalker_auto.py?

---
Tue 21 Aug 2018 16:20:52 BST

   o CUDA cubic spline for grid interpolation:

     http://www.dannyruijters.nl/cubicinterpolation/

---
Mon  6 Aug 15:21:40 BST 2018


Inverse Kinematics, Featherstone?

   https://github.com/bulletphysics

Also
   Bullet Physics SDK:
   real-time collision detection and multi-physics simulation for VR,
   games, visual effects, robotics, machine learning etc.

Also

   https://dartsim.github.io/ DART (Dynamic Animation and Robotics Toolkit

Book: Rigid Body Dynamics Algorithms 2008, Featherstone, Roy
   A comprehensive collection of the best rigid-body dynamics algorithms

---
Mon 27 Aug 2018 12:21:09 BST

   what is geexlab?

---
Tue 28 Aug 2018 03:27:54 BST

   command line parsing in c++ 11

https://www.reddit.com/r/cpp/comments/4zhm2n/which_library_would_you_recommend_for_parsing/

---
Tue  4 Sep 2018 06:13:12 BST

    read this:

    https://www.ncbi.nlm.nih.gov/pubmed/27318041

    Defining the limits and reliability of rigid-body fitting in cryo-EM maps using
    multi-scale image pyramids.

    and this:

    https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3150432/

    BCL::EM-Fit: Rigid body fitting of atomic structures into density maps using
    geometric hashing and real space refinement

    read this:

    https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5715128/

    Tools for the cryo-EM gold rush: going from the cryo-EM map to the atomistic model

    read this

    RosettaES: a sampling strategy enabling automated interpretation of difficult cryo-EM maps.
    Frenz B, Walls AC, Egelman EH, Veesler D, DiMaio F
    Nat Methods. 2017 Aug; 14(8):797-800.

    read this:

    Woetzel N, Lowe EW, Meiler J. Poster: GPU-accelerated rigid body fitting of atomic structures
            into electron density maps. 2011 IEEE 1st International Conference on Computational
            Advances in Bio and Medical Sciences (ICCABS).2011. [Ref list]
            Journal ref is one of the above, I think (BCL::EM-Fit)

---
Tue  4 Sep 2018 16:15:01 BST

   chimera:

   Visualizing density maps with UCSF Chimera.
   Goddard TD, Huang CC, Ferrin TE
   J Struct Biol. 2007 Jan; 157(1):281-7.

   Fitting to maps described here?

   Fit in map:
   https://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/fitmap.html

---
Fri 21 Sep 2018 10:49:26 BST

    Jane Richardon: packing in 1cgi looks nice.
                    non-Pro cis 3er0 (should be 1 in 3,000 or 1 in 10,000 for non-carbohydrate proteins)
                    cablam outlier: 3ja8 Leu 235

    Make a figure of 1cgi in new coot.

---
Tue 11 Sep 23:10:09 BST 2018


http://opengl.datenwolf.net/gltut/html/index.html

---
Mon Sep 17 21:55:15 BST 2018

   build this from a starting ideal helix:
   (which you might be able to find with a cuda-based search?)
   5toh

---
Mon 24 Sep 2018 15:48:27 BST

   quaternion axis rotation in freeglut 2.8.1 spaceball.c

   void sbrot(int x, int y, int z) {
     float axis_len = (float)sqrt(x * x + y * y + z * z);
     rot = quat_rotate(rot, axis_len * 0.001f, -x / axis_len, -y / axis_len, z / axis_len);

   Does this mean that a spaceball works? Hmm!

---
Wed 26 Sep 2018 22:44:14 BST

 Jeremy Huddleston Sequoia 2016-12-19 19:46:44 UTC

    Indirect GLX is no longer supported by default.  You can enable it with:

       defaults write org.macosforge.xquartz.X11 enable_iglx -bool true

---
Thu 27 Sep 2018 08:12:03 BST

   font stuff

   http://www.lighthouse3d.com/very-simple-libs/vsfl/


---
Thu 27 Sep 2018 11:57:26 BST

   GLSL antialiasing/multisampling

   https://learnopengl.com/Advanced-OpenGL/Anti-Aliasing

---
Thu 27 Sep 2018 15:12:53 BST

   3gp0 needs helix shift of MR solution

   Try low res, prosmart-like restraints or morphing wrapped with prosmart restraints.


---
Thu 27 Sep 2018 15:33:44 BST

   histogram of H (or HA) density values in the apoferritin map.


----
Thu 27 Sep 2018 15:58:58 BST

    Dave Brown suggests:
    ligand validation meeting: what should we do with ligands from pandda - they will
    seem to be rubbish by conventional metrics.

----
Sun 14 Oct 2018 17:10:02 BST

   bfgs

   https://www.caam.rice.edu/~dennis/images/Broyden-Fletcher-Goldfarb-Shanno.jpg

---
Sun  4 Nov 2018 05:04:52 GMT

   atomic compare_exchange_weak
   https://www.codeproject.com/Articles/808305/Understand-std-atomic-compare-exchange-weak-in-Cpl

---
Wed  7 Nov 2018 15:45:36 GMT

   PLIP is a thing (I mentioned it above!)
   https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4489249/
   A 500 in 1osn - what does this give in pli?

---
Sun 11 Nov 2018 16:32:37 GMT

   read this before updating hydrogen bonds:

   Kortemme T, Morozov AV, Baker D. An orientation-dependent hydrogen bonding potential improves
       prediction of specificity and structure for proteins and protein-protein complexes.
       J Mol Biol. 2003;326:1239–1259.

---
Sun 25 Nov 2018 12:26:00 BRST

   porting pygtk to python3  PyGI+GTK PyGObject Introspection
   https://wiki.gnome.org/action/show/Projects/PyGObject/IntrospectionPorting?action=show&redirect=PyGObject%2FIntrospectionPorting


---
Tue 11 Dec 2018 02:47:48 GMT

   differential equation solver

https://github.com/sheljohn/osd

---
Tue 18 Dec 2018 03:42:49 GMT

   svg problem maybe compile gtk-pixbuf2 with --enable-relocations

   https://github.com/Alexpux/MINGW-packages/issues/818

   This is most probably caused by wrong /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache file. Try:
   gdk-pixbuf-query-loaders > $prfx/gdk-pixbuf-2.0/2.10.0/loaders.cache
   to regenerate it.

----
Sun 16 Dec 2018 14:48:21 GMT

   set_thread *is* run just once at the start of ctpl.h.

---
Sun 13 Jan 2019 19:13:55 GMT

 CUDA
 http://people.maths.ox.ac.uk/gilesm/cuda/lecs/lec4.pdf

---
Sun  6 Jan 2019 14:57:30 GMT

   check my blob

   https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/bty626/5055122

---
Sun  6 Jan 2019 15:15:22 GMT

   module opticspy does Zernike moments

---
Tue  8 Jan 2019 14:42:58 GMT

   Here is homebrew's patch for Python

   https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb

---
Wed  9 Jan 2019 02:25:27 GMT

   lots of click sounds (just the job?)

   https://freesound.org/people/Jaszunio15/

---
Wed  9 Jan 2019 15:05:52 GMT

   fragment-based folding

   http://www0.cs.ucl.ac.uk/staff/D.Jones/t42morph.html

---
Wed  9 Jan 2019 15:09:38 GMT

   Dan Rigdeon talk:

   quark server: fragment based modelling

   https://zhanglab.ccmb.med.umich.edu/QUARK/

   https://onlinelibrary.wiley.com/doi/full/10.1002/prot.24065

   also

   confold2 (not fragment based)

---
Sun 13 Jan 2019 07:56:23 GMT

  CUDA
  https://www.sharcnet.ca/help/index.php/CUDA_tips_and_tricks#Overview

---
Fri 25 Jan 2019 20:54:54 GMT

Software Violations in Binary Code
https://nixos.org/~eelco/pubs/clones-msr2011-final.pdf

----
Tue  5 Feb 2019 11:44:27 PST

  gettext problems in cj build gtkglext (glib)

  configuration of glib failed because it couldn't find gettext (perhaps msgfmt, actually)
  That was because cj build didn't install the msgfmt file.

  The solution was to put the directory for msgfmt in the path before running cj (and that
  directory was provided by homebrew).

  A better solution is for cj to install msgfmt and put the directory into which it installs
  it into the path itself.

----
Mon 11 Feb 2019 13:05:44 PST


   compiling readline from source

https://stackoverflow.com/questions/26670417/how-to-compile-readline-from-source

ldd -r /mypath/lib/libreadline.so.6.2
        linux-vdso.so.1 =>  (0x00007ffffb186000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f450c62f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f450cc07000)
undefined symbol: UP    (/mypath/lib/libreadline.so.6.2)
undefined symbol: PC    (/mypath/lib/libreadline.so.6.2)
undefined symbol: BC    (/mypath/lib/libreadline.so.6.2)

--with-curses'
    This tells readline that it can find the termcap library functions
    (tgetent, et al.) in the curses library, rather than a separate
    termcap library.  Readline uses the termcap functions, but does not
    link with the termcap or curses library itself, allowing applications
    which link with readline the to choose an appropriate library.
    This option tells readline to link the example programs with the
    curses library rather than libtermcap.

make SHLIB_LIBS=/mypath/libncurses.so


----
Sat 16 Feb 2019 06:02:48 PST

LBFGS insights:
https://www12.cs.fau.de/edu/map/ss12/talks/lbfgs_map_superresolution.pdf

   Does changing the Rama weight make our function more like a rosenbrock function?

   http://en.wikipedia.org/wiki/Rosenbrock_function

---
Thu 14 Mar 2019 11:03:04 CET

    EMD 3908 helix at (125, 118, 103)

---
Tue 26 Mar 2019 14:14:51 GMT

vulkan and cuda:

https://github.com/NVIDIA/cuda-samples/tree/master/Samples/simpleVulkan

So can I do marching cubes with CUDA and display them with vulkan?

Does that mean moving everything to vulkan?

----
Sun 31 Mar 2019 23:41:34 BST

   Advances in the molecular dynamics flexible fitting method for cryo-EM modeling
   There are tutorials:
   https://www.sciencedirect.com/science/article/pii/S1046202316300093?via%3Dihub

----
Mon  1 Apr 2019 00:11:03 BST

   Rosetta: Read this:
   https://www.nature.com/articles/nmeth.3286

---
Sun 10 Mar 2019 12:39:28 GMT

   use pip to install xmltramp2 to use muscle.py

   https://raw.githubusercontent.com/ebi-wp/webservice-clients/master/python/muscle.py

* Forget that, clustalw2 can be installed as part of the build. Now there's an interface for that.

---
Tue 12 Mar 2019 17:34:23 GMT

 Is this what I need to test that svg works? (found in gtk3-opengl/Makefile)

 rsvg-convert --format png --output $@ $^

----
Tue 16 Apr 2019 06:18:36 BST

   2D Vector Graphics:
   https://blend2d.com/

---
Thu 18 Apr 2019 04:32:45 BST

   Angle-modulated transparency in VMD


---
Mon 29 Apr 2019 12:23:07 BST

   o Converting to GTK3: At some stage Use define (GTK_DISABLE_DEPRECATED) in the gtk2 build
     gtk_combo_box_get_active_text is deprecated

 * Deprecated: 2.24: If you used this with a #GtkComboBox constructed with
 * gtk_combo_box_new_text() then you should now use #GtkComboBoxText and
 * gtk_combo_box_text_get_active_text() instead. Or if you used this with a
 * #GtkComboBoxEntry then you should now use #GtkComboBox with
 * #GtkComboBox:has-entry as %TRUE and use
 * gtk_entry_get_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combobox)))).

---
Mon 29 Apr 2019 12:37:01 BST

  GPU Optimizations for games:

  https://gist.github.com/silvesthu/505cf0cbf284bb4b971f6834b8fec93d

  interesting stuff

---
Tue 30 Apr 2019 15:30:25 BST

   rtx/Vulkan with Linux:

   https://iorange.github.io/p01/HappyTriangle.html

   Good stuff - not sure how to get the vulkan directory :-)

--
Wed  8 May 2019 17:44:23 BST

   GLU unproject:

   https://forum.libcinder.org/topic/glu-s-gluunproject-substitute


---
   Vulkan Fish! and other things:
   https://developer.nvidia.com/gameworks-vulkan-and-opengl-samples

---
Tue  7 May 2019 00:16:49 BST

   deprecated gtk:

-  box_main = gtk_vbox_new (FALSE, 10);
+  box_main = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);


---
Fri 10 May 2019 05:51:46 BST

   Oh boy:

   On Mac OS X, GTK3+ is only native
   On Mac OS X, GTK3+ has no connection to OpenGL

   https://apple.stackexchange.com/questions/205404/how-can-i-get-gdk-x11-3-0-on-os-x
   https://mail.gnome.org/archives/gtk-list/2017-January/msg00020.html


---
Fri 10 May 2019 17:01:54 BST

   It might be that wxFormBuilder can generate C++ from glade-3 output.

---
Sun 12 May 2019 14:38:04 BST

   Lots of good stuff about how to work with GTK3 on Mac OS X:

   https://wiki.gnome.org/Projects/GTK/OSX

---
Thu  6 Jun 22:13:09 BST 2019

   Here is how to get rid of gtk_misc_get_type and others:
   https://github.com/abrt/libreport/commit/fbd0a76180633c7d50be01ea69ad734749db18a8

---
Wed 12 Jun 2019 03:07:48 BST

   Thinking about getting rid of plane restraints for CuDA: replace
   by improper dihedrals:

   https://salilab.org/modeller/9v6/manual/node436.html
   Use [van Schaik et al., 1993] to handle numerical instability.


---
Wed 12 Jun 2019 09:13:48 BST

   For faster map iterpolation in CUDA:

   Z-order curves/Morton 3d:

   http://graphics.cs.kuleuven.be/publications/BLD13OCCSVO/

   https://www.forceflow.be/2013/10/07/morton-encodingdecoding-through-bit-interleaving-implementations/

Tue 11 Jun 22:39:15 BST 2019
---

   https://stackoverflow.com/questions/14519267/algorithm-for-generating-a-3d-hilbert-space-filling-curve-in-python

   http://www.math.uwaterloo.ca/~wgilbert/Research/HilbertCurve/HilbertCurve.html

---
Wed 22 May 2019 11:34:42 BST

    look at this:

    https://wiki.fysik.dtu.dk/ase/

    and this:

    https://www.macinchem.org/blog/files/90966f824efe7fbbf2f0b4f56526b658-2202.php
    LigandScout 4.2 Released

---
Thu 23 May 2019 10:38:58 BST

   Javascript viewers:

   https://www.macinchem.org/scientificsoftware/jsmolviewers.php

   https://biasmv.github.io/pv/demo.html # outlined

---
Fri 24 May 2019 18:12:50 BST

   flatpak for GNOME:

   https://wiki.gnome.org/Newcomers/BuildProject

   Build GTK4 and test Vulkan

---
Mon 27 May 2019 01:38:52 CEST

   using Vulkan and glm and glfw for pretty pictures:

   https://www.reddit.com/r/vulkan/comments/brvdan/the_story_of_optimizing_a_vulkan_program/


----
Wed  1 May 16:03:37 BST 2019

   https://stackoverflow.com/questions/4305911/opengl-depth-sorting
   https://stackoverflow.com/questions/6352908/opengl-transparency-translucency?noredirect=1&lq=1
   http://developer.download.nvidia.com/SDK/10/opengl/src/dual_depth_peeling/doc/DualDepthPeeling.pdf
   http://www.humus.name/index.php?page=3D&ID=61
   https://community.khronos.org/t/easy-depth-sorting-almost-maybe/59832


----
Tue  7 May 17:38:42 BST 2019

   SAXS tutorial/envelope info
   https://situs.biomachina.org/tutorial_saxs.html


---
Thu 13 Jun 2019 08:24:13 BST

   Ray tracing - ends with glass duck
   https://github.com/ssloy/tinyraytracer/wiki/Part-1:-understandable-raytracing

---
Wed 19 Jun 2019 15:38:48 CDT

   To solve the canberra problem:

   sudo apt install libcanberra-gtk-module libcanberra-gtk3-module


---
Thu 20 Jun 2019 15:41:02 CDT

   focus follow mouse:

   gsettings set org.gnome.desktop.wm.preferences focus-mode 'sloppy'


---
Fri 21 Jun 2019 14:31:08 CDT

   o phenix ncs-from-map:

     https://www.phenix-online.org/documentation/reference/find_ncs_from_density.html


---
Fri 21 Jun 2019 14:59:40 CDT

   Conan: the C / C++ Package Manager for Developers

   open source, decentralized and multi-platform package manager to create and
   share all your native binaries.

---

Mon  8 Jul 18:12:26 BST 2019

  Jiffies, linux ticks, Hz

  $ getconf CLK_TCK


---
Mon 24 Jun 2019 09:41:38 CDT

   PDBe: ccdutils rdkit library

---
Mon 24 Jun 2019 10:14:03 CDT

   Pavel lecture:

   o 3noq real Rama outlier
     5a9z lots of Rama outliers.
     Voth and Shing 2007 for Hydrogen bond definition

---
Mon 24 Jun 2019 10:15:05 CDT

   o Mac OSX and Gtk: John Ralls https://discourse.gnome.org/t/say-hello-thread/82/35


---
Mon 24 Jun 2019 10:15:28 CDT

   o Dominika OS: Ubuntu 16.04

---
Wed  3 Jul 2019 04:21:00 BST

   o 26S Proteosome EMDB-4002

---
Tue 16 Jul 22:59:11 BST 2019

   what is this?

   https://github.com/exokitxr/exokit

---
Fri 26 Jul 20:51:17 BST 2019

   o OpenGL tutorials: including SSAO:

     http://ogldev.atspace.co.uk/

---
Tue  9 Jul 2019 18:19:46 BST

   o Interesting (python) opengl stuff:

   http://www.labri.fr/perso/nrougier/python-opengl/

---
Tue  9 Jul 2019 21:51:00 BST

   RNA Forcefield Hydrogen bonds Amber

   https://pubs.acs.org/doi/abs/10.1021/acs.jctc.8b00955

---
Tue 16 Jul 2019 00:09:20 BST

     Project: tutorial/video examples
     elifesciences.org/articles/16105 for extra examples of big shift molecules

---
Thu 18 Jul 2019 09:44:15 BST

Scalable parallel programming

   read this https://ieeexplore.ieee.org/abstract/document/7476525

----
Mon  9 Sep 18:16:04 BST 2019


render to texture in OpenGL:

   http://in2gpu.com/2014/09/24/render-to-texture-in-opengl/

-----
Look at this too for Frame Buffer Objects

   http://www.songho.ca/opengl/gl_fbo.html

---
Mon 16 Sep 16:59:51 BST 2019

   MolProbity Score:

   http://kinemage.biochem.duke.edu/suppinfo/CASP8/methods.html

   interesting.

---
Wed  4 Sep 2019 08:54:02 BST

   o Project:
     what is this? Systematic residue side-chain optimizations using grid searches in torsion-angle
     space (Oldfield, 2001).

     A number of real-space torsion-angle refinement techniques for proteins, nucleic acids,
     ligands and solvent

---
Tue 17 Sep 2019 08:36:22 BST

    example of morphing from Chimera X documentation:

    inactive structure (PDB 3C4F, chain A)
    activated structure (PDB 3GQI, chain A)

---
Wed 18 Sep 2019 15:46:47 BST

    o https://github.com/mozilla/DeepSpeech

---
Fri 20 Sep 21:13:27 BST 2019

   de novo model building using Coot:

   https://www.pnas.org/content/116/33/16535

   How would you do it today?

---
Wed  9 Oct 2019 16:12:16 BST

   zink:

   https://kusma.xyz/blog/2018/10/31/introducing-zink.html

---
Tue 15 Oct 2019 00:18:40 BST

    const iterators are not const on the left hand side!

---
Fri  6 Dec 2019 14:32:43 GMT

   Kevin says that structure factor calculation is in csfcalc.cpp

---
Tue  3 Dec 11:03:55 GMT 2019

   threaded sort:

   http://quick-bench.com/n55SzmJ2k-FowEP_ERhre56ODWA
   https://hastebin.com/uceyumepis.cpp

---
Tue 14 Jan 2020 02:09:52 GMT

   Project: What is this and can we do better?
   OPUS‐Rota: A fast and accurate method for side‐chain modeling
   https://onlinelibrary.wiley.com/doi/full/10.1110/ps.035022.108


---
Fri 24 Jan 2020 16:10:04 ICT

   4ebl B 70 SER has linked ligand - nice for tutorial.
        Has NCS, but not complete for all chains.
        Also wrong glycerols


---
Sun  2 Feb 05:53:57 GMT 2020

   mmdb bug I think: If you set the residue name to 2 chars, then
   in the pdb file the 2 chars are in the wrong columns (right
   justified - should be left).


---
Thu 13 Feb 18:40:56 GMT 2020

    EPG in 2xgb is an example of incorrect/changing chemistry
    on ligand covalent bond formation A 184 GLU


---
Fri 14 Feb 16:21:30 GMT 2020

   install gtk3+ on Ubuntu:

   sudo apt-get install libgtk-3-dev

---
Thu 20 Feb 21:40:34 GMT 2020

   Project:

   https://www.cell.com/structure/pdf/S0969-2126(15)00511-0.pdf 3jci

   They mention emringer - test this.

-----
Thu 27 Feb 2020 12:48:11 IST

   clustalw is LGPL? Use that for alignments.

* Done!

---
Sat 29 Feb 2020 17:52:41 IST


   o Ronan's talk:

     Get the 1tj3 "bad" model without splitting - 1tj3 is the data or the model?
     Data presumably.  Calculate/update maps? Likelihood improvements?

     Get the "jelly body" refined map and model too. 3td6

     Misha: has FimD-plug and FimDNTD needs jelly body refinement
            get the codes (2011?)

   o domains with hinges: can you find a way to generate models that
     have a "hinge" - 3 angles to test? One is more common than the
     others?

   o put sfcheck functions (graphs) into coot.


---
 HEAD
Fri 10 Apr 17:07:51 BST 2020

   o Gtk/Gdk mode touches OpenGL at glXChooseVisual
     THis is not called in Gtk3.24.11


---
Fri 15 May 13:24:21 BST 2020

   building from scratch

   run the build-it-3-3 script
   pip3 install pycairo
   cd ~/compile/PyGObject-xyz
   python setup.py build
   python setup.py install

   cd ~/autobuild/Linux-penelope-gtk3-python/include/
   ln -s ../lib/python3.6/site-packages/PyGObject-3.36.0-py3.6-linux-x86_64.egg/include/pygobject-3.0

   now import gi works from python

   ... or does it?


   make sure that g-ir-scanner is correctly installed (from gobject-introspection-1.50.0 or so)

   cd PyGObject-3.36.0 # or so
   meson -Dprefix=/home/paule/autobuild/Linux-penelope-pre-release-gtk3-python build
   cd build
   ninja
   ninja install


   example:
   prfx=/home/paule/autobuild/Linux-penelope-pre-release-gtk3
   meson -Dprefix=$prfx build
   ninja
   ninja install
   # now we can use Gtk in python!


---
Sun 17 May 03:08:44 BST 2020

 problems with python:

 This is trying to use python3.8. It used to work with 3.6 - I don't know if that is related.

enelope coot-gtk3/build/src> ./coot-bin --no-graphics
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'coot'
ERROR:: could not import coot.py
in PyInit_coot_gui_api() returing module 0x7fa9847def90
INFO:: Using Standard CCP4 Refmac dictionary from CLIBD_MON: /home/paule/ccp4/ccp4-7.0/lib/data/monomers/
INFO:: Reading coordinate file: /home/paule/autobuild/Linux-penelope-pre-release-gtk3-python/share/coot/standard-residues.pdb
INFO:: file /home/paule/autobuild/Linux-penelope-pre-release-gtk3-python/share/coot/standard-residues.pdb has been read.
Python 3.8.2 (default, May 17 2020, 01:35:28)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import _coot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /home/paule/Projects/coot/git/coot-gtk3/build/src/.libs/_coot.so: undefined symbol: n_models
>>>

penelope coot-gtk3/build/src> nm .libs/coot-bin | grep n_models
00000000000ce800 T n_models
0000000000055234 t n_models.cold
00000000003f9660 T _ZNK21molecule_class_info_t8n_modelsEv

So, Does _coot.so want to be linked with all of coot, despite being "part of" coot-bin. Has the linking
in 3.8 changed?

Read about embedding here: https://docs.python.org/3/whatsnew/3.8.html

   ... but I get the same problems in 3.6?

./coot-bin --no-graphics
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/paule/autobuild/Linux-penelope-pre-release-gtk3-python/lib/python3.6/site-packages/coot.py", line 15, in <module>
    import _coot
ImportError: /home/paule/Projects/coot/git/coot-gtk3/build/src/.libs/_coot.so: undefined symbol: n_models
ERROR:: could not import coot.py
in PyInit_coot_gui_api() returing module 0x7fbaf1d5b318
INFO:: Using Standard CCP4 Refmac dictionary from CLIBD_MON: /home/paule/ccp4/ccp4-7.0/lib/data/monomers/
INFO:: Reading coordinate file: /home/paule/autobuild/Linux-penelope-pre-release-gtk3-python/share/coot/standard-residues.pdb
INFO:: file /home/paule/autobuild/Linux-penelope-pre-release-gtk3-python/share/coot/standard-residues.pdb has been read.
Python 3.6.5 (default, Mar 29 2020, 05:23:17)
[GCC 9.2.1 20191008] on linux

   delete all *coot* in site-packages. Try again.


Fri 10 Apr 10:49:21 BST 2020

   o 3tib is a good structure for adding carbohydrates (tutorial)

----
Sat 23 May 03:05:12 BST

python -m ensurepip --default-pip
python -m pip install --upgrade pip setuptools wheel

https://packaging.python.org/tutorials/installing-packages/

# use that to install pycairo
pip3 install  pycairo
now we are ready to install PyGObject?


----
Mon 15 Jun 09:28:20 BST 2020

   Fresnel and related:

---
Wed 20 May 17:37:12 BST 2020

   to install pip from python

   python -m ensurepip --default-pip

---
Wed 20 May 19:11:11 BST 2020

   http://click2drug.org/ for interesting applications

---
Mon 25 May 2020 11:13:41 BST

   o How does ChimeraX do model morphing?
     https://www.rbvi.ucsf.edu/chimera/data/sbgrid-apr2017/cryomovie.html

---
Thu  4 Jun 10:53:57 BST 2020

   The test-out-of-the-box build for hal is on teraraid

---
Tue  9 Jun 20:34:17 BST 2020

   other than NED
   NASA/IPAC Extragalactic Database: ned.ipac.caltech.edu
   there is
   The Extragalactic Distance Database (EDD)
   http://edd.ifa.hawaii.edu/

---
Mon 15 Jun 08:57:41 BST 2020

    ERRAT notes and improvement:

    https://yeateslab.mbi.ucla.edu/structure-validation/

    One weakness of the program was a high sensitivity to small
    deviations in atomic positions, owing mainly to the discontinuous
    nature of the error function arising from the distance
    cutoff. Around 2002, another undergraduate student Dennis Obukov,
    rewrote ERRAT with a continuous distance weighting scheme, which
    led to more stable and robust behavior.


---

   Fresnel
   https://blog.demofox.org/2020/06/14/casual-shadertoy-path-tracing-3-fresnel-rough-refraction-absorption-orbit-camera/

---
lipids Carol Robinson

http://blogs.nature.com/ofschemesandmemes/2014/06/09/under-the-covers-nature-revealed-5-june-2014

---
Mon 24 Aug 2020 16:52:58 BST

   high res dna 3p4j

---
Mon 24 Aug 2020 17:50:49 BST

  what is the "ERRASER set" (published with the paper describing the rosetta updates)

---
Fri 21 Aug 15:46:31 BST 2020

    Header-only C++ libraries

    https://github.com/p-ranav/awesome-hpp

    A Treasure Trove.

    Look at stack trace and command line argument parser(s)

    https://github.com/bombela/backward-cpp

---
Fri  4 Sep 15:13:15 BST 2020

   header guards, wrapper ifndef
   http://www.dawnofthedata.com/2013/08/a-handful-of-emacs-utilities.html

   https://elpy.readthedocs.io/en/latest/

   https://martinsosic.com/development/emacs/2017/12/09/emacs-cpp-ide.html

---
Sat 12 Sep 07:22:01 BST 2020

   assimp compiles out of the box

   817	7:19	cmake -DCMAKE_INSTALL_PREFIX=$HOME/assimp CMakeLists.txt
   818	7:20	make -j 15
   819	7:21	make install

---
Tue 29 Sep 14:55:03 BST 2020

   examples of how how to do stuff:

   https://cpp.hotexamples.com/

---
 Wed 14 Oct 16:09:39 BST 2020

   bash iterate

   for i in $(seq 1 $END) ;
   do
      echo $i
   done

   https://stackoverflow.com/questions/169511/how-do-i-iterate-over-a-range-of-numbers-defined-by-variables-in-bash

---
Mon 12 Oct 15:28:53 BST 2020


   o microtubule - massive structure: code: 6u42

---
Tue 20 Oct 15:01:34 BST 2020

   Merging vertices:

   std::pair<std::vector<position_normal_vertex>, std::vector<g_triangle> > vi1 = pumpkin();
   std::pair<std::vector<position_normal_vertex>, std::vector<g_triangle> > vi2 = pumpkin_stalk();

   unsigned int idx_base = vi1.first.size();
   unsigned int tri_base = vi1.second.size();

    vi1.first.insert(vi1.first.end(), vi2.first.begin(), vi2.first.end());
    vi1.second.insert(vi1.second.end(), vi2.second.begin(), vi2.second.end());
    for (unsigned int i=tri_base; i<vi1.second.size(); i++)
       vi1.second[i].rebase(idx_base);

----
Wed 11 Nov 18:41:11 GMT 2020

   Flex-EM tutorial is 4ki8 into 6422.
   (hahahaha!)

----
Wed 18 Nov 06:39:54 GMT 2020

   Project: fix up the "no-density" "control points for (multi) add-terminal residue.
   The positions and the weights need optimization. Tests using experimental maps
   and deposited models?


----
Wed 18 Nov 06:46:15 GMT 2020

    How to do better baked AO for Python 3 Coot?

----
Wed 18 Nov 19:12:26 GMT 2020

   2ddx is real non-pro cis peptide high res.

--


 11203 map model correlation and unmodelled density - linoleic acid

----
Fri 27 Nov 20:36:14 GMT 2020

Hateful python. Sigh... what the hell is going wrong? So difficult to diagnose...


penelope coot-gtk3/build-into-release-dir/src> ./coot-bin --python --no-graphics
debug:: in setup_python() pydirectory is /home/paule/autobuild/Linux-penelope-gtk3/lib/python3.6/site-packages/coot
INFO:: coot.py imported
###debug require_version() available version: Gtk 3.0 []
Traceback (most recent call last):
  File "/home/paule/autobuild/Linux-penelope-gtk3/lib/python3.6/site-packages/coot/coot_load_modules.py", line 131, in <module>
    import fitting
  File "/home/paule/autobuild/Linux-penelope-gtk3/lib/python3.6/site-packages/coot/fitting.py", line 21, in <module>
    import coot_gui
  File "/home/paule/autobuild/Linux-penelope-gtk3/lib/python3.6/site-packages/coot/coot_gui.py", line 35, in <module>
    gi.require_version('Gtk', '3.0')
  File "/home/paule/autobuild/Linux-penelope-gtk3/lib/python3.6/site-packages/gi/__init__.py", line 130, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

# but

penelope coot-gtk3/build-into-release-dir/src> which python3
/home/paule/autobuild/Linux-penelope-gtk3/bin/python3
penelope coot-gtk3/build-into-release-dir/src> python3
Python 3.6.5 (default, Nov 26 2020, 23:50:25)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('Gtk', '3.0')
require_version() available version: Gtk 3.0 ['3.0', '2.0']
>>>

---
Sat 12 Dec 03:15:07 GMT 2020

   background mode for blender

$ for n in `seq 1 500`; do blender --background scene.blend -x 1 -f $n ; done

-x n render n frames
-f N starting at frame N

----


 11203 map model correlation and unmodelled density - linoleic acid
  -- is that part of the EMDA paper now?

----
Fri 27 Nov 12:28:00 GMT 2020


   https://aur.archlinux.org/packages/coot-git/


----
Fri 27 Nov 20:04:12 GMT 2020

   How to use GEMMI for sfs calc using electron scattering factors?

---
Fri 27 Nov 20:12:15 GMT 2020

  get rid of libGLU

	libMoleculesToTrianglesCXXSurface.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk3-python/lib/libMoleculesToTrianglesCXXSurface.so.0 
	libGLU.so.1 => /lib/x86_64-linux-gnu/libGLU.so.1


----
Tue  8 Dec 15:05:10 GMT 2020


recordmydesktop -x 800 -y 30 '--width=1600' --height='1080'

bluray resolution is 1920x1080

---
Mon 14 Dec 14:37:02 GMT 2020

   NVidia stereo and monitors:

   https://nvidia.custhelp.com/app/answers/detail/a_id/4845

----
Sun 16 Dec 12:26:55 GMT 2020

Thanks to Takanori and Charles for the hints and prompts. You have
brought 3 days of confusion and frustration to an end.

The answer (or current fix) is

export GI_TYPELIB_PATH /usr/lib/x86_64-linux-gnu/girepository-1.0

so that the gobject that I compiled uses the system girepository
also. And that's where Gtk+3 lives.

It might be possible to properly populate that directory at
compile/installation time and so the env var would not be needed (that
would be my preferred solution). But this is certainly good enough for
now.

----
Sat 27 Feb 15:30:21 GMT 2021
 
   convert gtk2 glade to gtk3 glade:

   Seems that its easy enough - at least for one file that I have tried:
   Replace the <glade-interface> tag with <interface> and replace all "widget
   class=" statements with "object class=". Glade 3 seems to read the edited file
   and even fix some discrepancies. Saving the file converts it to glade 3 format,
   which should be compatible with GTK+-3, I hope. It will take a lot more work to
   migrate the application source, before I find out ;-)

   https://bbs.archlinux.org/viewtopic.php?id=145374

Mon 18 Jan 19:08:12 GMT 2021

Gtk-Message: 19:07:14.114: Failed to load module "appmenu-gtk-module"
Gtk-Message: 19:07:14.119: Failed to load module "canberra-gtk-module"

   $ sudo apt-get install appmenu-gtk2-module appmenu-gtk3-module

---
Wed 24 Feb 16:52:51 GMT 2021

Paul Bourke:

   "Standard" character ramp for grey scale pictures, black -> white.
      "$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\|()1{}[]?-_+~<>i!lI;:,"^`'. "
   A more convincing but shorter sequence for representing 10 levels of grey is
      " .:-=+*#%@"


----
Fri 26 Feb 15:42:29 GMT 2021

   fill_map_sections() in slurp_map uses set_coord() on a set of map sections.
   Use as a template for threaded map manipulation.  Can this be used in xmap_stats?


---
Sun 28 Feb 19:25:50 GMT 2021

in ARG: CD-NE-CZ-NH1 should be cis:

Geometry of guanidinium groups in arginines
Maura Malinska
Miroslawa Dauter
Zbigniew Dauter
First published: 21 June 2016
https://doi.org/10.1002/pro.297

  In several instances, the nomenclature of the terminal nitrogen
  atoms in the deposited structures is wrong, but all cases were
  inspected and the atomic names reverted, if necessary, to ensure that
  the NH1 atoms are cis and NH2 atoms are trans with respect to the
  CZ‐NE bond.

---
Sun 28 Feb 2021 11:11:40 GMT

   https://www.fluentcpp.com/2018/03/30/is-stdfor_each-obsolete/


----
Fri  2 Apr 18:43:26 BST 2021

pip install oddt

depends on:
   oddt
   scikit_learn
   joblib
   pandas
   sphinx
   Jinja2
   Babel-2
   alabaster
   pytz
   snowballstemmer
   imagesize
   docutils
   requests
   MarkupSafe
   pyparsing
   chardet
   urllib3
   idn
   certifi

/home/autobuild/Linux-penelope-pre-release-gtk2-python/bin/pip
penelope coot-refinement/build/src> pip install oddt
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting oddt
  Downloading oddt-0.7.tar.gz (2.3 MB)
     |████████████████████████████████| 2.3 MB 202 kB/s 
Collecting numpydoc
  Downloading numpydoc-0.9.2.tar.gz (27 kB)
Requirement already satisfied: six in /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/python2.7/site-packages (from oddt) (1.14.0)
Requirement already satisfied: numpy>=1.11 in /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/python2.7/site-packages/numpy-1.16.6-py2.7-linux-x86_64.egg (from oddt) (1.16.6)
Requirement already satisfied: scipy>=0.17 in /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/python2.7/site-packages (from oddt) (1.2.3)
Collecting scikit-learn>=0.18
  Downloading scikit_learn-0.20.4-cp27-cp27m-manylinux1_x86_64.whl (5.5 MB)
     |████████████████████████████████| 5.5 MB 217 kB/s 
Collecting joblib>=0.9.4
  Downloading joblib-0.14.1-py2.py3-none-any.whl (294 kB)
     |████████████████████████████████| 294 kB 206 kB/s 
Collecting pandas>=0.19.2
  Downloading pandas-0.24.2.tar.gz (11.8 MB)
     |████████████████████████████████| 11.8 MB 203 kB/s 
Collecting sphinx>=1.6.5
  Downloading Sphinx-1.8.5-py2.py3-none-any.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 209 kB/s 
Collecting Jinja2>=2.3
  Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
     |████████████████████████████████| 125 kB 212 kB/s 
Collecting python-dateutil>=2.5.0
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pytz>=2011k
  Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting babel!=2.0,>=1.3
  Downloading Babel-2.9.0-py2.py3-none-any.whl (8.8 MB)
     |████████████████████████████████| 8.8 MB 353 kB/s 
Collecting alabaster<0.8,>=0.7
  Downloading alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Collecting packaging
  Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 241 kB/s 
Collecting snowballstemmer>=1.1
  Downloading snowballstemmer-2.1.0-py2.py3-none-any.whl (93 kB)
     |████████████████████████████████| 93 kB 238 kB/s 
Requirement already satisfied: Pygments>=2.0 in /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/python2.7/site-packages (from sphinx>=1.6.5->numpydoc->oddt) (2.5.2)
Collecting sphinxcontrib-websupport
  Downloading sphinxcontrib_websupport-1.1.2-py2.py3-none-any.whl (39 kB)
Collecting typing; python_version < "3.5"
  Downloading typing-3.7.4.3-py2-none-any.whl (26 kB)
Requirement already satisfied: setuptools in /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/python2.7/site-packages (from sphinx>=1.6.5->numpydoc->oddt) (39.0.1)
Collecting imagesize
  Downloading imagesize-1.2.0-py2.py3-none-any.whl (4.8 kB)
Collecting docutils>=0.11
  Downloading docutils-0.16-py2.py3-none-any.whl (548 kB)
     |████████████████████████████████| 548 kB 250 kB/s 
Collecting requests>=2.0.0
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting MarkupSafe>=0.23
  Downloading MarkupSafe-1.1.1-cp27-cp27m-manylinux1_x86_64.whl (24 kB)
Collecting pyparsing>=2.0.2
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting chardet<5,>=3.0.2
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
     |████████████████████████████████| 153 kB 219 kB/s 
Collecting idna<3,>=2.5
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Using legacy 'setup.py install' for oddt, since package 'wheel' is not installed.
Using legacy 'setup.py install' for numpydoc, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pandas, since package 'wheel' is not installed.
Installing collected packages: pytz, babel, alabaster, MarkupSafe, Jinja2, pyparsing, packaging, snowballstemmer, sphinxcontrib-websupport, typing, imagesize, docutils, chardet, urllib3, idna, certifi, requests, sphinx, numpydoc, scikit-learn, joblib, python-dateutil, pandas, oddt
    Running setup.py install for numpydoc ... done
    Running setup.py install for pandas ... done
    Running setup.py install for oddt ... done
Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 alabaster-0.7.12 babel-2.9.0 certifi-2020.12.5 chardet-4.0.0 docutils-0.16 idna-2.10 imagesize-1.2.0 joblib-0.14.1 numpydoc-0.9.2 oddt-0.7 packaging-20.9 pandas-0.24.2 pyparsing-2.4.7 python-dateutil-2.8.1 pytz-2021.1 requests-2.25.1 scikit-learn-0.20.4 snowballstemmer-2.1.0 sphinx-1.8.5 sphinxcontrib-websupport-1.1.2 typing-3.7.4.3 urllib3-1.26.4
366.639u 8.658s 8:51.26 70.6%	0+0k 166488+2907208io 562pf+0w


---
Mon 19 Apr 2021 17:19:28 BST

   what is woo? non-blocking HTTP server.  Sounds interesting.

----
Mon 10 May 16:42:18 BST 2021


   what is zeromq? https://zeromq.org/ for inter-process communication?
   (Art Lyubimov used it)

-----
Thu  3 Jun 17:25:58 BST 2021

   print_lock is useful elsewhere

   std::atomic<bool> print_lock(false);
   auto get_print_lock = [&print_lock] () {
                            bool unlocked = false;
                            while (! print_lock.compare_exchange_weak(unlocked, true)) {
                               std::this_thread::sleep_for(std::chrono::microseconds(1));
                               unlocked = false;
                            }
                         };
   auto release_print_lock = [&print_lock] () {
                                print_lock = false;
                             };
   auto make_a_wiggled_ligand = [get_print_lock, release_print_lock] (int isample, const coot::minimol::molecule &ligand,
                                    const std::vector<float> &torsion_set ..) {};

----
Sun  6 Jun 2021 04:54:53 BST

   1abr has a nice 3-10 helix


-----
Thu 10 Jun 16:14:17 BST 2021

https://stackoverflow.com/questions/14346090/importerror-no-module-named-backend-gdk

In addition to Haldean Brown's answer, note that if you really need to use pip you can force it to
recompile matplotlib locally and get "the deep magic that setup.py does" with the --no-binary option:

pip uninstall matplotlib
pip install matplotlib --no-binary=matplotlib

As you want to use the GTKAgg backend, Using pip may prove useful in the future to freeze matplotlib
 at a version where it is supported (the deprecation warning states it will be dropped in 3.0):

pip install matplotlib==2.2.2 --no-binary=matplotlib

----
Mon 14 Jun 10:53:16 BST 2021

was
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
now
   gtk_label_set_xalign(GTK_LABEL(label), 0.0);
Thu  1 Jul 18:26:44 BST 2021

Failed to load module "appmenu-gtk-module"

$ sudo apt install appmenu-gtk2-module

Failed to load module "canberra-gtk-module"

$ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

----
Sun  4 Jul 00:42:11 BST 2021

This needs to be fixed

==2187636== Conditional jump or move depends on uninitialised value(s)
==2187636==    at 0x483EF58: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==2187636==    by 0x60E5354: ccp4_cmap_set_symop (cmap_symop.c:128)
==2187636==    by 0x4F25875: void clipper::CCP4MAPfile::export_xmap<float>(clipper::Xmap<float> const&) (ccp4_map_io.cpp:309)
==2187636==    by 0x48A491A: coot::ligand::output_map(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const (ligand.cc:1404)
==2187636==    by 0x1116C4: get_flood_molecule(clipper::Xmap<float> const&, float) (res-tracer.cc:41)
==2187636==    by 0x11BD1A: proc(clipper::Xmap<float> const&, coot::fasta_multi const&, double, float) (res-tracer.cc:1815)
==2187636==    by 0x1104F1: main (res-tracer.cc:1897)


----
Sun  4 Jul 01:08:21 BST 2021

rdkit linking:


/home/paule/Projects/coot/git/coot-refinement/build/ligand/.libs/res-tracer: error while loading shared libraries: libRDKitmaeparser.so.1: cannot open shared object file: No such file or directory
	linux-vdso.so.1 (0x00007ffe09add000)
	libcoot-ligand.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-ligand.so.0 (0x00007fa5b41bc000)
	libcoot-ideal.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-ideal.so.0 (0x00007fa5b4055000)
	libcoot-coord-utils.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-coord-utils.so.0 (0x00007fa5b3ea9000)
	libcoot-map-utils.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-map-utils.so.0 (0x00007fa5b3e3a000)
	libcoot-geometry.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-geometry.so.0 (0x00007fa5b3d30000)
	libcoot-mini-mol.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-mini-mol.so.0 (0x00007fa5b3d09000)
	libcoot-utils.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-utils.so.0 (0x00007fa5b3ccb000)
	libclipper-ccp4.so.2 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libclipper-ccp4.so.2 (0x00007fa5b3c7f000)
	libclipper-core.so.2 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libclipper-core.so.2 (0x00007fa5b3a93000)
	libmmdb2.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libmmdb2.so.0 (0x00007fa5b3943000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fa5b3738000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa5b371b000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa5b36f8000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa5b3506000)
	libcootaneer.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcootaneer.so.0 (0x00007fa5b34d9000)
	libcoot-db-main.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-db-main.so.0 (0x00007fa5b34b0000)
	libccp4mg-utils.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libccp4mg-utils.so.0 (0x00007fa5b3470000)
	libcoot-coord-extras.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-coord-extras.so.0 (0x00007fa5b3408000)
	libcoot-analysis.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-analysis.so.0 (0x00007fa5b33b3000)
	libclipper-minimol.so.2 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libclipper-minimol.so.2 (0x00007fa5b3363000)
	libclipper-contrib.so.2 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libclipper-contrib.so.2 (0x00007fa5b32c4000)
	libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fa5b319b000)
	libgsl.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libgsl.so.0 (0x00007fa5b2f65000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa5b2e16000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fa5b43a4000)
	libgomp.so.1 => /lib/x86_64-linux-gnu/libgomp.so.1 (0x00007fa5b2dd4000)
	libcoot-map-heavy.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-map-heavy.so.0 (0x00007fa5b2db3000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fa5b2d7b000)
	libmvec.so.1 => /lib/x86_64-linux-gnu/libmvec.so.1 (0x00007fa5b2d4d000)
	libcoot-lidia-core.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libcoot-lidia-core.so.0 (0x00007fa5b2cb5000)
	libclipper-mmdb.so.2 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libclipper-mmdb.so.2 (0x00007fa5b2cac000)
	libgslcblas.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libgslcblas.so.0 (0x00007fa5b2c6a000)
	libRDKitFileParsers.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitFileParsers.so.1 (0x00007fa5b2b29000)
	libRDKitRDGeneral.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitRDGeneral.so.1 (0x00007fa5b2b09000)
	libccp4c.so.0 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libccp4c.so.0 (0x00007fa5b2ad0000)
	librfftw.so.2 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/librfftw.so.2 (0x00007fa5b2a9c000)
	libfftw.so.2 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libfftw.so.2 (0x00007fa5b2a5d000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa5b2a55000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fa5b2a39000)
	libRDKitForceFieldHelpers.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitForceFieldHelpers.so.1 (0x00007fa5b29cf000)
	libRDKitDescriptors.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitDescriptors.so.1 (0x00007fa5b296d000)
	libRDKitForceField.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitForceField.so.1 (0x00007fa5b28b1000)
	libRDKitSubstructMatch.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitSubstructMatch.so.1 (0x00007fa5b288f000)
	libRDKitDepictor.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitDepictor.so.1 (0x00007fa5b284e000)
	libRDKitMolChemicalFeatures.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitMolChemicalFeatures.so.1 (0x00007fa5b2825000)
	libRDKitRDGeometryLib.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitRDGeometryLib.so.1 (0x00007fa5b2805000)
	libRDKitGraphMol.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitGraphMol.so.1 (0x00007fa5b26a2000)
	libRDKitSmilesParse.so.1 => /home/paule/autobuild/Linux-penelope-pre-release-gtk2-python/lib/libRDKitSmilesParse.so.1 (0x00007fa5b2610000)
	libRDKitmaeparser.so.1 => not found
	libRDKitPartialCharges.so.1 => not found
	libRDKitSubgraphs.so.1 => not found
	libRDKitcoordgenlib.so.1 => not found
	libRDKitDataStructs.so.1 => not found


----
Sun  4 Jul 02:30:28 BST 2021

  if the atom selection is misteriously going out of date, or changing, then check the function that
  calls this function hasn't deleted the atom selection before this function is called, DeleteSelection()


----
Thu  8 Jul 16:48:13 BST 2021

   a lambda function capturing a mutable reference:

      auto update_worst = [&worst_score_in_top_10_local] (const std::pair<double, int> &s_inner) mutable {
                  if (s_inner.first < worst_score_in_top_10_local) worst_score_in_top_10_local = s_inner.first; };


----
Sat 17 Jul 15:40:16 BST 2021

   the sfs calculation is

   molecule_class_info_t::calculate_sfs_and_make_map

   called by molecule_class_info_t::make_map_from_mtz_by_calc_phases

   called by API function map_from_mtz_by_calc_phases()


----
Mon  2 Aug 22:18:50 BST 2021

Different genomes have been sequenced by different institutes with
different motivations and interests. As such there is no single site
where you can find all the genome information that you may want.

Thus said the NCBI is a good place to start as they curate GenBank
database whose contents get mirrored and exchanged with other
meta-genomic warehouses such as EMBL and DDBJ.

Please have a look at this as well
http://www.ncbi.nlm.nih.gov/sites/genome and this to download genome
data for various organisms. ftp://ftp.ncbi.nlm.nih.gov/genomes/

   -- hadasa https://www.biostars.org/p/9202/


----
Wed  4 Aug 22:26:25 BST 2021

   glade multiple uses of a dialog:

   https://stackoverflow.com/questions/52703513/how-do-i-show-multiple-times-a-dialog-defined-with-glade

----
Thu 19 Aug 12:28:50 BST 2021

      // for gtk2
      // gtk_misc_set_alignment(GTK_MISC(label_widget), 0.0, 0.5);
      // for gtk3
      gtk_label_set_xalign(GTK_LABEL(label_widget), 0.0);

      gtk_label_set_text(GTK_LABEL(label_widget), label.c_str());

---
Wed  1 Sep 01:28:24 BST 2021

   ebassi:

   If you build GTK with debugging support, what happens when you set the GDK_DEBUG=opengl environment variable?
   If you’re using Mesa, what happens when you set the MESA_DEBUG=1 environment variable

---
Sat  4 Sep 18:37:06 BST 2021

    iterator example

         Shader shader_for_hud_lines;
         shader_for_hud_lines.init("hud-lines.shader", Shader::Entity_t::HUD_TEXT);
         std::vector<glm::vec2> data;
         data.reserve(frame_time_history_list.size());
         unsigned int time_count = 0;
         std::list<std::chrono::time_point<std::chrono::high_resolution_clock> >::const_iterator it;
         for (it = frame_time_history_list.begin(); it != frame_time_history_list.end(); it++) {
            if (it != frame_time_history_list.begin()) {
               float x = static_cast<float>(time_count);
               const std::chrono::time_point<std::chrono::high_resolution_clock> tp_this = *it;
               const std::chrono::time_point<std::chrono::high_resolution_clock> tp_prev= *std::prev(it);
               auto delta_t = std::chrono::duration_cast<std::chrono::microseconds>(tp_this - tp_prev).count();
               data.push_back(glm::vec2(x, delta_t));
            }
         }

---
Mon  6 Sep 23:54:21 BST 2021

    cryo_fit:

    https://phenix-online.org/documentation/reference/cryo_fit.html

    has interesting citations

    Have a look at this:

    https://www.embopress.org/doi/full/10.15252/embj.2020106807

    Model building, refinement, validation, and analysis
    EMD-10553 EMD-10554
    Uses PDB ID 4wrn as starting model

---
Wed 29 Sep 18:09:40 BST 2021

   to add a dialog that uses response_id:
   When you add the buttons, don't give them callback in Signals, *do* give them a Response ID in General.

   See add_reps_dialog, but note that "Close" button is a Response, not connected to
   on_add_reps_dialog_response_gtkbuilder_callback() (I am not sure how to activeate that callback).

---
Thu  7 Oct 07:37:59 BST 2021

   freetype font atlas implementation

   https://gist.github.com/baines/b0f9e4be04ba4e6f56cab82eef5008ff

---

 https://github.com/SuperflyJon/VulkanPlayground
 including font atlas

https://en.m.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Text_Rendering_02

----
Tue 19 Oct 08:18:30 BST 2021

   Lots of blender materials - good stuff!
   https://blenderartists.org/t/yet-another-thread-about-cycles-materials/562346/276

---
Tue 19 Oct 14:09:13 BST 2021

   Here's how to do a modern python Gtk molecule combobox

    combobox = Gtk.ComboBox()
    combobox_mol_items = make_store_for_model_molecule_combobox()
    combobox.set_model(combobox_mol_items)
    renderer_text = Gtk.CellRendererText()
    combobox.pack_start(renderer_text, True)
    combobox.add_attribute(renderer_text, "text", 1)
    combobox.set_active(0) # or whatever

    When the gui/dialog is read, use this:

    def get_molecule():
        tree_iter = combobox_molecule.get_active_iter()
        imol = -1
        if tree_iter is not None:
            model = combobox_molecule.get_model()
            it = model[tree_iter]
            imol = it[0]
        return imol

---
Wed 20 Oct 14:02:54 BST 2021

   Here's how to do a modern dialog with molecule combobox

   graphics_info_t g;
   GtkWidget *dialog = widget_from_builder("copy_fragment_dialog");
   GtkWidget *vbox   = widget_from_builder("copy_fragment_vbox");
   int imol = g.get_active_atom().first;

   auto my_delete_box_items = [] (GtkWidget *widget, void *data) {
                                 if (GTK_IS_COMBO_BOX(widget))
                                    gtk_container_remove(GTK_CONTAINER(data), widget); };
   gtk_container_foreach(GTK_CONTAINER(vbox), my_delete_box_items, vbox);
   GtkWidget *combobox = gtk_combo_box_new();
   gtk_box_pack_start(GTK_BOX(vbox), combobox, FALSE, FALSE, 4);
   gtk_box_reorder_child(GTK_BOX(vbox), combobox, 1);
   GCallback callback_func = G_CALLBACK(NULL); // combobox is only used when it's read on OK response
   g.new_fill_combobox_with_coordinates_options(combobox, callback_func, imol);
   g_object_set_data(G_OBJECT(dialog), "combobox", combobox); // for reading
   gtk_widget_show(combobox);
   gtk_widget_show(dialog);

   // Here's the callback

   if (response_id == GTK_RESPONSE_OK) {
      graphics_info_t g;
      GtkWidget *entry = widget_from_builder("copy_fragment_entry");
      std::string text = gtk_entry_get_text(GTK_ENTRY(entry));
      GtkWidget *combobox = GTK_WIDGET(g_object_get_data(G_OBJECT(dialog), "combobox"));
      int imol = g.combobox_get_imol(GTK_COMBO_BOX(combobox));
      int imol_new = copy_fragment(imol, text);
   }
   if (response_id == GTK_RESPONSE_CANCEL) {
      gtk_widget_hide(GTK_WIDGET(dialog));
   }


---
Fri 22 Oct 06:52:45 BST 2021

   o Does your HOLE look like this? https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4078027/


---
Sat  6 Nov 2021 12:28:51 GMT

   This is how to update AC_TRY_LINK usage:

   https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1899/diffs

---
Mon 15 Nov 01:06:56 GMT 2021

old style function (as a executable string)

        func = "go_to_view_number(" + str(button_number) + ",0)" 20211115-PE no to string functions
        buttons.append([button_label, func, desciption])

so try this:

        func = lambda w : coot.go_to_view_number(button_number, 0)
        buttons.append([button_label, func, desciption])

Doesn't work because button_number is not captured. We need a generator

    def generator(button_number):
        func = lambda button_number_c=button_number : coot.go_to_view_number(button_number_c, 0)
        def action(arg):
            print("debug in action() arg is", arg, "button_number is", button_number)
            func(button_number)
        return action

   ...
        func = generator(button_number)
        buttons.append([button_label, func, desciption])


  maybe this could be made more compact.

  here's how I did it in pukka_puckers_qm():

Was:

    if (len(residue_list) == 0):
        info_dialog("No bad puckers.")
    else:
        buttons = []
        for residue in residue_list:
            residue_spec = residue[1]
            pucker_atom = residue[0]
            at_name = get_ribose_residue_atom_name(imol, residue_spec, pucker_atom)
            ls = [residue_spec[0] + " " + str(residue_spec[1]) + residue_spec[2] + \
                  ": " + residue[2],
                  ["set_go_to_atom_molecule("+ str(imol) +")",
                   "set_go_to_atom_chain_residue_atom_name(" +\
                   "\"" + str(residue_spec[0]) + "\", " +\
                   str(residue_spec[1]) + ", " +\
                   "\"" + str(at_name) + "\")"]
                  ]
            buttons.append(ls)
        dialog_box_of_buttons("Non-pukka puckers",
                              [370, 250],
                              buttons,
                              "  Close  ")

Now:

    def go(imol, residue_spec, at_name):
        ch_id = residue_spec_to_chain_id(residue_spec)
        res_no = residue_spec_to_res_no(residue_spec)
        coot.set_go_to_atom_molecule(imol)
        coot.set_go_to_atom_chain_residue_atom_name(ch_id, res_no, at_name)

    def generator(imol, residue_spec, at_name):
        func = lambda imol_c = imol, residue_spec_c = residue_spec, at_name_c = at_name : go(imol_c, residue_spec_c, at_name_c)
        def action(arg):
            func(imol, residue_spec, at_name)
        return action

    if len(residue_list) == 0:
        coot.info_dialog("No bad puckers.")
    else:
        buttons = []
        for residue in residue_list:
            residue_spec = residue[1]
            pucker_atom  = residue[0]
            something    = residue[2]
            at_name = get_ribose_residue_atom_name(imol, residue_spec, pucker_atom)
            label = residue_spec[0] + " " + str(residue_spec[1]) + residue_spec[2] + ": " + something
            func = generator(imol, residue_spec, at_name)
            ls = [label, func]
            buttons.append(ls)
        coot_gui.dialog_box_of_buttons("Non-pukka puckers", [370, 250], buttons, "  Close  ")

----
Fri 25 Feb 2022 07:14:47 GMT

    Mac:

# glib-compile-schemas ~/gtk/inst/share/glib-2.0/schemas
# makes gschemas.compiled in that directory

setenv XDG_DATA_DIRS ~/gtk/inst/share

----
Tue 17 Oct 22:32:02 BST 2023

  Gtk4 is installed in a different directory to the one in which Coot is installed:

  GLib-GIO-ERROR **: 22:26:14.852: No GSettings schemas are installed on the system

  > echo $XDG_DATA_DIR
  /home/paule/gtk4/share/glib-2.0/schemas
  > cp $XDG_DATA_DIR/gschemas.compiled $prfx/share/glib-2.0/schemas


----
Thu  9 Sep 22:15:06 BST 2021

   Re: alphafold: 4lnz example from Tristan's presentation

   There were a few snapshots from James' presentation that are worth more thought.

----
Fri 10 Sep 15:20:23 BST 2021

  CCP4 workshop:
  Rob's ligand 00E got tangled in conformer generation?

---
Sun 19 Sep 2021 02:28:11 BST

   interesting game design https://www.youtube.com/watch?v=7L1B5YaxxoA
   Jonas Tyroller

---
Mon 20 Sep 2021 17:16:29 BST

   gtk3: a flipped residue (or rotamer fit residue) should flash "white" and emit
   particles (say little diamond shapes - 12 of them)

   Maybe (like "active residue" marking) - render just the active residue, and blur it?

   Rising pitch feed-back - I like the sound of a marimba


---
Sat 23 Oct 08:02:34 BST 2021

    implement this: (density contouring)
    http://www.sci.utah.edu/~csilva/papers/noskinny.pdf

----
Wed  5 Jan 18:57:11 GMT 2022

   5rdh rupp presentation

---
Tue 18 Jan 17:29:37 GMT 2022

   the function to generate a dictionary from a residue (the Roberto function) is
   dictionary_residue_restraints_t(mmdb::Residue *residue_p);
   search protein-geometry.hh for "fake up some bond"

---
Fri 28 Jan 12:58:25 GMT 2022

   anom map only # get anom maps from refmac

----
Sat 29 Jan 00:00:13 GMT 2022

    Cory Bloyd says look at this: https://0fps.net/2012/07/12/smooth-voxel-terrain-part-2/
    Do a literature search for Bloyd to find articles about improved contouring.


---
Mon  7 Feb 17:14:06 GMT 2022

   To make widget warnings such as:

   (coot-bin:66652): Gtk-CRITICAL **: 17:13:54.340: gtk_widget_unref: assertion 'GTK_IS_WIDGET (widget)' failed

   into crashes, use --g-fatal-warnings on the command line

   but it might not help much (because it seems that the gtk_widget_unref() happens after the callback finishes.

---
Thu  3 Mar 23:42:55 GMT 2022

   War and Peace is 600,000 words


----
Tue  8 Mar 18:57:30 GMT 2022

    what is this?
   https://cactus.nci.nih.gov/chemical/structure

----
Sun 13 Mar 08:39:24 GMT 2022

   for decoding molecule buttons in a vbox

   GtkWidget *map_vbox     = widget_from_builder("find_waters_map_vbox");
   GtkWidget *protein_vbox = widget_from_builder("find_waters_protein_vbox");

   auto get_mol_for_find_waters = [] (GtkWidget *item, void *data) {
                                     if (GTK_IS_TOGGLE_BUTTON(item)) {
                                        if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(item))) {
                                           int *imol_ptr = static_cast<int *>(data);
                                           int imol = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(item), "imol"));
                                           *imol_ptr = imol;
                                        }
                                     }
                                  };

   if (GTK_IS_BOX(map_vbox)) {
      int imol_map = -1;
      void *imol_ptr = &imol_map;
      gtk_container_foreach(GTK_CONTAINER(map_vbox), get_mol_for_find_waters, imol_ptr);
      if (is_valid_map_molecule(imol_map)) {
         find_waters_map_mol = imol_map;
      }
   }
   if (GTK_IS_BOX(protein_vbox)) {
      int imol_protein = -1;
      void *imol_ptr = &imol_protein;
      gtk_container_foreach(GTK_CONTAINER(protein_vbox), get_mol_for_find_waters, imol_ptr);
      if (is_valid_model_molecule(imol_protein)) {
         find_waters_protein_mol = imol_protein;
      }
   }

   // example of how to interate through children of a vbox:

      GList *dlist = gtk_container_get_children(GTK_CONTAINER(vbox));
      GList *free_list = dlist;

      while (dlist) {
         GtkWidget *list_item = GTK_WIDGET(dlist->data);
         if (GTK_IS_TOGGLE_BUTTON(list_item)) {
            if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(list_item))) {
               int imol = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(list_item), "imol"));
               closed_molecules.push_back(imol);
            }
         } else {
            std::cout << "not a toggle button" << std::endl;
         }
         dlist = dlist->next;
      }
      g_list_free(free_list);

 

----
Mon 14 Mar 09:25:01 GMT 2022


Failed to load module "appmenu-gtk-module"

sudo apt-get install appmenu-gtk3-module


----
Wed 16 Mar 10:30:38 GMT 2022

conkit-validate simkovic et al (involves alphafold)


----
Fri 18 Mar 13:26:34 GMT 2022

   Use libglyphy for text rendering:

   https://github.com/behdad/glyphy/


----
Sat 26 Mar 14:10:12 GMT 2022

  Catalase map: 7P8W and EMD-13256

  https://academic.oup.com/jmicro/article/71/Supplement_1/i51/6530492?login=true

  Interaction of human erythrocyte catalase with air–water interface in cryoEM


----
Sat  9 Apr 18:47:03 BST 2022

   gtk_window_deiconify() - is this what I want to do when I get a dialog from builder?

----
Wed  2 Mar 11:33:42 GMT 2022

  Update CentOS7 compiler:

   $ yum install centos-release-scl
   $ yum install devtoolset-8

   as a user, to use the new compiler:
   $ scl enable devtoolset-8 tcsh

   Thank you Charles.  I chose devtoolset-11

---
Wed  2 Mar 16:52:53 GMT 2022

  python with ctypes (libffi)
https://unix.stackexchange.com/questions/631725/how-do-i-build-pkgconf-and-libffi-and-subsequently-python3-9-with-ctypes-support

---
Fri 15 Apr 20:13:37 BST 2022

   1781 occurrances of _gtkbuilder_callback in *.cc *.h *.hh ../a6.glade


---
Sat 23 Apr 22:56:05 BST 2022

  In the Makefile
  CXXLD = $(CXX) -fuse-ld=gold

-----
Sun  5 Jun 18:02:01 BST 2022

  How to set a GtkBox to style ToolBar

  gtk_widget_add_css_class (toolbar, "toolbar");
  same can be done in xml file too.

  <object class="GtkBox">
    ... childs here
    <style>
        <class name="toolbar"/>
    </style>
  </object>


https://discourse.gnome.org/t/hope-gtktoolbar-back-to-gtk4/6201/5

-----
Sun  5 Jun 22:34:51 BST 2022

  GNOME standard
  
  Ctrl ? to open keyboard shortcuts (do they mean Ctrl /?)

  Ctrl + to open Preferences (Ctrl =?)


https://developer.gnome.org/hig/reference/keyboard.html

----
Sat 11 Jun 02:38:27 BST 2022

   GTK4 FIXME dates:

20220528-PE
20220602-PE

---
Wed 15 Jun 2022 16:27:05 BST

CGLCreateContext

https://github.com/servo/surfman/issues/82

----
Tue 14 Jun 01:12:05 BST 2022

  OpenGL on Mac

https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_contexts/opengl_contexts.html


----
Wed 15 Jun 18:31:56 BST 2022


   GTK4 Tutorials

   https://github.com/ToshioCP/Gtk4-tutorial

----
Thu  9 Jun 01:00:03 BST 2022

   Structures for "Let's Build"

   7SC0
   7P8V
   catalase: https://www.ebi.ac.uk/emdb/EMD-13256

---
Wed 29 Jun 04:10:16 BST 2022


  Look for "maching learning exmples" here

  https://www.neuraldesigner.com/blog - you will need to sign up first though.


----
Wed  3 Aug 06:46:59 BST 2022

 Here's how to do a protected download:

   std::string fn_tail = std::string("AF-") + uniprot_id + std::string("-F1-model_v3.pdb");
   // make coot-download if needed
   std::string download_dir = "coot-download";
   download_dir = coot::get_directory(download_dir.c_str());
   std::string fn = coot::util::append_dir_file(download_dir, fn_tail);
   std::string url = std::string("https://alphafold.ebi.ac.uk/files/") + fn_tail;
   bool needs_downloading = true;
   if (coot::file_exists_and_non_empty(fn))
      needs_downloading = false;
   if (needs_downloading) {
      coot_get_url(url.c_str(), fn.c_str());
   }

----

   Wayland for MacOS:  https://github.com/owl-compositor/owl

----

   Project items

   1: Compile GooCanvas with GTK4? Possible?

   2: How to get PyGObject working with GTK4?

   3: Put coot_utils coot_gui and extenstion and all the others inside the coot module in Python

   4: Doxygen, Breathe, Sphinx documentation

   5: How to make a flatpak for coot?

   6: Restore the command line arguments


---
Sat 13 Aug 08:42:27 BST 2022

   how to iterate through a widget's children in GTK4:

   GtkWidget *item_widget = gtk_widget_get_first_child(box);
   while (item_widget) {
      if (some_test) {
         some assignment;
      }
      item_widget = gtk_widget_get_next_sibling(item_widget);
   };


---
Tue 16 Aug 2022 11:47:59 BST

  PyGObject and GTK4 info:

  https://discourse.gnome.org/t/gtk4-pygobject-testing/4197
  It is not clear to me at the moment what to try next from the above page.

  Ah. Here:

  https://github.com/Taiko2k/GTK4PythonTutorial/blob/main/README.md


---
Tue 16 Aug 2022 18:21:12 BST

   Maybe this will fix the linking problems on introducing MoleculesToTriangles:

https://stackoverflow.com/questions/35006614/what-does-symbol-not-found-expected-in-flat-namespace-actually-mean


---
Wed 10 Aug 07:45:45 BST 2022

  how to make sphinx documentation:

  "Sphinx documentation requires first generating Doxygen documentation, then using the outputted xml with Breathe,
  to generated the sphinx documentation."

  https://github.com/tbattz/openGLPlotLive

----
Wed 10 Aug 08:58:04 BST 2022

  OpenGL text (better than I have done it so far)

  https://sourceforge.net/projects/ftgl/

---
Tue 30 Aug 03:11:57 BST 2022

   How to run a safe python command for create-menu-item-actions.cc

   std::pair<bool, std::pair<int, coot::atom_spec_t> > pp = active_atom_spec();
   if (pp.first) {
      graphics_info_t g;
      int imol = pp.second.first;
      short int lang = coot::STATE_PYTHON;
      std::vector<coot::command_arg_t> args = { coot::command_arg_t(imol), coot::command_arg_t(chain_id) };
      std::string sc = g.state_command("coot_utils", "", args, lang);
      safe_python_command("import coot_utils");
      safe_python_command(sc);
   }


---
Tue 30 Aug 17:41:18 BST 2022

   when trying to add an overlay dialog to the main graphics window, you need to use the vbox of the
   dialog - and not the dialog itself. The vbox should not be part of a dialog - that should be stripped
   out in the .ui file.


---
Mon 12 Sep 18:29:06 BST 2022

   have a look at vkbasalt - related to mangohud maybe?

---
Tue 27 Sep 17:26:28 BST 2022

convert to overlay:

-   set_transient_for_main_window(window);
-   gtk_widget_show(window);
+   // set_transient_for_main_window(window);
+   // gtk_widget_show(window);
+
+
+   //  ---------------- User an overlay ---------
+
+   {
+      GtkWidget *overlay = widget_from_builder("main_window_graphics_overlay");
+      GtkWidget *vbox    = widget_from_builder("new_accession_code_vbox"); // create this
+
+      gtk_overlay_add_overlay(GTK_OVERLAY(overlay), vbox);
+      gtk_widget_set_halign(vbox, GTK_ALIGN_CENTER);
+      gtk_widget_set_valign(vbox, GTK_ALIGN_START);
+
+      GtkWidget *entry = widget_from_builder("new_get_accession_code_entry");
+      gtk_widget_set_can_focus(entry, TRUE);
+      gtk_widget_set_focusable(entry, TRUE);
+      gtk_widget_grab_focus(entry);
+
+      gtk_widget_show(vbox);
+   }
+

---
Thu 27 Apr 07:15:04 BST 2023

  gtk4 iterate through children:

   for (GtkWidget* child = gtk_widget_get_first_child(vbox_for_molecules);
       child != nullptr;
       child = gtk_widget_get_next_sibling(child)) {

      int imol_for_child = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(child), "imol"));
      if (imol_for_child == imol)
         gtk_box_remove(GTK_BOX(vbox_for_molecules), child);
         break; // child no longer valid
   }

   Python:

            child = box.get_first_child()
            while child is not None:
                next_child = child.get_next_sibling()
                box.remove(child)
                child = next_child

----
Sun 25 Sep 14:06:27 BST 2022

   6pkh is a candidate for glyco tutorial.  Needs blurring.


---
Tue 16 Aug 2022 11:47:59 BST

  PyGObject and GTK4 info:

  https://discourse.gnome.org/t/gtk4-pygobject-testing/4197
  It is not clear to me at the moment what to try next from the above page.

  Ah. Here:

  https://github.com/Taiko2k/GTK4PythonTutorial/blob/main/README.md


---
Tue 16 Aug 2022 18:21:12 BST

   Maybe this will fix the linking problems on introducing MoleculesToTriangles:

https://stackoverflow.com/questions/35006614/what-does-symbol-not-found-expected-in-flat-namespace-actually-mean


---
Thu 19 Jan 00:43:28 GMT 2023

   an instanced sphere:

      instanced_geometry_t ig_empty;
      im.add(ig_empty);
      instanced_geometry_t &ig = im.geom.back();

      std::pair<std::vector<glm::vec3>, std::vector<g_triangle> > octaphere_geom =
         tessellate_octasphere(num_subdivisions);
      ig.vertices.resize(octaphere_geom.first.size());
      for (unsigned int i=0; i<octaphere_geom.first.size(); i++)
         ig.vertices[i] = api::vn_vertex(octaphere_geom.first[i], octaphere_geom.first[i]);
      ig.triangles = octaphere_geom.second;




---
Sun 19 Feb 13:32:39 GMT 2023

fix these functions:

void
graphics_info_t::remove_coordinates_glob_extension(const std::string &extension) {

  std::vector<std::string>::iterator it;
  for (it = coordinates_glob_extensions->begin(); it<coordinates_glob_extensions->end(); ++it) {
    if (*it == extension) {
      coordinates_glob_extensions->erase(it);
      // could put in break here!?
      // avoid since it could happen that you have multiples of same entry
    }
  }
}

void graphics_info_t::remove_data_glob_extension(const std::string &extension) 
void graphics_info_t::remove_map_glob_extension(const std::string &extension)
void graphics_info_t::remove_dictionary_glob_extension(const std::string &extension)


---
Mon  8 May 2023 03:33:30 BST

   Make a snippet for this function:
         g_object_set_data(G_OBJECT(checkbutton), "imol", GINT_TO_POINTER(imol));


---
Tue  9 May 2023 20:35:05 BST

   New Style combobox

   GtkWidget *model_combobox = widget_from_builder("generate_diff_map_peaks_molecule_combobox");
   GtkWidget   *map_combobox = widget_from_builder("generate_diff_map_peaks_map_combobox");

   auto get_model_molecule_vector = [] () {
                                     graphics_info_t g;
                                     std::vector<int> vec;
                                     int n_mol = g.n_molecules();
                                     for (int i=0; i<n_mol; i++)
                                        if (g.is_valid_model_molecule(i))
                                           vec.push_back(i);
                                     return vec;
                                  };

   graphics_info_t g;
   int imol_active = -1;
   GCallback func_combobox_changed = G_CALLBACK(nullptr); // we don't care until this dialog is read
   auto model_list = get_model_molecule_vector();
   g.fill_combobox_with_molecule_options(model_combobox, func, imol_active, model_list);

   if func_combobox_changed is needed for direct action, the signature is:
   void func_combobox_changed(GtkWidget *combobox, gpointer data);

Here is how you read the imol:

   int imol_coords = my_combobox_get_imol(GTK_COMBO_BOX(model_combobox));
   int imol_map    = my_combobox_get_imol(GTK_COMBO_BOX(map_combobox));


---
Sun 11 Jun 01:10:48 BST 2023

   use cpulimit for gdb interrupting slow parts of the program

   https://www.cyberciti.biz/faq/cpu-usage-limiter-for-linux/


---
Tue 13 Jun 08:31:31 BST 2023

  Godot:
  Create Mesh with Code: ArrayMesh Basics
  https://www.youtube.com/watch?v=w9KBxifGYiU

----
Sun 18 Jun 11:18:37 BST 2023

## --- Widgets that have changed in GTK ---

 - Padding is gone, margins and layout are in.
 - Tables are out, Grids are in.
 - Radio buttons are gone, use check buttons instead.
 - HBoxes and VBoxes are gone, use generic Box
 - Toolbuttons, Toolcheckbutton, tooltogglebuttons are gone, use the non-tool version
 - Canvas is gone, use widget lists instead (how?)

Have a look at adding thing this:
<style>
   <class name="suggested-action"/>
</style>
after a buttons's properties
Here are other styles:

    .image-button: used when the button contains only an image
    .text-button: used when the button contains only a label
    .flat: used for buttons with no border or background
    .keyboard-activating: used when the button is activated by keyboard input
    .suggested-action: used for buttons that are recommended or suggested actions
    .destructive-action: used for buttons that perform a destructive action, such as deleting data
    .circular: used for circular buttons


----
Sun 23 Jul 02:32:13 BST 2023

   GTK4 on Windows:
   https://www.collabora.com/news-and-blog/blog/2021/03/18/build-and-run-gtk-4-applications-with-visual-studio/
   https://www.collabora.com/news-and-blog/blog/2021/04/29/build-your-own-application-with-gtk4-as-a-meson-subproject/


----
Tue  1 Aug 2023 02:02:39 BST

MacOS linking notes

https://stackoverflow.com/questions/33991581/install-name-tool-to-update-a-executable-to-search-for-dylib-in-mac-os-x


---
Sat 26 Aug 15:38:09 BST 2023

  For the old morphing method:
  Here is how to (better?) handle the averaging of the fragment rotations.
  https://stackoverflow.com/questions/12374087/average-of-multiple-quaternions


---
Wed 13 Sep 23:08:19 BST 2023

   Godot and steam deck

   https://www.kodeco.com/41495624-targeting-the-steam-deck-with-godot

---
Sat 16 Sep 22:08:13 BST 2023

   ChimeraX Ambient Occlusion notes from 9 years ago
   https://www.cgl.ucsf.edu/chimera/data/ambient-jul2014/ambient.html
   Mentions 3D textures.


---
Sun 17 Sep 00:43:45 BST 2023

   6zhp is a good example for model specularity (failure) when shadows are on.

---
Sun  1 Oct 18:27:35 BST 2023

   have a look at this:
   https://t.co/MmQzn1BJjk daqdb.kiharalab.org


---
Tue  3 Oct 11:20:14 BST 2023

   how to setup a cylinder for instancing:

   auto convert_vertices = [] (const std::vector<coot::api::vnc_vertex> &v_in) {
      std::vector<coot::api::vn_vertex> v_out(v_in.size());
      for (unsigned int i=0; i<v_in.size(); i++) {
         const auto &v = v_in[i];
         v_out[i] = coot::api::vn_vertex(v.pos, v.normal);
      }
      return v_out;
   };

   auto clipper_to_glm = [] (const clipper::Coord_orth &co) {
                            return glm::vec3(co.x(), co.y(), co.z());
                         };


         coot::instanced_geometry_t igeom;
         unsigned int n_slices = 6;
         unsigned int n_stacks = 6;
         std::pair<glm::vec3, glm::vec3> pp(glm::vec3(0,0,0), glm::vec3(0,0,1));
         cylinder c_00(pp, 1.0, 1.0, 1.0, n_slices, n_stacks);
         c_00.add_flat_end_cap();
         c_00.add_flat_start_cap();
         igeom.vertices = convert_vertices(c_00.vertices);
         igeom.triangles = c_00.triangles;


----
Mon  9 Oct 22:46:13 BST 2023

  typescript type-fest:

  https://github.com/sindresorhus/type-fest

---
Fri 13 Oct 09:43:51 BST 2023

   Use this for jiggle-fit
   https://www.blopig.com/blog/2021/08/uniformly-sampled-3d-rotation-matrices/
   Thanks Jack Scantlebury


----
Sat 14 Oct 17:26:23 BST 2023

  Marc Baaden http://www.baaden.ibpc.fr

----
Sat 14 Oct 19:03:12 BST 2023

   shaders: https://www.youtube.com/watch?v=3mfvZ-mdtZQ

---
Tue 24 Oct 21:30:11 BST 2023

   It's infuriating that gtk4 requires a version of meson that is newer
   than the one provided by pip


----
Fri 27 Oct 01:39:28 BST 2023

# compiling
install_top_dir=$HOME/gtk4
epxort PKG_CONFIG_PATH=$install_top_dir/lib/x86_64-linux-gnu/pkgconfig:$install_top_dir/lib/pkgconfig
meson setup -Dprefix=$install_top_dir build
cd build
ninja

meson-logs/meson-log.txt says

   Dependency glib-2.0 found: NO found 2.66.8 but need: '>= 2.72.0'

---
Sun  3 Dec 00:12:03 GMT 2023

From phind.com, Sound on a Mac:


FILE* file = fopen("path_to_your_file.ogg", "rb");
OggVorbis_File vf;
ov_open(file, &vf, NULL, 0);

    Decode the audio data: Use libogg to decode the audio data. This
    will convert the raw audio data into a format that can be played
    by the Audio Queue Services API:

vorbis_info* vi = ov_info(&vf, -1);

    Set up the Audio Queue: Use the Audio Queue Services API to set up
    an audio queue. This will be used to play the decoded audio data:

AudioQueueRef queue;
AudioQueueNewOutput(&format, AudioCallback, this, NULL, 0, &queue);

    Play the audio data: Use the Audio Queue Services API to play the
    decoded audio data:

AudioQueueStart(queue, NULL);

    Clean up: When you're done playing the audio data, make sure to
    clean up by closing the .ogg file and freeing any resources that
    were allocated:

ov_clear(&vf);
fclose(file);

----
Mon  4 Dec 2023 17:49:51 GMT

   Colour-blind colour scheme:

   https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4987940/

----
Thu  7 Dec 2023 08:42:36 GMT

   https://www.blopig.com/blog/2022/08/retrieving-alphafold-models-from-alphafolddb/
---
Sun 17 Dec 19:18:31 GMT 2023

   ax boost thread

   https://www.gnu.org/software/autoconf-archive/ax_boost_thread.html

---
Sun 17 Dec 19:31:23 GMT 2023

   for random numbers: make a table of size 21247 (it's prime) and sample from
   that with a static unsigned int counter/index.

---
Fri 29 Dec 2023 23:25:32 GMT

   This looks interesting
   https://github.com/nmwsharp/geometry-central

---
Sat 30 Dec 2023 11:23:15 GMT

 Dual marching cubes
 https://ieeexplore.ieee.org/abstract/document/1372234

---
Thu  4 Jan 2024 16:34:33 GMT

   Tristan Croll talk:
   7adk is problematic but appear to be not too terrible given current
   model validation.

---
Mon 15 Jan 2024 09:20:06 GMT

   Inspiration for Chemical Feature Clustering:

   http://www.ub.edu/cbdd/?q=content/mapping-chemical-features-molecules-using-rdkit

---
Fri 26 Jan 15:43:37 GMT 2024

  Jordan: privateer

  2h6o is problematic

---
Thu 25 Jan 2024 22:48:55 GMT

  https://www.rcsb.org/structure/7QSD
  https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7614227
  in Bendix style - rendered in Blender

---
Mon  5 Feb 15:41:05 GMT 2024

If you want to change the molecule "key" to a vector of ints for restraints you will
need to start here:

   protein-geometry.hh
1346       std::vector<std::pair<int, dictionary_residue_restraints_t> > dict_res_restraints;

---
Tue 13 Feb 2024 08:26:15 GMT

 Python on macOS
 https://spin.atomicobject.com/compiling-python-openssl/


---
Sun 18 Feb 19:04:30 GMT 2024

 https://www.codetyper.io/

---
Fri 16 Feb 2024 09:49:53 GMT

  outline shader (via Stuart)
  https://roystan.net/articles/outline-shader/

---
Tue 20 Feb 18:53:16 GMT 2024

  Code of Conduct:
  https://github.com/catchorg/Catch2/blob/devel/CODE_OF_CONDUCT.md

---
Wed  6 Mar 16:25:43 GMT 2024

mmdb documentation:

   https://www.ebi.ac.uk/pdbe/docs/cldoc/object/cl_obj_surf.html
   https://www.ebi.ac.uk/pdbe/docs/cldoc/object/cl_obj_selfnc.html

---
Wed  6 Mar 2024 12:49:58 GMT

  VS Code copy line keybindings:
  https://github.com/microsoft/vscode/issues/6197

---
Fri  8 Mar 2024 03:54:36 GMT

  Time resolved cryo-EM
  https://www.biorxiv.org/content/10.1101/2023.03.20.533387v2

---
Fri 12 Apr 14:57:48 BST 2024

   emd_43330.map
   emd_43331.map: a tomogram too big for clipper (are they related?)

---
Sun 21 Apr 15:55:19 BST 2024

   It would be nice to have a python console/terminal
   Consider also nbterm:

   https://blog.jupyter.org/nbterm-jupyter-notebooks-in-the-terminal-6a2b55d08b70

   and Textualize:

   https://github.com/Textualize/textual

---
Wed  8 May 2024 21:58:43 PDT

   Helix middle relative based on residue 2.
   [2.7933435440063477, 3.245997428894043, 2.19431734085083]

---

   7GYY might be part of a series - useful for CFC

Crystal structure of SARS-CoV-2 NSP3 Macrodomain in complex with ASAP-0013385-001 (and related)

7GYY 7GYZ 7GZ0 7GZ1 7GZ2 7GZ3 7GZ4 7GZ5 7GZ6 7GZ7 7GZ8 7GZ9 7GZA 7GZB 7GZC 7GZD 7GZE 7GZF
7GZG 7GZH 7GZI 7GZJ 7GZK 7GZL 7GZM 7GZN 7GZO 7GZQ 7GZR 7GZS 7GZT 7GZU 7GZV 7GZW 7GZX 7GZY
7GZZ 7H00 7H01 7H02 7H03 7H04 7H05 7H06 7H07 7H08 7H09 7H0A 7H0B 7H0C 7H0D 7H0E 7H0F 7H0G
7H0H 7H0I 7H0J 7H0K 7H0L 7H0M 7H0N 7H0O 7H0P 7H0Q 7H0R 7H0S 7H0T 7H0U 7H0V 7H0W 7H0X 7H0Y
7H0Z 7H10 7H11 7H12 7H13 7H14 7H15 7H16 7H17 7H18 7H19 7H1A 7H1B 7H1C 7H1D 7H1E 7H1F 7H1G


---
Sun 26 May 2024 18:12:44 BST

   how did I miss this?
   https://link.springer.com/article/10.1186/s13321-020-00429-4
   https://durrantlab.pitt.edu/autogrow4/


---
Sun 26 May 2024 22:02:51 BST

   https://buildd.debian.org/status/package.php?p=coot

   coot on armel needs to be linked with libatomic

 libtool: compile:  g++ -DPACKAGE_NAME=\"coot\" -DPACKAGE_TARNAME=\"coot\" -DPACKAGE_VERSION=\"1.x-pre\" "-DPACKAGE_STRING=\"coot 1.x-pre\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"coot\" -DVERSION=\"1.x-pre\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENMP=1 -DHAVE_CXX11=1 -DHAVE_CXX_THREAD=1 -DHAVE_PYTHON=\"3.11\" "-DHAVE_BOOST=/**/" "-DHAVE_BOOST_THREAD=/**/" "-DHAVE_BOOST_PYTHON=/**/" -I. -I.. -DMAKE_ENHANCED_LIGAND_TOOLS -DCLIPPER_HAS_TOP8000 -I/usr/lib/i386-linux-gnu/include -DUSE_GEMMI=1 -DMMDB_HAS_LINK_DISTANCE -I/usr/include -I/usr/include/rdkit -DRDKIT_HAS_CAIRO_SUPPORT -pthread -I/usr/include -DUSE_PYTHON -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_GSL -DPKGDATADIR=\"/usr/share/coot\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-unused -std=c++17 -c atom-selection-container.cc  -fPIC -DPIC -o .libs/atom-selection-container.o
In file included from /usr/include/gemmi/model.hpp:18,
                 from /usr/include/gemmi/chemcomp_xyz.hpp:12,
                 from /usr/include/gemmi/mmread.hpp:8,
                 from atom-selection-container.cc:38:
/usr/include/gemmi/elem.hpp: In function ‘double gemmi::molecular_weight(El)’:
/usr/include/gemmi/elem.hpp:100:50: error: static assertion failed: Hmm
  100 |   static_assert(weights[static_cast<int>(El::D)] == 2.0141, "Hmm");
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/gemmi/elem.hpp:100:50: note: the comparison reduces to ‘(2.01410000000000000142e+0l == 2.0140999999999999999e+0l)’
/usr/include/gemmi/elem.hpp: In function ‘float gemmi::covalent_radius(El)’:
/usr/include/gemmi/elem.hpp:141:48: error: static assertion failed: Hmm
  141 |   static_assert(radii[static_cast<int>(El::D)] == 0.31f, "Hmm");
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/gemmi/elem.hpp:141:48: note: the comparison reduces to ‘(3.10000002384185791016e-1l == 3.10000000000000000002e-1l)’
/usr/include/gemmi/elem.hpp: In function ‘float gemmi::vdw_radius(El)’:
/usr/include/gemmi/elem.hpp:186:48: error: static assertion failed: Hmm
  186 |   static_assert(radii[static_cast<int>(El::D)] == 1.2f, "Hmm");
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~


---
Fri 31 May 23:47:08 BST 2024

#include <GraphMol/MolPickler.h>

   auto test_pickle = [] (const RDKit::RWMol &mol) {
      std::cout << "pickle mol" << std::endl;
      RDKIT_GRAPHMOL_EXPORT RDKit::MolPickler mp;
      std::string pickle_string;
      mp.pickleMol(mol, pickle_string);

      std::ofstream f("test-mol.pickle");
      f << pickle_string;
      f.close();
   };

---
Sat 15 Jun 2024 14:17:30 BST

   change the number of graphcs per page in R
   par(mfrow=c(2,1))


---
Thu  4 Jul 2024 14:03:10 BST

GTK4 pixel scaling

https://www.reddit.com/r/GTK/comments/1c0xaar/gtk4_any_way_to_lock_the_size_of_a_logical_pixel/
https://news.ycombinator.com/item?id=30796841

-----
Fri 26 Jul 2024 19:16:14 BST

   modelangelo build example 24677
   https://cosmic-cryoem.org/tools/modelangelo/

---
Fri Aug 30 09:04:18 PM BST 2024

   Good example for tubes:
   https://www.ebi.ac.uk/pdbe/entry/pdb/7uaa
   There is a low resolution map EMD-26312

---
Fri Aug 30 09:11:27 PM BST 2024

   DPS dataset is EMD-11210
   https://www.ebi.ac.uk/emdb/EMD-11210
   https://www.ebi.ac.uk/pdbe/entry/pdb/6zgl

---
Fri Sep  6 10:14:55 PM BST 2024

   o Sketch out the widgets on paper
   o Add a dialog to coot-gtk4.ui. Use the dialog snippet
   o The button to invoke this is in a module?
      - Look in python/coot_gui.py for neighboring menu item
      - Add a add_action() line
      - Add a wrapper and the function it wraps
     else
      - add your action to create-menu-item-actions.cc
   o Add a coot api function that is called by the function
     e.g. display the new dialog, which fills the entries
          and comboboxes.

     Use
     g.new_fill_combobox_with_coordinates_options(combobox_2, callback, imol_active);
     fill_combobox_with_map_options(combobox_1, callback);

   o The response handler, on_new_function_dialog_response() is
     added to glade-callback.cc, make it call an api cc-interface.hh
     function

   e.g. see commit 0aee836257053b5c9cdbceb6b3896b39cddfd797

---
Sat Sep  7 03:41:40 PM BST 2024

   map_partition_by_chain_threaded() is a good example of non-blocking
   map generation. It creates a detacted thread and a callback to look
   for the results of the thread. The results are stored in graphics_info_t.

   In this case the selector is a dialog, it should be, for such a small
   interface, a main-window overlay.

   see commit 0cf8c4679a84a6dd4f51011c49bbc489ad2cba83
              d18123bc1ef908a2a833e05a6a02a5ccaa5ea615

---
Thu 22 Aug 2024 03:57:42 BST

   what is the Intel Open Image Denoise 2.2 benchmark?


---
Thu  5 Sep 2024 16:41:54 BST

   Plant FASTA genome
   https://ftp.ensemblgenomes.ebi.ac.uk/pub/plants/release-59/fasta/chlamydomonas_reinhardtii/pep
   more in
   https://ftp.ensemblgenomes.ebi.ac.uk/pub/
   you want the peps

----

        updateFloatParameter("ribbonStyleCoilThickness",0.3);
        updateFloatParameter("ribbonStyleHelixWidth",1.2);
        updateFloatParameter("ribbonStyleStrandWidth",1.2);
        updateFloatParameter("ribbonStyleArrowWidth",1.5);
        updateFloatParameter("ribbonStyleDNARNAWidth",1.5);
        updateFloatParameter("cylindersStyleCylinderRadius",0.2);
        updateFloatParameter("cylindersStyleBallRadius",0.2);
        updateFloatParameter("surfaceStyleProbeRadius",1.4);
        updateFloatParameter("ballsStyleRadiusMultiplier",1.);
        updateIntParameter  ("ribbonStyleAxialSampling",6);
        updateIntParameter  ("cylindersStyleAngularSampling",6);
        updateIntParameter  ("dishStyleAngularSampling",32);


---
Fri Sep 13 04:03:17 AM BST 2024

   To move the Preferences Close button to the right-hand side, I added
               <property name="halign">end</property>
   to the GtkBox which contained the button


----
Sun  6 Oct 18:04:53 BST 2024

   arch linux by default redirects the core dumps
   To fix:
   kernel.core_pattern=core in /etc/sysctl.d/50-coredump.conf

---

Old Coot: package glib2-devel needed on arch to provide glib-mkenums gtkglext

---
Tue 12 Nov 14:21:20 GMT 2024

   PyVOL
   Avner Schlessinger

---
Mon 25 Nov 2024 10:44:25 GMT

   Find coot.rb here:
   https://github.com/brewsci/homebrew-bio/tree/develop/Formula

   to install coot from homebrew:
   brew install brewsci/bio/coot
---

   interesting?
   xclip -r -selection clipboard

----
Fri 13 Dec 22:37:16 GMT 2024

   7gww is part of a multi tetrapeptide screen (it seems)

---

nerd fonts:
https://gist.github.com/davidteren/898f2dcccd42d9f8680ec69a3a5d350e

-----

https://huggingface.co/spaces/Qwen/Qwen2.5-Coder-demo
https://huggingface.co/Qwen/Qwen2.5-Coder-32B

---

enamine.net for fragmenst and ligand manipulation gui? Arno.

----
Sat  4 Jan 03:32:14 GMT 2025

  stumbling block removed?
  https://github.com/rdkit/rdkit/pull/7389/commits/407ef993981de44c72efa7df11a2cca9354df4c2


---
Wed 22 Jan 2025 07:36:17 GMT

  the value of tests:
  https://www.youtube.com/shorts/u49giZDzSDI

---
Sat 25 Jan 20:03:47 GMT 2025

   When debugging the lighting, the molecular surface of 1ajs looks bad/weird.

---
Sun 26 Jan 19:43:47 GMT 2025

   Nice graphs? Job for Jakub.
   https://gitlab.gnome.org/World/Graphs
   o Nope. Python and vala. Do it in svg.

---
Sun 26 Jan 20:21:59 GMT 2025

turn off deprecated in a particular function:

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
...
#pragma GCC diagnostic pop

https://stackoverflow.com/questions/13459602/how-can-i-get-rid-of-deprecated-warnings-in-deprecated-functions-in-gcc

----
Sun 26 Jan 21:27:29 GMT 2025

  suggested action for OK buttons:

              <object class="GtkButton" id="find_waters_ok_button">
                <property name="label" translatable="yes">Find Waters</property>
                <property name="can-focus">1</property>
                <property name="margin-start">4</property>
                <property name="margin-end">4</property>
                <property name="margin-top">4</property>
                <property name="margin-bottom">4</property>
                <signal name="clicked" handler="on_find_waters_ok_button_clicked" swapped="no"/>
                <style>
                  <class name="suggested-action"/>
                </style>


---
Fri 31 Jan 2025 04:09:26 GMT

https://lbc-lnbio.github.io/KVFinder-web/

---
gtk4 python startup:

https://stackoverflow.com/questions/56823857/valueerror-namespace-gtk-not-available

---
Wed Feb  5 13:18:33 GMT 2025

getting python to start up correctly:

https://stackoverflow.com/questions/47885615/python-systemerror-when-using-the-c-api-pyrun-string


---
Sun 23 Feb 03:20:25 GMT 2025

c-interface-superpose.cc - make fill-combobox-with-molecule-options.hh

// make this available
void
fill_combobox_with_molecule_options_simple(GtkWidget *combobox) {

  auto get_model_molecule_vector = [] () {
                                       graphics_info_t g;
                                       std::vector<int> vec;
                                       int n_mol = g.n_molecules();
                                       for (int i=0; i<n_mol; i++)
                                          if (g.is_valid_model_molecule(i))
                                             vec.push_back(i);
                                       return vec;
                                    };
   int imol_active = -1;
   auto mol_vec = get_model_molecule_vector();
   if (! mol_vec.empty()) imol_active = mol_vec[0];
   graphics_info_t g;
   g.fill_combobox_with_molecule_options(combobox, G_CALLBACK(nullptr), imol_active, mol_vec);
}

----
Sun  2 Mar 15:22:53 GMT 2025

  don't use
  gtk_widget_set_size_request(drawing_area, 800, 600);
  because it sets the minimum size

  consider use
  gtk_window_set_default_size(window, w, h);

----
Mon  3 Mar 16:23:38 GMT 2025
    Key Atom Pair Distances:

    Adenine-Thymine (A-T) Base Pairs:
        N1 of Adenine to N3 of Thymine: Approximately 2.86 Å
        N6 of Adenine to O4 of Thymine: Approximately 2.90 Å
    Guanine-Cytosine (G-C) Base Pairs:
        N1 of Guanine to N3 of Cytosine: Approximately 2.91 Å
        N2 of Guanine to O2 of Cytosine: Approximately 2.89 Å
        O6 of Guanine to N4 of Cytosine: Approximately 2.93 Å

----
Sat  8 Mar 19:53:59 GMT 2025

   have a look at 3decision videos on YouTube.

   https://www.discngine.com/discngine-labs-live-in-cambridge

----
Wed 12 Mar 13:49:49 GMT 2025

put this somewhere perhaps

   auto debug_instancing_meshes = [] (const coot::instanced_mesh_t &im) {
      std::cout << "im has " << im.geom.size() << " geoms" << std::endl;
      for (unsigned int ig=0; ig<im.geom.size(); ig++) {
         unsigned int n_A = im.geom[ig].instancing_data_A.size();
         unsigned int n_B = im.geom[ig].instancing_data_B.size();
         std::cout << "   geom " << ig << " has " << im.geom[ig].vertices.size() << " vertices and "
                   << im.geom[ig].triangles.size() << " triangles "
                   << n_A << " type A instances and " << n_B << " type B instances" << std::endl;
      }
   };


---

Thu 13 Mar 2025 18:49:24 GMT

   new ligand search:

   pdbe ligands latest release

---
Sat 15 Mar 14:21:29 GMT 2025

   gdb flatpak coot

   $ flatpak run --command=sh --devel --filesystem=`pwd` io.github.pemsley.coot/x86_64/test
   $ gdb /app/libexec/coot-1 core.3


----
Wed 19 Mar 01:36:23 GMT 2025

from gtk4 demos:

/* So we can make a good guess whether the current theme is dark by checking for
 * either: it is suffixed `[:-]dark`, or Settings:…prefer-dark-theme is TRUE. */
static gboolean
theme_is_dark (void)
{
  const char *env_theme;
  GtkSettings *settings;
  char *theme;
  gboolean prefer_dark;
  gboolean dark;

  /* Like GtkSettings, 1st see if theme is overridden by environment variable */
  env_theme = g_getenv ("GTK_THEME");
  if (env_theme != NULL)
    return has_dark_suffix (env_theme);

  /* If not, test Settings:…theme-name in the same way OR :…prefer-dark-theme */
  settings = gtk_settings_get_default ();
  g_object_get (settings,
                "gtk-theme-name", &theme,
                "gtk-application-prefer-dark-theme", &prefer_dark,
                NULL);
  dark = prefer_dark || has_dark_suffix (theme);
  g_free (theme);
  return dark;
}

----
Sun 30 Mar 00:18:52 GMT 2025

Here is how to show a validation vbox:

   graphics_info_t g;

   GtkWidget *mwravp  = widget_from_builder("main_window_ramchandran_and_validation_pane");
   GtkWidget *mwgrvgp = widget_from_builder("main_window_graphics_rama_vs_graphics_pane");
   GtkWidget* vbox_vbox = widget_from_builder("validation_boxes_vbox");
   GtkWidget* vvf = widget_from_builder("main_window_vertical_validation_frame");
   gtk_widget_set_visible(vbox_vbox, TRUE);

   GtkWidget *vbox_outer  = widget_from_builder("interesting_places_outer_vbox");
   GtkWidget *vbox  = widget_from_builder("interesting_places_vbox");
   GtkWidget *label = widget_from_builder("interesting_places_label");

   int pos = gtk_paned_get_position(GTK_PANED(mwgrvgp));
   if (pos < 200)
      gtk_paned_set_position(GTK_PANED(mwgrvgp), 200);

   gtk_label_set_text(GTK_LABEL(label), title.c_str());
   gtk_widget_set_visible(mwravp,     TRUE);
   gtk_widget_set_visible(mwgrvgp,    TRUE);
   gtk_widget_set_visible(vvf,        TRUE);
   gtk_widget_set_visible(vbox_outer, TRUE);
   gtk_widget_set_visible(vbox,       TRUE);
   gtk_widget_set_visible(label,      TRUE);

----
Wed  2 Apr 04:32:06 BST 2025

   Here is how to add a stack trace:

Add to the Makefile.am:

if USE_BACKWARD
   BACKWARD_FLAGS=-DUSE_BACKWARD
endif

Add to the AM_CPPFLAGS:
	$(BACKWARD_FLAGS)


Add to the code:

#ifdef USE_BACKWARD
               backward::StackTrace st;
               backward::Printer p;
               st.load_here(32);
               p.print(st);
#endif

----

Magit:

C-x g
press [TAB] on the file to see the diffs
for each @@ that you want to add
Move the cursor to the @@ and press "s" to stage
Press c c to commit as usual.



----
Wed 23 Apr 2025 06:43:12 -03

       block of validation boxes and panes:

       GtkWidget *frame = widget_from_builder("main_window_validation_graph_frame");
       gtk_widget_set_visible(frame, TRUE);

       GtkWidget *validation_graph_vbx = widget_from_builder("main_window_validation_graph_vbox");
       gtk_widget_set_visible(validation_graph_vbx, TRUE);

       GtkWidget *pane_to_show  = widget_from_builder("main_window_ramchandran_and_validation_pane");
       gtk_widget_set_visible(pane_to_show,  TRUE);

       GtkWidget *pane = widget_from_builder("main_window_graphics_rama_vs_graphics_pane");
       int pos = gtk_paned_get_position(GTK_PANED(pane));
       if (pos < 300)
	  gtk_paned_set_position(GTK_PANED(pane), 380);

       GtkWidget *validation_boxes_vbox = widget_from_builder("validation_boxes_vbox");
       gtk_widget_set_visible(validation_boxes_vbox, TRUE);

       GtkWidget *outer_vbox = widget_from_builder("dialog-vbox78");
       gtk_widget_set_visible(outer_vbox,   TRUE);


----
Mon 12 May 2025 09:35:29 CEST

   proteopedia can use chapi?


----
Mon  2 Jun 17:35:22 BST 2025

How to set an adjustment of a scale (looked up from builder)

      GtkWidget *scale = widget_from_builder("tomo_scale");
      GtkAdjustment *adjustment = gtk_range_get_adjustment(GTK_RANGE(scale));
      if (adjustment) {
         g_object_set_data(G_OBJECT(adjustment), "imol", GINT_TO_POINTER(imol));
         std::string end_str = std::to_string(n_sections - 1);
         double dns_1 = static_cast<double>(n_sections-1);
         gtk_adjustment_set_lower(adjustment, 0);
         gtk_adjustment_set_upper(adjustment, n_sections-1);
         gtk_adjustment_set_step_increment(adjustment, 1.0);
         gtk_adjustment_set_page_increment(adjustment, 5.0);
         gtk_adjustment_set_page_size(adjustment, 0.0);
         gtk_adjustment_set_value(adjustment, mid_section);
         gtk_scale_set_draw_value(GTK_SCALE(scale), TRUE);
         gtk_scale_set_digits(GTK_SCALE(scale), 0);
         gtk_scale_add_mark(GTK_SCALE(scale), 0, GTK_POS_BOTTOM, "0");
         gtk_scale_add_mark(GTK_SCALE(scale), dns_1, GTK_POS_BOTTOM, end_str.c_str());
      }

---
Mon 16 Jun 18:42:05 BST 2025

2 rows in a R plot:

   par(mfrow=c(2,1))

---
Sat 28 Jun 2025 09:13:57 CDT

  getting a screenshot:

  https://stackoverflow.com/questions/78771600/how-to-take-screenshot-in-gtk4

---
Fri  4 Jul 16:35:20 BST 2025

  converting coot-download

   std::string download_dir = "coot-download";

   becomes

   xdg_t xdg;
   std::string download_dir = join(xdg.get_cache_home().string(), "coot-download");

---
Sat 19 Jul 2025 18:54:32 BST

To add c++ lsp to nvim with nvchad, edit ~/.config/nvim/lua/configs/lspconfig.lua

local servers = { "html", "cssls" }

to

local servers = { "html", "cssls", "clangd" }

and also (unrelated I think) in ~/.config/nvim/lua/plugins/init.lua

  {
    "nvim-treesitter/nvim-treesitter",
  	opts = {
  		ensure_installed = {
   			"vim", "lua", "vimdoc", "html", "css", "python", "cpp"
   		},
   	},
  },

i.e. I added "cpp"

treestitter does nice code markup.

tabs:
  to show a tab as equivalent spacing to 8 spaces:

  in ~/.config/nvim/lua/options.lua

    vim.opt.tabstop = 8

# to check the file type in nvim:

:set filetype?