@datagrok/peptides 1.23.17 → 1.23.18
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 +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 +3 -3
- package/src/package.g.ts +16 -19
- package/src/package.ts +32 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/peptides",
|
|
3
3
|
"friendlyName": "Peptides",
|
|
4
|
-
"version": "1.23.
|
|
4
|
+
"version": "1.23.18",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Davit Rizhinashvili",
|
|
7
7
|
"email": "drizhinashvili@datagrok.ai"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/Peptides"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@datagrok-libraries/bio": "^5.54.
|
|
16
|
+
"@datagrok-libraries/bio": "^5.54.7",
|
|
17
17
|
"@datagrok-libraries/math": "^1.2.5",
|
|
18
18
|
"@datagrok-libraries/ml": "^6.10.4",
|
|
19
19
|
"@datagrok-libraries/statistics": "^1.2.12",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
|
41
41
|
"@typescript-eslint/parser": "^8.8.1",
|
|
42
42
|
"css-loader": "^7.1.2",
|
|
43
|
-
"datagrok-tools": "^4.14.
|
|
43
|
+
"datagrok-tools": "^4.14.47",
|
|
44
44
|
"eslint": "^8.57.1",
|
|
45
45
|
"eslint-config-google": "^0.14.0",
|
|
46
46
|
"style-loader": "^4.0.0",
|
package/src/package.g.ts
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
1
|
import {PackageFunctions} from './package';
|
|
2
2
|
import * as DG from 'datagrok-api/dg';
|
|
3
3
|
|
|
4
|
-
//name: initPeptides
|
|
5
4
|
//tags: init
|
|
6
|
-
export async function initPeptides() {
|
|
7
|
-
|
|
5
|
+
export async function initPeptides() : Promise<void> {
|
|
6
|
+
await PackageFunctions.initPeptides();
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
//name: Peptides
|
|
11
9
|
//output: view result
|
|
12
|
-
export function Peptides() {
|
|
10
|
+
export function Peptides() : any {
|
|
13
11
|
return PackageFunctions.Peptides();
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
//name: Bio Peptides
|
|
17
15
|
//top-menu: Bio | Analyze | SAR...
|
|
18
|
-
export function peptidesDialog() {
|
|
16
|
+
export function peptidesDialog() : any {
|
|
19
17
|
return PackageFunctions.peptidesDialog();
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
//name: testInitFunctionPeptides
|
|
23
20
|
//input: viewer v
|
|
24
|
-
export async function testInitFunctionPeptides(v: any) {
|
|
25
|
-
|
|
21
|
+
export async function testInitFunctionPeptides(v: any) : Promise<void> {
|
|
22
|
+
await PackageFunctions.testInitFunctionPeptides(v);
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
//name: Peptides
|
|
29
26
|
//tags: panel, widgets
|
|
30
27
|
//input: column col { semType: Macromolecule }
|
|
31
28
|
//output: widget result
|
|
32
|
-
export function peptidesPanel(col: DG.Column) {
|
|
29
|
+
export function peptidesPanel(col: DG.Column) : any {
|
|
33
30
|
return PackageFunctions.peptidesPanel(col);
|
|
34
31
|
}
|
|
35
32
|
|
|
@@ -38,7 +35,7 @@ export function peptidesPanel(col: DG.Column) {
|
|
|
38
35
|
//tags: viewer
|
|
39
36
|
//output: viewer result
|
|
40
37
|
//meta.icon: files/icons/peptide-sar-viewer.svg
|
|
41
|
-
export function monomerPosition() {
|
|
38
|
+
export function monomerPosition() : any {
|
|
42
39
|
return PackageFunctions.monomerPosition();
|
|
43
40
|
}
|
|
44
41
|
|
|
@@ -47,7 +44,7 @@ export function monomerPosition() {
|
|
|
47
44
|
//tags: viewer
|
|
48
45
|
//output: viewer result
|
|
49
46
|
//meta.icon: files/icons/peptide-sar-vertical-viewer.svg
|
|
50
|
-
export function mostPotentResidues() {
|
|
47
|
+
export function mostPotentResidues() : any {
|
|
51
48
|
return PackageFunctions.mostPotentResidues();
|
|
52
49
|
}
|
|
53
50
|
|
|
@@ -55,7 +52,7 @@ export function mostPotentResidues() {
|
|
|
55
52
|
//tags: viewer
|
|
56
53
|
//output: viewer result
|
|
57
54
|
//meta.icon: files/icons/logo-summary-viewer.svg
|
|
58
|
-
export function logoSummaryTable() {
|
|
55
|
+
export function logoSummaryTable() : any {
|
|
59
56
|
return PackageFunctions.logoSummaryTable();
|
|
60
57
|
}
|
|
61
58
|
|
|
@@ -63,14 +60,14 @@ export function logoSummaryTable() {
|
|
|
63
60
|
//tags: viewer
|
|
64
61
|
//output: viewer result
|
|
65
62
|
//meta.icon: files/icons/sequence-statistics-viewer.svg
|
|
66
|
-
export function sequencePositionStatistics() {
|
|
63
|
+
export function sequencePositionStatistics() : any {
|
|
67
64
|
return PackageFunctions.sequencePositionStatistics();
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
//name: Active peptide selection
|
|
71
68
|
//tags: viewer
|
|
72
69
|
//output: viewer result
|
|
73
|
-
export function clusterMaxActivity() {
|
|
70
|
+
export function clusterMaxActivity() : any {
|
|
74
71
|
return PackageFunctions.clusterMaxActivity();
|
|
75
72
|
}
|
|
76
73
|
|
|
@@ -78,7 +75,7 @@ export function clusterMaxActivity() {
|
|
|
78
75
|
//tags: panel, widgets
|
|
79
76
|
//input: string _monomer { semType: Monomer }
|
|
80
77
|
//output: widget result
|
|
81
|
-
export function manualAlignment(_monomer: string) {
|
|
78
|
+
export function manualAlignment(_monomer: string) : any {
|
|
82
79
|
return PackageFunctions.manualAlignment(_monomer);
|
|
83
80
|
}
|
|
84
81
|
|
|
@@ -86,8 +83,8 @@ export function manualAlignment(_monomer: string) {
|
|
|
86
83
|
//description: Peptide SAR Analysis demo on peptide sequences in FASTA format
|
|
87
84
|
//meta.demoPath: Bioinformatics | Peptide SAR
|
|
88
85
|
//meta.demoSkip: GROK-14320
|
|
89
|
-
export async function macromoleculeSarFastaDemo() {
|
|
90
|
-
|
|
86
|
+
export async function macromoleculeSarFastaDemo() : Promise<void> {
|
|
87
|
+
await PackageFunctions.macromoleculeSarFastaDemo();
|
|
91
88
|
}
|
|
92
89
|
|
|
93
90
|
//name: LST Pie Chart
|
|
@@ -95,6 +92,6 @@ export async function macromoleculeSarFastaDemo() {
|
|
|
95
92
|
//output: grid_cell_renderer result
|
|
96
93
|
//meta.cellType: lst-pie-chart
|
|
97
94
|
//meta.gridChart: true
|
|
98
|
-
export function lstPiechartCellRenderer() {
|
|
95
|
+
export function lstPiechartCellRenderer() : any {
|
|
99
96
|
return PackageFunctions.lstPiechartCellRenderer();
|
|
100
97
|
}
|
package/src/package.ts
CHANGED
|
@@ -23,6 +23,38 @@ let monomerWorks: MonomerWorks | null = null;
|
|
|
23
23
|
let treeHelper: ITreeHelper;
|
|
24
24
|
|
|
25
25
|
export * from './package.g';
|
|
26
|
+
|
|
27
|
+
/** Temporary polyfill */
|
|
28
|
+
|
|
29
|
+
function getDecoratorFunc() {
|
|
30
|
+
return function(args: any) {
|
|
31
|
+
return function(
|
|
32
|
+
target: any,
|
|
33
|
+
propertyKey: string,
|
|
34
|
+
descriptor: PropertyDescriptor
|
|
35
|
+
) { };
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Ensure decorators object exists and polyfill missing decorators
|
|
40
|
+
if (!grok.decorators)
|
|
41
|
+
(grok as any).decorators = {};
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
const decorators = [
|
|
45
|
+
'func', 'init', 'param', 'panel', 'editor', 'demo', 'app',
|
|
46
|
+
'appTreeBrowser', 'fileHandler', 'fileExporter', 'model', 'viewer', 'filter', 'cellRenderer', 'autostart',
|
|
47
|
+
'dashboard', 'folderViewer', 'semTypeDetector', 'packageSettingsEditor', 'functionAnalysis', 'converter',
|
|
48
|
+
'fileViewer', 'model', 'treeBrowser', 'polyfill'
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
decorators.forEach((decorator) => {
|
|
52
|
+
if (!(grok.decorators as any)[decorator])
|
|
53
|
+
(grok.decorators as any)[decorator] = getDecoratorFunc();
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/** End temporary polyfill */
|
|
57
|
+
|
|
26
58
|
export const _package = new DG.Package();
|
|
27
59
|
|
|
28
60
|
|