@datagrok/sequence-translator 1.9.9 → 1.9.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/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 +4 -4
- package/src/demo/demo-st-ui.ts +4 -4
- package/src/package-api.ts +4 -4
- package/src/package.g.ts +195 -0
- package/src/package.ts +345 -273
- package/src/polytool/conversion/pt-rules.ts +4 -3
- package/src/polytool/conversion/rule-manager.ts +3 -3
- package/src/polytool/pt-enumerate-seq-dialog.ts +3 -3
- package/test-console-output-1.log +136 -135
- package/test-record-1.mp4 +0 -0
- package/tsconfig.json +2 -2
- package/webpack.config.js +5 -1
|
@@ -2,7 +2,7 @@ import * as DG from 'datagrok-api/dg';
|
|
|
2
2
|
import * as grok from 'datagrok-api/grok';
|
|
3
3
|
import * as ui from 'datagrok-api/ui';
|
|
4
4
|
import {getMonomerPairs, getRules, Rules} from './pt-rules';
|
|
5
|
-
import {_package,
|
|
5
|
+
import {_package, PackageFunctions} from '../../package';
|
|
6
6
|
import {getHelmHelper} from '@datagrok-libraries/bio/src/helm/helm-helper';
|
|
7
7
|
import {doPolyToolConvert} from './pt-conversion';
|
|
8
8
|
import {NOTATION} from '@datagrok-libraries/bio/src/utils/macromolecule/consts';
|
|
@@ -138,7 +138,7 @@ export class RulesManager {
|
|
|
138
138
|
const initCol = DG.Column.fromStrings('Monomers', seqs);
|
|
139
139
|
const helmCol = DG.Column.fromStrings('Helm', helms);
|
|
140
140
|
|
|
141
|
-
applyNotationProviderForCyclized(initCol, '-');
|
|
141
|
+
PackageFunctions.applyNotationProviderForCyclized(initCol, '-');
|
|
142
142
|
initCol.semType = DG.SEMTYPE.MACROMOLECULE;
|
|
143
143
|
|
|
144
144
|
helmCol.semType = DG.SEMTYPE.MACROMOLECULE;
|
|
@@ -168,7 +168,7 @@ export class RulesManager {
|
|
|
168
168
|
const helmCol = DG.Column.fromStrings('Helm', helms);
|
|
169
169
|
|
|
170
170
|
initCol.semType = DG.SEMTYPE.MACROMOLECULE;
|
|
171
|
-
applyNotationProviderForCyclized(initCol, '-');
|
|
171
|
+
PackageFunctions.applyNotationProviderForCyclized(initCol, '-');
|
|
172
172
|
|
|
173
173
|
helmCol.semType = DG.SEMTYPE.MACROMOLECULE;
|
|
174
174
|
helmCol.meta.units = NOTATION.HELM;
|
|
@@ -32,7 +32,7 @@ import {RuleInputs, RULES_PATH, RULES_STORAGE_NAME} from './conversion/pt-rules'
|
|
|
32
32
|
import {Chain} from './conversion/pt-chain';
|
|
33
33
|
import {polyToolConvert} from './pt-dialog';
|
|
34
34
|
|
|
35
|
-
import {_package,
|
|
35
|
+
import {_package, PackageFunctions} from '../package';
|
|
36
36
|
import {buildMonomerHoverLink} from '@datagrok-libraries/bio/src/monomer-works/monomer-hover';
|
|
37
37
|
import {getRdKitModule} from '@datagrok-libraries/bio/src/chem/rdkit-module';
|
|
38
38
|
|
|
@@ -723,14 +723,14 @@ async function polyToolEnumerateSeq(
|
|
|
723
723
|
enumCol = DG.Column.fromList(DG.COLUMN_TYPE.STRING, 'Enumerated', templateList);
|
|
724
724
|
enumCol.semType = DG.SEMTYPE.MACROMOLECULE;
|
|
725
725
|
enumCol.setTag(PolyToolTags.dataRole, PolyToolDataRole.template);
|
|
726
|
-
applyNotationProviderForCyclized(enumCol, '-');
|
|
726
|
+
PackageFunctions.applyNotationProviderForCyclized(enumCol, '-');
|
|
727
727
|
break;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
const enumeratorResDf = DG.DataFrame.fromColumns([enumCol]);
|
|
731
731
|
await grok.data.detectSemanticTypes(enumeratorResDf);
|
|
732
732
|
if (dataRole == PolyToolDataRole.template)
|
|
733
|
-
applyNotationProviderForCyclized(enumCol, '-');
|
|
733
|
+
PackageFunctions.applyNotationProviderForCyclized(enumCol, '-');
|
|
734
734
|
|
|
735
735
|
|
|
736
736
|
if (toAtomicLevel) {
|