@datagrok/bio 2.7.2 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,46 @@
1
+ # Bio changelog
2
+
3
+ ## 2.8.1 (2023-07-24)
4
+
5
+ This release focuses on improving the monomer cell renderer.
6
+
7
+ *Dependency: datgarok-api >= 1.13.3*
8
+
9
+ ### Features
10
+
11
+ * Monomer cell renderer now defaults to 6 characters per monomer.
12
+
13
+ ## 2.8.0 (2023-07-21)
14
+
15
+ This release focuses on improving feature stability and usability.
16
+
17
+ *Dependency: datgarok-api >= 1.13.3*
18
+
19
+ ### Features
20
+
21
+ * Add Copy group to Macromolecule cell context menu.
22
+ * Add DefaultSeparator package property settings.
23
+
24
+ ### Bug Fixes
25
+
26
+ * Fix VdRegionsViewer filter source checkbox tooltip, workaround.
27
+
28
+ ## 2.7.2 (2023-07-21)
29
+
30
+ This release focuses on improving analysis stability and usability.
31
+
32
+ *Dependency: datagarok-api >= 1.13.3*
33
+
34
+ ### Features
35
+
36
+ * Set default values in all dialogs where appropriate.
37
+ * Detected Helm monomer type for separator data and made it usable for MSA.
38
+ * Added alignment options to **Kalign**.
39
+ * Added separator support for **Sequence Space** and **Activity Cliffs**.
40
+ * Implemented showing monomer atomic structure in tooltips for macromolecules.
41
+ * For macromolecule cells, added the ability to show composition ratios in the property panel.
42
+ * We have structured the top menu by organizing the items into groups: SAR, Structure, Atomic level, and Search.
43
+
44
+ ### Bug Fixes
45
+
46
+ * GROK-13048: Activity cliffs identification for macromolecules.
package/detectors.js CHANGED
@@ -482,4 +482,34 @@ class BioPackageDetectors extends DG.Package {
482
482
 
483
483
  return wu(idxSet).map((idx) => col.get(idx));
484
484
  }
485
+
486
+ // -- autostart --
487
+
488
+ //name: autostart
489
+ //tags: autostart
490
+ //description: Bio bootstrap
491
+ autostart() {
492
+ this.logger.debug('Bio: detectors.js: autostart()');
493
+
494
+ this.autostartContextMenu();
495
+ }
496
+
497
+ autostartContextMenu() {
498
+ grok.events.onContextMenu.subscribe((event) => {
499
+ if (event.args.item && event.args.item instanceof DG.GridCell &&
500
+ event.args.item.tableColumn && event.args.item.tableColumn.semType === DG.SEMTYPE.MACROMOLECULE
501
+ ) {
502
+ const contextMenu = event.args.menu;
503
+ const cell = event.args.item.cell; // DG.Cell
504
+
505
+ grok.functions.call('Bio:addCopyMenu', {cell: cell, menu: contextMenu})
506
+ .catch((err) => {
507
+ grok.shell.error(err.toString());
508
+ });
509
+
510
+ event.preventDefault();
511
+ return true;
512
+ }
513
+ });
514
+ }
485
515
  }