@datagrok/peptides 1.17.0 → 1.17.2
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/.eslintrc.json +17 -6
- package/CHANGELOG.md +4 -0
- package/dist/214.js +2 -0
- package/dist/436.js +2 -2
- package/dist/802.js +2 -0
- package/dist/package-test.js +2 -3
- package/dist/package.js +2 -3
- package/package.json +14 -14
- package/src/demo/fasta.ts +8 -2
- package/src/model.ts +783 -532
- package/src/package-test.ts +1 -3
- package/src/package.ts +15 -28
- package/src/tests/benchmarks.ts +31 -11
- package/src/tests/core.ts +11 -6
- package/src/tests/misc.ts +6 -6
- package/src/tests/model.ts +79 -44
- package/src/tests/table-view.ts +48 -38
- package/src/tests/utils.ts +0 -76
- package/src/tests/viewers.ts +30 -12
- package/src/tests/widgets.ts +30 -11
- package/src/utils/algorithms.ts +115 -38
- package/src/utils/cell-renderer.ts +181 -72
- package/src/utils/constants.ts +33 -7
- package/src/utils/misc.ts +244 -10
- package/src/utils/parallel-mutation-cliffs.ts +18 -15
- package/src/utils/statistics.ts +70 -15
- package/src/utils/tooltips.ts +42 -17
- package/src/utils/types.ts +29 -26
- package/src/utils/worker-creator.ts +5 -0
- package/src/viewers/logo-summary.ts +591 -130
- package/src/viewers/sar-viewer.ts +893 -239
- package/src/widgets/distribution.ts +305 -64
- package/src/widgets/manual-alignment.ts +18 -11
- package/src/widgets/mutation-cliffs.ts +44 -18
- package/src/widgets/peptides.ts +86 -91
- package/src/widgets/selection.ts +56 -22
- package/src/widgets/settings.ts +94 -44
- package/src/workers/mutation-cliffs-worker.ts +3 -16
- package/dist/209.js +0 -2
- package/dist/361.js +0 -2
- package/dist/381.js +0 -2
- package/dist/770.js +0 -2
- package/dist/831.js +0 -2
- package/dist/868.js +0 -2
- package/dist/931.js +0 -3
- package/dist/931.js.LICENSE.txt +0 -51
- package/dist/932.js +0 -2
- package/dist/package-test.js.LICENSE.txt +0 -51
- package/dist/package.js.LICENSE.txt +0 -51
- package/src/tests/peptide-space-test.ts +0 -48
- package/src/tests/test-data.ts +0 -649
- package/src/utils/molecular-measure.ts +0 -174
- package/src/utils/peptide-similarity-space.ts +0 -216
- package/src/viewers/peptide-space-viewer.ts +0 -150
- package/src/workers/dimensionality-reducer.ts +0 -25
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/peptides",
|
|
3
3
|
"friendlyName": "Peptides",
|
|
4
|
-
"version": "1.17.
|
|
4
|
+
"version": "1.17.2",
|
|
5
5
|
"author": {
|
|
6
|
-
"name": "
|
|
7
|
-
"email": "
|
|
6
|
+
"name": "Davit Rizhinashvili",
|
|
7
|
+
"email": "drizhinashvili@datagrok.ai"
|
|
8
8
|
},
|
|
9
9
|
"description": "Advanced tools for analyzing collections of peptides.",
|
|
10
10
|
"repository": {
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"directory": "packages/Peptides"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@datagrok-libraries/bio": "^5.39.
|
|
17
|
-
"@datagrok-libraries/ml": "^6.
|
|
18
|
-
"@datagrok-libraries/statistics": "^1.2.
|
|
19
|
-
"@datagrok-libraries/utils": "^4.1.
|
|
20
|
-
"@datagrok-libraries/tutorials": "^1.3.
|
|
21
|
-
"cash-dom": "
|
|
22
|
-
"datagrok-api": "^1.
|
|
23
|
-
"file-loader": "
|
|
16
|
+
"@datagrok-libraries/bio": "^5.39.14",
|
|
17
|
+
"@datagrok-libraries/ml": "^6.4.0",
|
|
18
|
+
"@datagrok-libraries/statistics": "^1.2.11",
|
|
19
|
+
"@datagrok-libraries/utils": "^4.1.36",
|
|
20
|
+
"@datagrok-libraries/tutorials": "^1.3.11",
|
|
21
|
+
"cash-dom": "latest",
|
|
22
|
+
"datagrok-api": "^1.17.9",
|
|
23
|
+
"file-loader": "latest",
|
|
24
24
|
"rxjs": "^6.5.5",
|
|
25
25
|
"wu": "latest",
|
|
26
26
|
"uuid": "latest"
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/uuid": "latest",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "latest",
|
|
32
32
|
"@typescript-eslint/parser": "latest",
|
|
33
|
-
"css-loader": "
|
|
33
|
+
"css-loader": "latest",
|
|
34
34
|
"eslint": "latest",
|
|
35
35
|
"eslint-config-google": "latest",
|
|
36
|
-
"style-loader": "
|
|
36
|
+
"style-loader": "latest",
|
|
37
37
|
"ts-loader": "latest",
|
|
38
38
|
"typescript": "latest",
|
|
39
39
|
"webpack": "latest",
|
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
"All users"
|
|
76
76
|
],
|
|
77
77
|
"category": "Bioinformatics"
|
|
78
|
-
}
|
|
78
|
+
}
|
package/src/demo/fasta.ts
CHANGED
|
@@ -7,12 +7,15 @@ import * as C from '../utils/constants';
|
|
|
7
7
|
import {scaleActivity} from '../utils/misc';
|
|
8
8
|
import {ALIGNMENT, ALPHABET, NOTATION, TAGS as bioTAGS} from '@datagrok-libraries/bio/src/utils/macromolecule';
|
|
9
9
|
import {PeptidesModel} from '../model';
|
|
10
|
+
import {delay} from '@datagrok-libraries/utils/src/test';
|
|
10
11
|
|
|
11
12
|
export async function macromoleculeSarFastaDemoUI(): Promise<void> {
|
|
12
13
|
grok.shell.windows.showContextPanel = true;
|
|
13
14
|
const alignedSequenceCol = 'AlignedSequence';
|
|
14
15
|
const simpleActivityColName = 'IC50';
|
|
15
16
|
const simpleTable = DG.DataFrame.fromCsv(await _package.files.readAsText('aligned.csv'));
|
|
17
|
+
grok.shell.addTableView(simpleTable);
|
|
18
|
+
await delay(0);
|
|
16
19
|
const simpleActivityCol = simpleTable.getCol(simpleActivityColName);
|
|
17
20
|
const simpleAlignedSeqCol = simpleTable.getCol(alignedSequenceCol);
|
|
18
21
|
simpleAlignedSeqCol.semType = DG.SEMTYPE.MACROMOLECULE;
|
|
@@ -21,8 +24,11 @@ export async function macromoleculeSarFastaDemoUI(): Promise<void> {
|
|
|
21
24
|
simpleAlignedSeqCol.setTag(bioTAGS.aligned, ALIGNMENT.SEQ_MSA);
|
|
22
25
|
const simpleScaledCol = scaleActivity(simpleActivityCol, C.SCALING_METHODS.MINUS_LG);
|
|
23
26
|
const clustersCol = DG.Column.string('Cluster', simpleTable.rowCount).init('0');
|
|
24
|
-
const alignedCol: DG.Column<string> = await grok.functions.call('Bio:alignSequences', {
|
|
27
|
+
const alignedCol: DG.Column<string> = await grok.functions.call('Bio:alignSequences', {
|
|
28
|
+
sequenceCol: simpleAlignedSeqCol,
|
|
29
|
+
clustersCol,
|
|
30
|
+
});
|
|
25
31
|
const model: PeptidesModel = await startAnalysis(simpleActivityCol, alignedCol, null, simpleTable, simpleScaledCol,
|
|
26
32
|
C.SCALING_METHODS.MINUS_LG) as PeptidesModel;
|
|
27
|
-
model.
|
|
33
|
+
model.modifyWebLogoSelection({monomerOrCluster: 'D', positionOrClusterType: '13'});
|
|
28
34
|
}
|