@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/dist/package-test.js +2 -2
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +2 -2
- package/dist/package.js.map +1 -1
- package/package.json +3 -3
- package/src/utils/monomer-cell-renderer.ts +8 -6
- package/test-console-output-1.log +363 -3214
- package/test-record-1.mp4 +0 -0
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.
|
|
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.
|
|
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.
|
|
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 ||
|
|
86
|
-
!
|
|
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 =
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
const
|
|
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))
|