@datagrok/bio 2.27.9 → 2.27.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 +5 -0
- 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/files/demo-files/SIRNA.layout +659 -841
- package/files/monomer-libraries/HELMCoreLibrary.json +2038 -221
- package/package.json +1 -1
- package/src/demo/feature_demos.ts +5 -0
- package/src/package.g.ts +1 -1
- package/src/package.ts +19 -1
- package/test-console-output-1.log +521 -496
- 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.27.
|
|
8
|
+
"version": "2.27.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",
|
|
@@ -95,9 +95,14 @@ export async function sirnaDemo() {
|
|
|
95
95
|
const df = await _package.files.readCsv('demo-files/SIRNA.csv');
|
|
96
96
|
const layoutTXT = await _package.files.readAsText('demo-files/SIRNA.layout');
|
|
97
97
|
const layout = DG.ViewLayout.fromJson(layoutTXT);
|
|
98
|
+
df.col('sense_seq')!.setTag('aligned', 'SEQ.MSA');
|
|
99
|
+
df.col('antisense_seq')!.setTag('aligned', 'SEQ.MSA');
|
|
98
100
|
const tv = grok.shell.addTableView(df);
|
|
99
101
|
await DG.delay(100);
|
|
100
102
|
tv.loadLayout(layout, true);
|
|
101
103
|
await df.meta.detectSemanticTypes();
|
|
102
104
|
grok.shell.info('Hover over the oligo structrues to see modifications to different sugars, linkers and residues.', {timeout: 10});
|
|
105
|
+
setTimeout(() => {
|
|
106
|
+
df.currentCell = df.cell(0, 'oligo_helm');
|
|
107
|
+
}, 300);
|
|
103
108
|
}
|
package/src/package.g.ts
CHANGED
|
@@ -746,7 +746,7 @@ export async function demoBioSequenceSpace() : Promise<void> {
|
|
|
746
746
|
}
|
|
747
747
|
|
|
748
748
|
//description: Activity Cliffs analysis on Macromolecules data
|
|
749
|
-
//meta.demoPath: Bioinformatics | Activity Cliffs
|
|
749
|
+
//meta.demoPath: Bioinformatics | Sequence Activity Cliffs
|
|
750
750
|
//meta.path: /apps/Tutorials/Demo/Bioinformatics/Activity%20Cliffs
|
|
751
751
|
export async function demoBioActivityCliffs() : Promise<void> {
|
|
752
752
|
await PackageFunctions.demoBioActivityCliffs();
|
package/src/package.ts
CHANGED
|
@@ -236,6 +236,15 @@ export class PackageFunctions {
|
|
|
236
236
|
|
|
237
237
|
@grok.decorators.editor({tags: ['editor']})
|
|
238
238
|
static SequenceSpaceEditor(call: DG.FuncCall) {
|
|
239
|
+
const df = grok.shell.tv?.dataFrame;
|
|
240
|
+
if (!df) {
|
|
241
|
+
grok.shell.error('Sequence Space requires an open table with a Macromolecule column');
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
if (df.columns.bySemType(DG.SEMTYPE.MACROMOLECULE) == null) {
|
|
245
|
+
grok.shell.error('Current table does not contain a Macromolecule column');
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
239
248
|
const funcEditor = new DimReductionBaseEditor({semtype: DG.SEMTYPE.MACROMOLECULE});
|
|
240
249
|
const dialog = ui.dialog({title: 'Sequence Space'})
|
|
241
250
|
.add(funcEditor.getEditor())
|
|
@@ -258,6 +267,15 @@ export class PackageFunctions {
|
|
|
258
267
|
|
|
259
268
|
@grok.decorators.editor({tags: ['editor']})
|
|
260
269
|
static SeqActivityCliffsEditor(call: DG.FuncCall) {
|
|
270
|
+
const df = grok.shell.tv?.dataFrame;
|
|
271
|
+
if (!df) {
|
|
272
|
+
grok.shell.error('Sequence Activity Cliffs requires an open table with a Macromolecule column');
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
if (df.columns.bySemType(DG.SEMTYPE.MACROMOLECULE) == null) {
|
|
276
|
+
grok.shell.error('Current table does not contain a Macromolecule column');
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
261
279
|
const funcEditor = new ActivityCliffsEditor({semtype: DG.SEMTYPE.MACROMOLECULE});
|
|
262
280
|
const dialog = ui.dialog({title: 'Activity Cliffs'})
|
|
263
281
|
.add(funcEditor.getEditor())
|
|
@@ -1539,7 +1557,7 @@ export class PackageFunctions {
|
|
|
1539
1557
|
|
|
1540
1558
|
@grok.decorators.demo({
|
|
1541
1559
|
description: 'Activity Cliffs analysis on Macromolecules data',
|
|
1542
|
-
demoPath: 'Bioinformatics | Activity Cliffs',
|
|
1560
|
+
demoPath: 'Bioinformatics | Sequence Activity Cliffs',
|
|
1543
1561
|
path: '/apps/Tutorials/Demo/Bioinformatics/Activity%20Cliffs',
|
|
1544
1562
|
})
|
|
1545
1563
|
static async demoBioActivityCliffs(): Promise<void> {
|