@datagrok/bio 2.10.10 → 2.10.11
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 +2 -1
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +1 -1
- package/src/demo/bio01b-hierarchical-clustering-and-activity-cliffs.ts +2 -0
- package/src/viewers/vd-regions-viewer.ts +1 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "Leonid Stolbov",
|
|
6
6
|
"email": "lstolbov@datagrok.ai"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.10.
|
|
8
|
+
"version": "2.10.11",
|
|
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",
|
|
@@ -65,6 +65,7 @@ export async function demoBio01bUI() {
|
|
|
65
65
|
delay: 2000,
|
|
66
66
|
})
|
|
67
67
|
.step('Cluster sequences', async () => {
|
|
68
|
+
const progressBar = DG.TaskBarProgressIndicator.create(`Running sequence clustering...`);
|
|
68
69
|
const seqCol: DG.Column<string> = df.getCol('sequence');
|
|
69
70
|
const seqList = seqCol.toList();
|
|
70
71
|
const distance: DistanceMatrix = DistanceMatrix.calc(seqList, (aSeq: string, bSeq: string) => {
|
|
@@ -72,6 +73,7 @@ export async function demoBio01bUI() {
|
|
|
72
73
|
return levDistance / ((aSeq.length + bSeq.length) / 2);
|
|
73
74
|
});
|
|
74
75
|
const treeRoot = await treeHelper.hierarchicalClusteringByDistance(distance, 'ward');
|
|
76
|
+
progressBar.close();
|
|
75
77
|
dendrogramSvc.injectTreeForGrid(view.grid, treeRoot, undefined, 150, undefined);
|
|
76
78
|
|
|
77
79
|
// adjust for visual
|
|
@@ -192,7 +192,7 @@ export class VdRegionsViewer extends DG.JsViewer implements IVdRegionsViewer {
|
|
|
192
192
|
case PROPS.positionHeight:
|
|
193
193
|
for (let orderI = 0; orderI < this.logos.length; ++orderI) {
|
|
194
194
|
for (const chain of this.chains)
|
|
195
|
-
this.logos[orderI][chain].setOptions({[wlPROPS.
|
|
195
|
+
this.logos[orderI][chain].setOptions({[wlPROPS.positionHeight]: this.positionHeight});
|
|
196
196
|
}
|
|
197
197
|
this.calcSize();
|
|
198
198
|
break;
|