@datagrok/bio 2.25.2 → 2.25.3

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "Davit Rizhinashvili",
6
6
  "email": "drizhinashvili@datagrok.ai"
7
7
  },
8
- "version": "2.25.2",
8
+ "version": "2.25.3",
9
9
  "description": "Bioinformatics support (import/export of sequences, conversion, visualization, analysis). [See more](https://github.com/datagrok-ai/public/blob/master/packages/Bio/README.md) for details.",
10
10
  "repository": {
11
11
  "type": "git",
@@ -44,10 +44,10 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@biowasm/aioli": "^3.1.0",
47
- "@datagrok-libraries/bio": "^5.61.2",
47
+ "@datagrok-libraries/bio": "^5.61.3",
48
48
  "@datagrok-libraries/chem-meta": "^1.2.9",
49
49
  "@datagrok-libraries/math": "^1.2.6",
50
- "@datagrok-libraries/ml": "^6.10.6",
50
+ "@datagrok-libraries/ml": "^6.10.7",
51
51
  "@datagrok-libraries/tutorials": "^1.7.4",
52
52
  "@datagrok-libraries/utils": "^4.6.9",
53
53
  "@webgpu/types": "^0.1.40",
@@ -81,12 +81,13 @@ export class MonomerCellRendererBack extends CellRendererWithMonomerLibBackBase
81
81
  }
82
82
 
83
83
  override onMouseMove(gridCell: GridCell, e: MouseEvent) {
84
+ const [gridCol, tableCol, temp] = getGridCellColTemp(gridCell);
84
85
  if (
85
- gridCell.grid.dart != this.gridCol?.grid.dart || gridCell.gridColumn.dart != this.gridCol?.dart ||
86
- !gridCell.tableColumn || !gridCell.isTableCell
86
+ gridCell.grid.dart != this.gridCol?.grid.dart || gridCol?.dart != this.gridCol?.dart ||
87
+ !tableCol || !gridCell.isTableCell
87
88
  ) return false;
88
89
 
89
- const alphabet = gridCell.tableColumn.getTag(bioTAGS.alphabet) as ALPHABET;
90
+ const alphabet = tableCol.getTag(bioTAGS.alphabet) as ALPHABET;
90
91
  const monomerName: string = gridCell.cell.value;
91
92
  const canvasClientRect = gridCell.grid.canvas.getBoundingClientRect();
92
93
  const x1 = gridCell.bounds.right + canvasClientRect.left - 4;
@@ -127,9 +128,10 @@ export class MonomerCellRendererBack extends CellRendererWithMonomerLibBackBase
127
128
 
128
129
  private getHelmType(gridCell: GridCell, defaultType: HelmType): HelmType {
129
130
  let biotype = defaultType;
130
- if ((gridCell.tableRowIndex ?? -1) > -1 && gridCell.tableColumn?.getTag(BioTags.polymerTypeColumnName)) {
131
- const ptColName = gridCell.tableColumn.getTag(BioTags.polymerTypeColumnName);
132
- const ptCol = gridCell.tableColumn.dataFrame?.col(ptColName);
131
+ const [gridCol, tableCol, temp] = getGridCellColTemp(gridCell);
132
+ if ((gridCell.tableRowIndex ?? -1) > -1 && tableCol?.getTag(BioTags.polymerTypeColumnName)) {
133
+ const ptColName = tableCol.getTag(BioTags.polymerTypeColumnName);
134
+ const ptCol = tableCol.dataFrame?.col(ptColName);
133
135
  if (ptCol) {
134
136
  const ptrString = ptCol.get(gridCell.tableRowIndex!);
135
137
  if (ptrString && [PolymerTypes.BLOB, PolymerTypes.CHEM, PolymerTypes.G, PolymerTypes.PEPTIDE, PolymerTypes.RNA].includes(ptrString))