@datagrok/bio 2.13.8 → 2.14.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 +10 -2
- package/CHANGELOG.md +15 -0
- package/dist/248.js.map +1 -1
- package/dist/package-test.js +6 -6
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +3 -3
- package/dist/package.js.map +1 -1
- package/files/monomer-sets/monomer-set-PEPTIDE.json +93 -0
- package/files/monomer-sets/monomer-set-RNA.json +29 -0
- package/files/schemas/monomer-set-schema.json +48 -0
- package/package.json +5 -5
- package/src/analysis/sequence-similarity-viewer.ts +5 -2
- package/src/demo/bio01-similarity-diversity.ts +3 -2
- package/src/demo/bio01b-hierarchical-clustering-and-activity-cliffs.ts +1 -1
- package/src/package.ts +12 -7
- package/src/tests/activity-cliffs-tests.ts +2 -2
- package/src/tests/detectors-tests.ts +14 -7
- package/src/tests/monomer-libraries-tests.ts +6 -6
- package/src/tests/renderers-monomer-placer-tests.ts +2 -2
- package/src/tests/scoring.ts +2 -2
- package/src/tests/substructure-filters-tests.ts +2 -2
- package/src/tests/to-atomic-level-tests.ts +3 -3
- package/src/utils/helm-to-molfile/converter/converter.ts +1 -1
- package/src/utils/monomer-lib/lib-manager.ts +118 -21
- package/src/utils/monomer-lib/library-file-manager/event-manager.ts +25 -8
- package/src/utils/monomer-lib/library-file-manager/file-manager.ts +122 -35
- package/src/utils/monomer-lib/library-file-manager/ui.ts +1 -1
- package/src/utils/monomer-lib/monomer-lib.ts +23 -6
- package/src/utils/monomer-lib/monomer-set.ts +61 -0
- package/src/widgets/bio-substructure-filter-helm.ts +2 -2
- package/src/widgets/bio-substructure-filter.ts +19 -14
- package/webpack.config.js +3 -2
|
@@ -63,7 +63,7 @@ export class HelmBioFilter extends BioFilterBase<BioFilterProps> /* implements I
|
|
|
63
63
|
.add(webEditorHost!)
|
|
64
64
|
.onOK(() => {
|
|
65
65
|
try {
|
|
66
|
-
const webEditorValue = webEditorApp!.canvas
|
|
66
|
+
const webEditorValue = webEditorApp!.canvas!.getHelm(true)
|
|
67
67
|
.replace(/<\/span>/g, '').replace(/<span style='background:#bbf;'>/g, '');
|
|
68
68
|
this.props = new BioFilterProps(webEditorValue);
|
|
69
69
|
} catch (err: any) {
|
|
@@ -90,7 +90,7 @@ export class HelmBioFilter extends BioFilterBase<BioFilterProps> /* implements I
|
|
|
90
90
|
this.viewSubs.push(ui.onSizeChanged(this._filterPanel).subscribe((_: any) => {
|
|
91
91
|
try {
|
|
92
92
|
if (!!webEditorApp) {
|
|
93
|
-
const helmString = webEditorApp
|
|
93
|
+
const helmString = webEditorApp!.canvas!.getHelm(true)
|
|
94
94
|
.replace(/<\/span>/g, '').replace(/<span style='background:#bbf;'>/g, '');
|
|
95
95
|
this.updateFilterPanel(helmString);
|
|
96
96
|
}
|
|
@@ -111,7 +111,6 @@ export class BioSubstructureFilter extends DG.Filter implements IRenderer {
|
|
|
111
111
|
|
|
112
112
|
private filterToLog(): string { return `BioSubstructureFilter<${this.filterId}>`; }
|
|
113
113
|
|
|
114
|
-
|
|
115
114
|
private viewSubs: Unsubscribable[] = [];
|
|
116
115
|
|
|
117
116
|
attach(dataFrame: DG.DataFrame): void {
|
|
@@ -296,10 +295,12 @@ export class FastaBioFilter extends BioFilterBase<BioFilterProps> {
|
|
|
296
295
|
constructor() {
|
|
297
296
|
super();
|
|
298
297
|
|
|
299
|
-
this.substructureInput = ui.input.string('', {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
298
|
+
this.substructureInput = ui.input.string('', {
|
|
299
|
+
value: '', onValueChanged: () => {
|
|
300
|
+
this.props = new BioFilterProps(this.substructureInput.value);
|
|
301
|
+
if (!this._propsChanging) this.onChanged.next();
|
|
302
|
+
}, placeholder: 'Substructure'
|
|
303
|
+
});
|
|
303
304
|
}
|
|
304
305
|
|
|
305
306
|
public applyProps() {
|
|
@@ -336,15 +337,19 @@ export class SeparatorBioFilter extends BioFilterBase<SeparatorFilterProps> {
|
|
|
336
337
|
constructor(colSeparator: string) {
|
|
337
338
|
super();
|
|
338
339
|
|
|
339
|
-
this.substructureInput = ui.input.string('', {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
340
|
+
this.substructureInput = ui.input.string('', {
|
|
341
|
+
value: '', onValueChanged: () => {
|
|
342
|
+
this.props = new SeparatorFilterProps(this.substructureInput.value, this.props.separator);
|
|
343
|
+
if (!this._propsChanging) this.onChanged.next();
|
|
344
|
+
}, placeholder: 'Substructure'
|
|
345
|
+
});
|
|
346
|
+
this.separatorInput = ui.input.string('', {
|
|
347
|
+
value: this.colSeparator = colSeparator, onValueChanged: () => {
|
|
348
|
+
const separator: string | undefined = !!this.separatorInput.value ? this.separatorInput.value : undefined;
|
|
349
|
+
this.props = new SeparatorFilterProps(this.props.substructure, separator);
|
|
350
|
+
if (!this._propsChanging) this.onChanged.next();
|
|
351
|
+
}, placeholder: 'Separator'
|
|
352
|
+
});
|
|
348
353
|
}
|
|
349
354
|
|
|
350
355
|
applyProps(): void {
|
package/webpack.config.js
CHANGED
|
@@ -7,7 +7,8 @@ if (mode !== 'production')
|
|
|
7
7
|
console.warn(`Building Bio in '${mode}' mode.`);
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
|
-
...(mode === 'production' ? {cache: {type: 'filesystem'}} : {}),
|
|
10
|
+
// ...(mode === 'production' ? {cache: {type: 'filesystem'}} : {}),
|
|
11
|
+
cache: {type: 'filesystem'},
|
|
11
12
|
mode: mode,
|
|
12
13
|
entry: {
|
|
13
14
|
package: ['./src/package.ts'],
|
|
@@ -19,7 +20,7 @@ module.exports = {
|
|
|
19
20
|
},
|
|
20
21
|
resolve: {
|
|
21
22
|
fallback: {'url': false},
|
|
22
|
-
extensions: ['.
|
|
23
|
+
extensions: ['.ts', '.tsx', '.wasm', '.mjs', '.js', '.json'],
|
|
23
24
|
},
|
|
24
25
|
module: {
|
|
25
26
|
rules: [
|