@datagrok/bio 2.25.9 → 2.25.10
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/CLAUDE.md +380 -0
- package/detectors.js +9 -1
- package/dist/111.js +1 -1
- package/dist/111.js.map +1 -1
- package/dist/234.js +1 -1
- package/dist/234.js.map +1 -1
- package/dist/242.js +1 -1
- package/dist/242.js.map +1 -1
- package/dist/284.js +1 -1
- package/dist/284.js.map +1 -1
- package/dist/455.js +1 -1
- package/dist/455.js.map +1 -1
- package/dist/589.js +1 -1
- package/dist/589.js.map +1 -1
- package/dist/603.js +1 -1
- package/dist/603.js.map +1 -1
- package/dist/682.js +1 -1
- package/dist/682.js.map +1 -1
- package/dist/705.js +1 -1
- package/dist/705.js.map +1 -1
- package/dist/731.js +1 -1
- package/dist/731.js.map +1 -1
- package/dist/778.js +1 -1
- package/dist/778.js.map +1 -1
- package/dist/793.js +1 -1
- package/dist/793.js.map +1 -1
- package/dist/810.js +1 -1
- package/dist/810.js.map +1 -1
- package/dist/950.js +1 -1
- package/dist/950.js.map +1 -1
- package/dist/980.js +1 -1
- package/dist/980.js.map +1 -1
- package/dist/package-test.js +5 -5
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +3 -3
- package/dist/package.js.map +1 -1
- package/package.json +11 -4
- package/scripts/read-tree-pkl.py +1 -1
- package/src/demo/bio03-atomic-level.ts +1 -1
- package/src/package-test.ts +4 -2
- package/src/package.g.ts +49 -13
- package/src/package.ts +63 -36
- package/src/substructure-search/substructure-search.ts +1 -1
- package/src/tests/Palettes-test.ts +1 -1
- package/src/tests/WebLogo-layout-tests.ts +1 -1
- package/src/tests/WebLogo-positions-test.ts +1 -1
- package/src/tests/WebLogo-project-tests.ts +1 -1
- package/src/tests/_first-tests.ts +1 -1
- package/src/tests/activity-cliffs-tests.ts +1 -1
- package/src/tests/activity-cliffs-utils.ts +1 -1
- package/src/tests/biln-tests.ts +1 -1
- package/src/tests/bio-tests.ts +1 -1
- package/src/tests/checkInputColumn-tests.ts +1 -1
- package/src/tests/converters-test.ts +1 -1
- package/src/tests/detectors-benchmark-tests.ts +1 -1
- package/src/tests/detectors-tests.ts +1 -1
- package/src/tests/detectors-weak-and-likely-tests.ts +1 -1
- package/src/tests/fasta-export-tests.ts +1 -1
- package/src/tests/fasta-handler-test.ts +1 -1
- package/src/tests/helm-tests.ts +1 -1
- package/src/tests/lib-tests.ts +1 -1
- package/src/tests/mm-distance-tests.ts +1 -1
- package/src/tests/monomer-libraries-tests.ts +1 -1
- package/src/tests/msa-tests.ts +1 -1
- package/src/tests/pepsea-tests.ts +1 -1
- package/src/tests/renderers-monomer-placer-tests.ts +1 -1
- package/src/tests/renderers-test.ts +1 -1
- package/src/tests/scoring.ts +1 -1
- package/src/tests/seq-handler-get-helm-tests.ts +1 -1
- package/src/tests/seq-handler-get-region-tests.ts +1 -1
- package/src/tests/seq-handler-splitted-tests.ts +1 -1
- package/src/tests/seq-handler-tests.ts +1 -1
- package/src/tests/sequence-space-test.ts +1 -1
- package/src/tests/sequence-space-utils.ts +1 -1
- package/src/tests/similarity-diversity-tests.ts +1 -1
- package/src/tests/splitters-test.ts +1 -1
- package/src/tests/substructure-filters-tests.ts +1 -1
- package/src/tests/to-atomic-level-tests.ts +1 -1
- package/src/tests/to-atomic-level-ui-tests.ts +1 -1
- package/src/tests/utils/detectors-utils.ts +1 -1
- package/src/tests/utils/sequences-generators.ts +1 -1
- package/src/tests/utils.ts +1 -1
- package/src/tests/viewers.ts +1 -1
- package/src/utils/detect-macromolecule-probe.ts +1 -1
- package/src/utils/monomer-lib/lib-manager.ts +2 -2
- package/src/utils/monomer-lib/monomer-lib-base.ts +7 -3
- package/src/utils/multiple-sequence-alignment-ui.ts +1 -1
- package/src/utils/seq-helper/seq-handler.ts +22 -10
- package/src/utils/split-to-monomers.ts +1 -1
- package/src/viewers/vd-regions-viewer.ts +1 -1
- package/src/viewers/web-logo-viewer.ts +1 -1
- package/src/widgets/bio-substructure-filter-helm.ts +1 -1
- package/src/widgets/bio-substructure-filter.ts +1 -1
- package/src/widgets/to-atomic-level-widget.ts +1 -7
- package/test-console-output-1.log +1279 -3049
- package/test-record-1.mp4 +0 -0
package/src/package.ts
CHANGED
|
@@ -123,7 +123,7 @@ export class PackageFunctions {
|
|
|
123
123
|
return await MonomerLibManager.getInstance();
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
@grok.decorators.init({})
|
|
126
|
+
@grok.decorators.init({tags: ['init']})
|
|
127
127
|
static async initBio(): Promise<void> {
|
|
128
128
|
if (initBioPromise == null)
|
|
129
129
|
initBioPromise = initBioInt();
|
|
@@ -131,7 +131,10 @@ export class PackageFunctions {
|
|
|
131
131
|
await initBioPromise;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
@grok.decorators.func({
|
|
134
|
+
@grok.decorators.func({
|
|
135
|
+
meta: {role: 'tooltip'},
|
|
136
|
+
tags: ['tooltip']
|
|
137
|
+
})
|
|
135
138
|
static sequenceTooltip(
|
|
136
139
|
@grok.decorators.param({options: {semType: 'Macromolecule'}}) col: DG.Column): DG.Widget<any> {
|
|
137
140
|
const resWidget = new MacromoleculeColumnWidget(col, _package.seqHelper);
|
|
@@ -170,7 +173,7 @@ export class PackageFunctions {
|
|
|
170
173
|
|
|
171
174
|
// -- Panels --
|
|
172
175
|
|
|
173
|
-
@grok.decorators.panel({name: 'Bioinformatics | Get Region', description: 'Creates a new column with sequences of the region between start and end'})
|
|
176
|
+
@grok.decorators.panel({name: 'Bioinformatics | Get Region', description: 'Creates a new column with sequences of the region between start and end', tags: ['panel']})
|
|
174
177
|
static getRegionPanel(
|
|
175
178
|
@grok.decorators.param({type: 'column', options: {semType: 'Macromolecule'}}) seqCol: DG.Column<string>): DG.Widget {
|
|
176
179
|
const funcName: string = 'getRegionTopMenu';
|
|
@@ -182,7 +185,11 @@ export class PackageFunctions {
|
|
|
182
185
|
return funcEditor.widget();
|
|
183
186
|
}
|
|
184
187
|
|
|
185
|
-
@grok.decorators.panel({
|
|
188
|
+
@grok.decorators.panel({
|
|
189
|
+
name: 'Bioinformatics | Manage Monomer Libraries',
|
|
190
|
+
meta: {'exclude-actions-panel': 'true'},
|
|
191
|
+
tags: ['exclude-actions-panel']
|
|
192
|
+
})
|
|
186
193
|
static async libraryPanel(
|
|
187
194
|
@grok.decorators.param({name: 'seqColumn', options: {semType: 'Macromolecule'}}) _seqColumn: DG.Column): Promise<DG.Widget> {
|
|
188
195
|
// return getLibraryPanelUI();
|
|
@@ -191,7 +198,7 @@ export class PackageFunctions {
|
|
|
191
198
|
|
|
192
199
|
// -- Func Editors --
|
|
193
200
|
|
|
194
|
-
@grok.decorators.editor({})
|
|
201
|
+
@grok.decorators.editor({tags: ['editor']})
|
|
195
202
|
static GetRegionEditor(call: DG.FuncCall): void {
|
|
196
203
|
try {
|
|
197
204
|
const funcEditor = new GetRegionFuncEditor(call, _package.seqHelper);
|
|
@@ -204,7 +211,7 @@ export class PackageFunctions {
|
|
|
204
211
|
}
|
|
205
212
|
}
|
|
206
213
|
|
|
207
|
-
@grok.decorators.editor({})
|
|
214
|
+
@grok.decorators.editor({tags: ['editor']})
|
|
208
215
|
static SplitToMonomersEditor(call: DG.FuncCall): void {
|
|
209
216
|
const funcEditor = new SplitToMonomersFunctionEditor();
|
|
210
217
|
ui.dialog({title: 'Split to Monomers'})
|
|
@@ -215,7 +222,7 @@ export class PackageFunctions {
|
|
|
215
222
|
.show();
|
|
216
223
|
}
|
|
217
224
|
|
|
218
|
-
@grok.decorators.editor({})
|
|
225
|
+
@grok.decorators.editor({tags: ['editor']})
|
|
219
226
|
static SequenceSpaceEditor(call: DG.FuncCall) {
|
|
220
227
|
const funcEditor = new DimReductionBaseEditor({semtype: DG.SEMTYPE.MACROMOLECULE});
|
|
221
228
|
const dialog = ui.dialog({title: 'Sequence Space'})
|
|
@@ -237,7 +244,7 @@ export class PackageFunctions {
|
|
|
237
244
|
dialog.show();
|
|
238
245
|
}
|
|
239
246
|
|
|
240
|
-
@grok.decorators.editor({})
|
|
247
|
+
@grok.decorators.editor({tags: ['editor']})
|
|
241
248
|
static SeqActivityCliffsEditor(call: DG.FuncCall) {
|
|
242
249
|
const funcEditor = new ActivityCliffsEditor({semtype: DG.SEMTYPE.MACROMOLECULE});
|
|
243
250
|
const dialog = ui.dialog({title: 'Activity Cliffs'})
|
|
@@ -267,7 +274,8 @@ export class PackageFunctions {
|
|
|
267
274
|
tags: ['cellRenderer'],
|
|
268
275
|
meta: {
|
|
269
276
|
cellType: 'sequence',
|
|
270
|
-
columnTags: 'quality=Macromolecule, units=custom'
|
|
277
|
+
columnTags: 'quality=Macromolecule, units=custom',
|
|
278
|
+
role: 'cellRenderer'
|
|
271
279
|
},
|
|
272
280
|
outputs: [{type: 'grid_cell_renderer', name: 'result'}]
|
|
273
281
|
})
|
|
@@ -280,7 +288,8 @@ export class PackageFunctions {
|
|
|
280
288
|
tags: ['cellRenderer'],
|
|
281
289
|
meta: {
|
|
282
290
|
cellType: 'sequence',
|
|
283
|
-
columnTags: 'quality=Macromolecule, units=fasta'
|
|
291
|
+
columnTags: 'quality=Macromolecule, units=fasta',
|
|
292
|
+
role: 'cellRenderer'
|
|
284
293
|
},
|
|
285
294
|
outputs: [{type: 'grid_cell_renderer', name: 'result'}]
|
|
286
295
|
})
|
|
@@ -293,7 +302,8 @@ export class PackageFunctions {
|
|
|
293
302
|
tags: ['cellRenderer'],
|
|
294
303
|
meta: {
|
|
295
304
|
cellType: 'sequence',
|
|
296
|
-
columnTags: 'quality=Macromolecule, units=separator'
|
|
305
|
+
columnTags: 'quality=Macromolecule, units=separator',
|
|
306
|
+
role: 'cellRenderer'
|
|
297
307
|
},
|
|
298
308
|
outputs: [{type: 'grid_cell_renderer', name: 'result'}]
|
|
299
309
|
})
|
|
@@ -306,7 +316,8 @@ export class PackageFunctions {
|
|
|
306
316
|
tags: ['cellRenderer'],
|
|
307
317
|
meta: {
|
|
308
318
|
cellType: 'sequence',
|
|
309
|
-
columnTags: 'quality=Macromolecule, units=biln'
|
|
319
|
+
columnTags: 'quality=Macromolecule, units=biln',
|
|
320
|
+
role: 'cellRenderer'
|
|
310
321
|
},
|
|
311
322
|
outputs: [{type: 'grid_cell_renderer', name: 'result'}]
|
|
312
323
|
})
|
|
@@ -316,8 +327,9 @@ export class PackageFunctions {
|
|
|
316
327
|
|
|
317
328
|
@grok.decorators.func({
|
|
318
329
|
name: 'refineNotationProviderForBiln',
|
|
330
|
+
outputs: [{type: 'bool', name: 'result'}],
|
|
319
331
|
tags: ['notationRefiner'],
|
|
320
|
-
|
|
332
|
+
meta: {role: 'notationRefiner'},
|
|
321
333
|
})
|
|
322
334
|
static refineNotationProviderForBiln(
|
|
323
335
|
@grok.decorators.param({type: 'column'}) col: DG.Column<string>,
|
|
@@ -329,9 +341,15 @@ export class PackageFunctions {
|
|
|
329
341
|
const reCons = Object.keys(stats.freq).some((om) => om.match(/^.+\(\d{1,2},\d{1,2}\)$/));
|
|
330
342
|
if (!reCons) {
|
|
331
343
|
// biln might also encode monomers with hyphens in names encoded by []
|
|
344
|
+
// but in freqs, we reseive split sequence with without this knowledge, so might get smth like '[OM1', 'END2]' etc
|
|
332
345
|
// here we know that there are no monomers with connections like (1,2) in names, so we can check for []
|
|
333
|
-
|
|
334
|
-
|
|
346
|
+
|
|
347
|
+
const startBrackets = Object.keys(stats.freq).filter((om) => om.startsWith('['));
|
|
348
|
+
const endBrackets = Object.keys(stats.freq).filter((om) => om.endsWith(']'));
|
|
349
|
+
const midBrackets = Object.keys(stats.freq).filter((om) => (om.includes('[') || om.includes(']')) && !om.startsWith('[') && !om.endsWith(']'));
|
|
350
|
+
if (midBrackets.length > 0 || startBrackets.length == 0 || endBrackets.length == 0)
|
|
351
|
+
return false;
|
|
352
|
+
if (Object.keys(stats.freq).some((om) => om.startsWith('*') || om.startsWith('$') || om.startsWith('@') || om.startsWith('%')))
|
|
335
353
|
return false;
|
|
336
354
|
}
|
|
337
355
|
// refine the notation provider
|
|
@@ -346,13 +364,16 @@ export class PackageFunctions {
|
|
|
346
364
|
|
|
347
365
|
// // -- Property panels --
|
|
348
366
|
|
|
349
|
-
@grok.decorators.panel({name: 'Bioinformatics | Sequence Renderer'})
|
|
367
|
+
@grok.decorators.panel({name: 'Bioinformatics | Sequence Renderer', tags: ['panel']})
|
|
350
368
|
static macroMolColumnPropertyPanel(
|
|
351
369
|
@grok.decorators.param({options: {semType: 'Macromolecule'}}) molColumn: DG.Column): DG.Widget {
|
|
352
370
|
return getMacromoleculeColumnPropertyPanel(molColumn);
|
|
353
371
|
}
|
|
354
372
|
|
|
355
|
-
@grok.decorators.panel({name: 'Composition analysis',
|
|
373
|
+
@grok.decorators.panel({name: 'Composition analysis',
|
|
374
|
+
tags: ['bio', 'widgets', 'panel'],
|
|
375
|
+
meta: {role: 'widgets', domain: 'bio'},
|
|
376
|
+
})
|
|
356
377
|
static compositionAnalysisWidget(
|
|
357
378
|
@grok.decorators.param({options: {semType: 'Macromolecule'}}) sequence: DG.SemanticValue): DG.Widget {
|
|
358
379
|
return getCompositionAnalysisWidget(sequence, _package.monomerLib, _package.seqHelper);
|
|
@@ -363,7 +384,8 @@ export class PackageFunctions {
|
|
|
363
384
|
tags: ['cellRenderer'],
|
|
364
385
|
meta: {
|
|
365
386
|
cellType: 'MacromoleculeDifference',
|
|
366
|
-
columnTags: 'quality=MacromoleculeDifference'
|
|
387
|
+
columnTags: 'quality=MacromoleculeDifference',
|
|
388
|
+
role: 'cellRenderer'
|
|
367
389
|
},
|
|
368
390
|
outputs: [{type: 'grid_cell_renderer', name: 'result'}]
|
|
369
391
|
})
|
|
@@ -388,8 +410,8 @@ export class PackageFunctions {
|
|
|
388
410
|
@grok.decorators.panel({
|
|
389
411
|
name: 'WebLogo',
|
|
390
412
|
description: 'WebLogo',
|
|
391
|
-
tags: ['viewer'],
|
|
392
|
-
meta: {icon: 'files/icons/weblogo-viewer.svg'},
|
|
413
|
+
tags: ['viewer', 'panel'],
|
|
414
|
+
meta: {icon: 'files/icons/weblogo-viewer.svg', role: 'viewer'},
|
|
393
415
|
outputs: [{type: 'viewer', name: 'result'}]
|
|
394
416
|
})
|
|
395
417
|
static webLogoViewer() {
|
|
@@ -400,7 +422,7 @@ export class PackageFunctions {
|
|
|
400
422
|
name: 'VdRegions',
|
|
401
423
|
description: 'V-Domain regions viewer',
|
|
402
424
|
tags: ['viewer'],
|
|
403
|
-
meta: {icon: 'files/icons/vdregions-viewer.svg'},
|
|
425
|
+
meta: {icon: 'files/icons/vdregions-viewer.svg', role: 'viewer'},
|
|
404
426
|
outputs: [{type: 'viewer', name: 'result'}],
|
|
405
427
|
})
|
|
406
428
|
static vdRegionsViewer() {
|
|
@@ -531,7 +553,8 @@ export class PackageFunctions {
|
|
|
531
553
|
meta: {
|
|
532
554
|
supportedSemTypes: 'Macromolecule',
|
|
533
555
|
supportedTypes: 'string',
|
|
534
|
-
supportedDistanceFunctions: 'Hamming,Levenshtein,Monomer chemical distance,Needlemann-Wunsch'
|
|
556
|
+
supportedDistanceFunctions: 'Hamming,Levenshtein,Monomer chemical distance,Needlemann-Wunsch',
|
|
557
|
+
role: 'dim-red-preprocessing-function'
|
|
535
558
|
},
|
|
536
559
|
outputs: [{type: 'object', name: 'result'}],
|
|
537
560
|
})
|
|
@@ -695,7 +718,8 @@ export class PackageFunctions {
|
|
|
695
718
|
|
|
696
719
|
@grok.decorators.panel({
|
|
697
720
|
name: 'Molecular Structure',
|
|
698
|
-
tags: ['bio', 'widgets']
|
|
721
|
+
tags: ['bio', 'widgets', 'panel'],
|
|
722
|
+
meta: {role: 'widgets', domain: 'bio'},
|
|
699
723
|
})
|
|
700
724
|
static async toAtomicLevelPanel(
|
|
701
725
|
@grok.decorators.param({name: 'sequence', type: 'semantic_value', options: {semType: 'Macromolecule'}})
|
|
@@ -748,7 +772,8 @@ export class PackageFunctions {
|
|
|
748
772
|
|
|
749
773
|
@grok.decorators.panel({
|
|
750
774
|
name: 'Molecular 3D Structure',
|
|
751
|
-
tags: ['bio', 'widgets']
|
|
775
|
+
tags: ['bio', 'widgets', 'panel'],
|
|
776
|
+
meta: {role: 'widgets', domain: 'bio'},
|
|
752
777
|
})
|
|
753
778
|
static async sequence3dStructureWidget(
|
|
754
779
|
@grok.decorators.param({
|
|
@@ -763,7 +788,8 @@ export class PackageFunctions {
|
|
|
763
788
|
@grok.decorators.panel({
|
|
764
789
|
name: 'MSA',
|
|
765
790
|
description: 'Performs multiple sequence alignment',
|
|
766
|
-
tags: ['bio'],
|
|
791
|
+
tags: ['bio', 'panel'],
|
|
792
|
+
meta: {domain: 'bio'},
|
|
767
793
|
'top-menu': 'Bio | Analyze | MSA...'
|
|
768
794
|
})
|
|
769
795
|
static multipleSequenceAlignmentDialog(): void {
|
|
@@ -784,7 +810,7 @@ export class PackageFunctions {
|
|
|
784
810
|
@grok.decorators.func({
|
|
785
811
|
name: 'Multiple Sequence Alignment',
|
|
786
812
|
description: 'Multiple sequence alignment',
|
|
787
|
-
|
|
813
|
+
meta: {domain: 'bio'}
|
|
788
814
|
})
|
|
789
815
|
static async alignSequences(
|
|
790
816
|
@grok.decorators.param({type: 'column', options: {semType: 'Macromolecule'}}) sequenceCol: DG.Column<string> | null = null,
|
|
@@ -862,6 +888,7 @@ export class PackageFunctions {
|
|
|
862
888
|
|
|
863
889
|
@grok.decorators.fileHandler({
|
|
864
890
|
name: 'importFasta',
|
|
891
|
+
tags: ['fileHandler'],
|
|
865
892
|
description: 'Opens FASTA file',
|
|
866
893
|
ext: 'fasta, fna, ffn, faa, frn, fa, fst',
|
|
867
894
|
})
|
|
@@ -874,6 +901,7 @@ export class PackageFunctions {
|
|
|
874
901
|
|
|
875
902
|
@grok.decorators.fileHandler({
|
|
876
903
|
name: 'importBam',
|
|
904
|
+
tags: ['fileHandler'],
|
|
877
905
|
description: 'Opens Bam file',
|
|
878
906
|
ext: 'bam, bai',
|
|
879
907
|
})
|
|
@@ -911,7 +939,8 @@ export class PackageFunctions {
|
|
|
911
939
|
tags: ['cellRenderer'],
|
|
912
940
|
meta: {
|
|
913
941
|
cellType: 'Monomer',
|
|
914
|
-
columnTags: 'quality=Monomer'
|
|
942
|
+
columnTags: 'quality=Monomer',
|
|
943
|
+
role: 'cellRenderer'
|
|
915
944
|
},
|
|
916
945
|
outputs: [{type: 'grid_cell_renderer', name: 'result'}]
|
|
917
946
|
})
|
|
@@ -1003,10 +1032,8 @@ export class PackageFunctions {
|
|
|
1003
1032
|
|
|
1004
1033
|
@grok.decorators.func({
|
|
1005
1034
|
name: 'Sequence Similarity Search',
|
|
1035
|
+
meta: {icon: 'files/icons/sequence-similarity-viewer.svg', role: 'viewer'},
|
|
1006
1036
|
tags: ['viewer'],
|
|
1007
|
-
meta: {
|
|
1008
|
-
icon: 'files/icons/sequence-similarity-viewer.svg'
|
|
1009
|
-
},
|
|
1010
1037
|
outputs: [{name: 'result', type: 'viewer'}]
|
|
1011
1038
|
})
|
|
1012
1039
|
static similaritySearchViewer(): SequenceSimilarityViewer {
|
|
@@ -1028,9 +1055,7 @@ export class PackageFunctions {
|
|
|
1028
1055
|
@grok.decorators.func({
|
|
1029
1056
|
name: 'Sequence Diversity Search',
|
|
1030
1057
|
tags: ['viewer'],
|
|
1031
|
-
meta: {
|
|
1032
|
-
icon: 'files/icons/sequence-diversity-viewer.svg'
|
|
1033
|
-
},
|
|
1058
|
+
meta: {icon: 'files/icons/sequence-diversity-viewer.svg', role: 'viewer'},
|
|
1034
1059
|
outputs: [{name: 'result', type: 'viewer'}]
|
|
1035
1060
|
})
|
|
1036
1061
|
static diversitySearchViewer(): SequenceDiversityViewer {
|
|
@@ -1050,7 +1075,8 @@ export class PackageFunctions {
|
|
|
1050
1075
|
}
|
|
1051
1076
|
|
|
1052
1077
|
@grok.decorators.editor({
|
|
1053
|
-
name: 'SearchSubsequenceEditor'
|
|
1078
|
+
name: 'SearchSubsequenceEditor',
|
|
1079
|
+
tags: ['editor'],
|
|
1054
1080
|
})
|
|
1055
1081
|
static searchSubsequenceEditor(call: DG.FuncCall) {
|
|
1056
1082
|
const columns = getMacromoleculeColumns();
|
|
@@ -1131,6 +1157,7 @@ export class PackageFunctions {
|
|
|
1131
1157
|
}
|
|
1132
1158
|
|
|
1133
1159
|
@grok.decorators.app({
|
|
1160
|
+
tags: ['app'],
|
|
1134
1161
|
name: 'Manage Monomer Libraries',
|
|
1135
1162
|
browsePath: 'Peptides',
|
|
1136
1163
|
icon: 'files/icons/monomers.png',
|
|
@@ -1144,7 +1171,7 @@ export class PackageFunctions {
|
|
|
1144
1171
|
// return
|
|
1145
1172
|
// }
|
|
1146
1173
|
|
|
1147
|
-
@grok.decorators.func({name: 'Monomer Manager Tree Browser', meta: {role: 'appTreeBrowser'}})
|
|
1174
|
+
@grok.decorators.func({name: 'Monomer Manager Tree Browser', meta: {role: 'appTreeBrowser', app: 'Manage Monomer Libraries'}})
|
|
1148
1175
|
static async manageMonomerLibrariesViewTreeBrowser(treeNode: DG.TreeViewGroup) {
|
|
1149
1176
|
const libraries = (await (await MonomerLibManager.getInstance()).getAvaliableLibraryNames());
|
|
1150
1177
|
libraries.forEach((libName) => {
|
|
@@ -1168,7 +1195,7 @@ export class PackageFunctions {
|
|
|
1168
1195
|
name: 'Bio Substructure Filter',
|
|
1169
1196
|
description: 'Substructure filter for macromolecules',
|
|
1170
1197
|
tags: ['filter'],
|
|
1171
|
-
meta: {semType: 'Macromolecule'},
|
|
1198
|
+
meta: {semType: 'Macromolecule', role: 'filter'},
|
|
1172
1199
|
outputs: [{type: 'filter', name: 'result'}],
|
|
1173
1200
|
})
|
|
1174
1201
|
static bioSubstructureFilter(): BioSubstructureFilter {
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {delay} from '@datagrok-libraries/
|
|
5
|
+
import {delay} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {TAGS as bioTAGS, NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
7
7
|
import {ISeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {category, test, expect} from '@datagrok-libraries/
|
|
5
|
+
import {category, test, expect} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
|
|
7
7
|
import {_testPaletteN, _testPaletteAA} from '@datagrok-libraries/bio/src/tests/palettes-tests';
|
|
8
8
|
import {AminoacidsPalettes} from '@datagrok-libraries/bio/src/aminoacids';
|
|
@@ -4,7 +4,7 @@ import * as ui from 'datagrok-api/ui';
|
|
|
4
4
|
|
|
5
5
|
import wu from 'wu';
|
|
6
6
|
|
|
7
|
-
import {category, delay, expect, test} from '@datagrok-libraries/
|
|
7
|
+
import {category, delay, expect, test} from '@datagrok-libraries/test/src/test';
|
|
8
8
|
|
|
9
9
|
import {awaitGrid} from './utils';
|
|
10
10
|
import {Debounces, WebLogoViewer} from '../viewers/web-logo-viewer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as grok from 'datagrok-api/grok';
|
|
2
2
|
import * as DG from 'datagrok-api/dg';
|
|
3
3
|
|
|
4
|
-
import {before, category, expect, expectArray, test, testEvent} from '@datagrok-libraries/
|
|
4
|
+
import {before, category, expect, expectArray, test, testEvent} from '@datagrok-libraries/test/src/test';
|
|
5
5
|
import {ALPHABET, NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
6
6
|
import {getSeqHelper, ISeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
7
7
|
import {GAP_SYMBOL} from '@datagrok-libraries/bio/src/utils/macromolecule/consts';
|
|
@@ -4,7 +4,7 @@ import * as ui from 'datagrok-api/ui';
|
|
|
4
4
|
|
|
5
5
|
import wu from 'wu';
|
|
6
6
|
|
|
7
|
-
import {category, delay, expect, test, testViewer} from '@datagrok-libraries/
|
|
7
|
+
import {category, delay, expect, test, testViewer} from '@datagrok-libraries/test/src/test';
|
|
8
8
|
|
|
9
9
|
import {awaitGrid} from './utils';
|
|
10
10
|
import {WebLogoViewer} from '../viewers/web-logo-viewer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as DG from 'datagrok-api/dg';
|
|
2
2
|
|
|
3
|
-
import {category, test} from '@datagrok-libraries/
|
|
3
|
+
import {category, test} from '@datagrok-libraries/test/src/test';
|
|
4
4
|
|
|
5
5
|
category('_first', () => {
|
|
6
6
|
/** The first test of the package to evaluate problems with imports. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as grok from 'datagrok-api/grok';
|
|
2
2
|
import * as DG from 'datagrok-api/dg';
|
|
3
3
|
|
|
4
|
-
import {after, before, category, test} from '@datagrok-libraries/
|
|
4
|
+
import {after, before, category, test} from '@datagrok-libraries/test/src/test';
|
|
5
5
|
|
|
6
6
|
import {readDataframe} from './utils';
|
|
7
7
|
import {_testActivityCliffsOpen} from './activity-cliffs-utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as DG from 'datagrok-api/dg';
|
|
2
2
|
import * as grok from 'datagrok-api/grok';
|
|
3
3
|
|
|
4
|
-
import {awaitCheck, expect} from '@datagrok-libraries/
|
|
4
|
+
import {awaitCheck, expect} from '@datagrok-libraries/test/src/test';
|
|
5
5
|
import {MmDistanceFunctionsNames} from '@datagrok-libraries/ml/src/macromolecule-distance-functions';
|
|
6
6
|
import {BitArrayMetrics} from '@datagrok-libraries/ml/src/typed-metrics';
|
|
7
7
|
import {BYPASS_LARGE_DATA_WARNING} from '@datagrok-libraries/ml/src/functionEditors/consts';
|
package/src/tests/biln-tests.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
5
5
|
import * as ui from 'datagrok-api/ui';
|
|
6
6
|
import * as DG from 'datagrok-api/dg';
|
|
7
7
|
|
|
8
|
-
import {category, test, expect, before} from '@datagrok-libraries/
|
|
8
|
+
import {category, test, expect, before} from '@datagrok-libraries/test/src/test';
|
|
9
9
|
|
|
10
10
|
import {ALIGNMENT, ALPHABET, NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
11
11
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
package/src/tests/bio-tests.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {category, test, expect, expectObject, expectArray, before} from '@datagrok-libraries/
|
|
5
|
+
import {category, test, expect, expectObject, expectArray, before} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {
|
|
7
7
|
NOTATION, getAlphabetSimilarity, monomerToShort, pickUpPalette, splitterAsFasta, splitterAsHelm,
|
|
8
8
|
} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {category, test, expect, before} from '@datagrok-libraries/
|
|
5
|
+
import {category, test, expect, before} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
|
|
7
7
|
import {ALPHABET, NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
8
8
|
import {getSeqHelper, ISeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
import * as grok from 'datagrok-api/grok';
|
|
5
5
|
|
|
6
|
-
import {before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
6
|
+
import {before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
7
7
|
import {NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
8
8
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
9
9
|
import {ISeqHandler} from '@datagrok-libraries/bio/src/utils/macromolecule/seq-handler';
|
|
@@ -3,7 +3,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
3
3
|
import * as ui from 'datagrok-api/ui';
|
|
4
4
|
import * as DG from 'datagrok-api/dg';
|
|
5
5
|
|
|
6
|
-
import {before, category, test, expect} from '@datagrok-libraries/
|
|
6
|
+
import {before, category, test, expect} from '@datagrok-libraries/test/src/test';
|
|
7
7
|
import {ALPHABET, getAlphabet, NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
8
8
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
4
4
|
import * as ui from 'datagrok-api/ui';
|
|
5
5
|
import * as DG from 'datagrok-api/dg';
|
|
6
6
|
|
|
7
|
-
import {category, test, expect, before} from '@datagrok-libraries/
|
|
7
|
+
import {category, test, expect, before} from '@datagrok-libraries/test/src/test';
|
|
8
8
|
|
|
9
9
|
import {ALIGNMENT, ALPHABET, NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
10
10
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {before, category, test} from '@datagrok-libraries/
|
|
5
|
+
import {before, category, test} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {ALIGNMENT, ALPHABET, NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
7
7
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import * as DG from 'datagrok-api/dg';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as grok from 'datagrok-api/grok';
|
|
4
4
|
|
|
5
|
-
import {before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
5
|
+
import {before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
7
7
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
3
3
|
import * as ui from 'datagrok-api/ui';
|
|
4
4
|
import * as DG from 'datagrok-api/dg';
|
|
5
5
|
|
|
6
|
-
import {category, expectArray, test} from '@datagrok-libraries/
|
|
6
|
+
import {category, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
7
7
|
import {FastaFileHandler} from '@datagrok-libraries/bio/src/utils/fasta-handler';
|
|
8
8
|
|
|
9
9
|
|
package/src/tests/helm-tests.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as DG from 'datagrok-api/dg';
|
|
|
4
4
|
|
|
5
5
|
import wu from 'wu';
|
|
6
6
|
|
|
7
|
-
import {before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
7
|
+
import {before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
8
8
|
import {Helm} from '../utils/helm-to-molfile/converter/helm';
|
|
9
9
|
|
|
10
10
|
category('helm', () => {
|
package/src/tests/lib-tests.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
3
3
|
import * as ui from 'datagrok-api/ui';
|
|
4
4
|
import * as DG from 'datagrok-api/dg';
|
|
5
5
|
|
|
6
|
-
import {category} from '@datagrok-libraries/
|
|
6
|
+
import {category} from '@datagrok-libraries/test/src/test';
|
|
7
7
|
|
|
8
8
|
category('monomer lib', () => {
|
|
9
9
|
// test('monomerManager', async() => {
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {before, category, expect, test} from '@datagrok-libraries/
|
|
5
|
+
import {before, category, expect, test} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {ISeqHandler} from '@datagrok-libraries/bio/src/utils/macromolecule/seq-handler';
|
|
7
7
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
8
8
|
import {MmDistanceFunctionsNames, mmDistanceFunctions}
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as DG from 'datagrok-api/dg';
|
|
3
3
|
import * as ui from 'datagrok-api/ui';
|
|
4
4
|
|
|
5
|
-
import {test, after, before, category, expect, expectObject} from '@datagrok-libraries/
|
|
5
|
+
import {test, after, before, category, expect, expectObject} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {getMonomerLibHelper, IMonomerLibHelper} from '@datagrok-libraries/bio/src/types/monomer-library';
|
|
7
7
|
import {
|
|
8
8
|
getUserLibSettings, setUserLibSettings
|
package/src/tests/msa-tests.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
3
3
|
import * as ui from 'datagrok-api/ui';
|
|
4
4
|
import * as DG from 'datagrok-api/dg';
|
|
5
5
|
|
|
6
|
-
import {before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
6
|
+
import {before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
7
7
|
import {ALIGNMENT, ALPHABET, NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
8
8
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as DG from 'datagrok-api/dg';
|
|
2
2
|
|
|
3
|
-
import {before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
3
|
+
import {before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
4
4
|
import {runPepsea} from '../utils/pepsea';
|
|
5
5
|
import {TestLogger} from './utils/test-logger';
|
|
6
6
|
import {errInfo} from '@datagrok-libraries/bio/src/utils/err-info';
|
|
@@ -5,7 +5,7 @@ import * as ui from 'datagrok-api/ui';
|
|
|
5
5
|
|
|
6
6
|
import wu from 'wu';
|
|
7
7
|
|
|
8
|
-
import {after, before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
8
|
+
import {after, before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
9
9
|
import {MonomerPlacer, hitBounds} from '@datagrok-libraries/bio/src/utils/cell-renderer-monomer-placer';
|
|
10
10
|
import {monomerToShort} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
11
11
|
import {getMonomerLibHelper, IMonomerLibHelper} from '@datagrok-libraries/bio/src/types/monomer-library';
|
|
@@ -6,7 +6,7 @@ import * as ui from 'datagrok-api/ui';
|
|
|
6
6
|
import $ from 'cash-dom';
|
|
7
7
|
import {fromEvent} from 'rxjs';
|
|
8
8
|
|
|
9
|
-
import {category, expect, test, delay, testEvent, before} from '@datagrok-libraries/
|
|
9
|
+
import {category, expect, test, delay, testEvent, before} from '@datagrok-libraries/test/src/test';
|
|
10
10
|
import {ALIGNMENT, ALPHABET, NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
11
11
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
12
12
|
import {ISeqHandler} from '@datagrok-libraries/bio/src/utils/macromolecule/seq-handler';
|
package/src/tests/scoring.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as DG from 'datagrok-api/dg';
|
|
|
4
4
|
|
|
5
5
|
import wu from 'wu';
|
|
6
6
|
|
|
7
|
-
import {category, test, expectFloat, before, after, expect} from '@datagrok-libraries/
|
|
7
|
+
import {category, test, expectFloat, before, after, expect} from '@datagrok-libraries/test/src/test';
|
|
8
8
|
import {NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
9
9
|
import {IMonomerLibHelper, getMonomerLibHelper} from '@datagrok-libraries/bio/src/types/monomer-library';
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {after, before, category, expect, test} from '@datagrok-libraries/
|
|
5
|
+
import {after, before, category, expect, test} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
7
7
|
import {NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
8
8
|
import {getMonomerLibHelper, IMonomerLibHelper} from '@datagrok-libraries/bio/src/types/monomer-library';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as grok from 'datagrok-api/grok';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
5
|
+
import {before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
7
7
|
import {ALPHABET, NOTATION, TAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import * as DG from 'datagrok-api/dg';
|
|
|
3
3
|
|
|
4
4
|
import wu from 'wu';
|
|
5
5
|
|
|
6
|
-
import {before, category, expect, expectArray, test} from '@datagrok-libraries/
|
|
6
|
+
import {before, category, expect, expectArray, test} from '@datagrok-libraries/test/src/test';
|
|
7
7
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
8
8
|
import {NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
9
9
|
import {GapOriginals} from '@datagrok-libraries/bio/src/utils/macromolecule/consts';
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {category, test, expect, before} from '@datagrok-libraries/
|
|
5
|
+
import {category, test, expect, before} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {ALPHABET, NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
7
7
|
import {ISeqHelper, getSeqHelper} from '@datagrok-libraries/bio/src/utils/seq-helper';
|
|
8
8
|
import {ISeqHandler} from '@datagrok-libraries/bio/src/utils/macromolecule/seq-handler';
|
|
@@ -2,7 +2,7 @@ import * as grok from 'datagrok-api/grok';
|
|
|
2
2
|
import * as ui from 'datagrok-api/ui';
|
|
3
3
|
import * as DG from 'datagrok-api/dg';
|
|
4
4
|
|
|
5
|
-
import {category, test} from '@datagrok-libraries/
|
|
5
|
+
import {category, test} from '@datagrok-libraries/test/src/test';
|
|
6
6
|
import {readDataframe} from './utils';
|
|
7
7
|
import {_testSequenceSpaceReturnsResult} from './sequence-space-utils';
|
|
8
8
|
import {DimReductionMethods} from '@datagrok-libraries/ml/src/multi-column-dimensionality-reduction/types';
|