@datagrok/peptides 1.17.22 → 1.17.23
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 +9 -0
- 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 +2 -2
- package/src/package.ts +0 -1
- package/src/tests/benchmarks.ts +4 -4
- package/src/utils/algorithms.ts +23 -7
- package/src/utils/constants.ts +2 -0
- package/src/utils/statistics.ts +18 -10
- package/src/viewers/logo-summary.ts +1 -0
- package/src/viewers/sar-viewer.ts +151 -32
- package/src/widgets/distribution.ts +5 -4
- package/src/widgets/mutation-cliffs.ts +2 -2
- package/src/widgets/settings.ts +5 -4
package/src/widgets/settings.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
1
2
|
import * as ui from 'datagrok-api/ui';
|
|
2
3
|
import * as grok from 'datagrok-api/grok';
|
|
3
4
|
import * as DG from 'datagrok-api/dg';
|
|
@@ -11,7 +12,7 @@ import wu from 'wu';
|
|
|
11
12
|
import {getTreeHelperInstance} from '../package';
|
|
12
13
|
import {
|
|
13
14
|
MmDistanceFunctionsNames,
|
|
14
|
-
MmDistanceFunctionsNames as distFNames
|
|
15
|
+
MmDistanceFunctionsNames as distFNames,
|
|
15
16
|
} from '@datagrok-libraries/ml/src/macromolecule-distance-functions';
|
|
16
17
|
|
|
17
18
|
type PaneInputs = { [paneName: string]: DG.InputBase[] };
|
|
@@ -130,7 +131,7 @@ export function getSettingsDialog(model: PeptidesModel): SettingsElements {
|
|
|
130
131
|
}
|
|
131
132
|
if (result.showSequenceSpace === settings?.showSequenceSpace)
|
|
132
133
|
delete result.showSequenceSpace;
|
|
133
|
-
|
|
134
|
+
}});
|
|
134
135
|
clusterMaxActivity.setTooltip('Show cluster max activity viewer');
|
|
135
136
|
dendrogram.setTooltip('Show dendrogram viewer');
|
|
136
137
|
dendrogram.enabled = getTreeHelperInstance() !== null;
|
|
@@ -215,7 +216,7 @@ export function getSettingsDialog(model: PeptidesModel): SettingsElements {
|
|
|
215
216
|
// SEQ SPACE INPUTS
|
|
216
217
|
const distanceFunctionInput: DG.ChoiceInput<MmDistanceFunctionsNames> = ui.input.choice(SEQUENCE_SPACE_INPUTS.DISTANCE_FUNCTION,
|
|
217
218
|
{value: seqSpaceParams.distanceF, items: [distFNames.NEEDLEMANN_WUNSCH, distFNames.HAMMING, distFNames.LEVENSHTEIN, distFNames.MONOMER_CHEMICAL_DISTANCE],
|
|
218
|
-
|
|
219
|
+
onValueChanged: () => onSeqSpaceParamsChange('distanceF', distanceFunctionInput.value)}) as DG.ChoiceInput<MmDistanceFunctionsNames>;
|
|
219
220
|
distanceFunctionInput.setTooltip('Distance function for sequences');
|
|
220
221
|
const gapOpenInput = ui.input.float(SEQUENCE_SPACE_INPUTS.GAP_OPEN, {value: seqSpaceParams.gapOpen,
|
|
221
222
|
onValueChanged: () => onSeqSpaceParamsChange('gapOpen', gapOpenInput.value)});
|
|
@@ -276,7 +277,7 @@ export function getSettingsDialog(model: PeptidesModel): SettingsElements {
|
|
|
276
277
|
|
|
277
278
|
const mclDistanceFunctionInput: DG.ChoiceInput<MmDistanceFunctionsNames> = ui.input.choice(MCL_INPUTS.DISTANCE_FUNCTION,
|
|
278
279
|
{value: mclParams.distanceF, items: [distFNames.NEEDLEMANN_WUNSCH, distFNames.MONOMER_CHEMICAL_DISTANCE, distFNames.HAMMING, distFNames.LEVENSHTEIN],
|
|
279
|
-
|
|
280
|
+
onValueChanged: () => onMCLParamsChange('distanceF', mclDistanceFunctionInput.value)}) as DG.ChoiceInput<MmDistanceFunctionsNames>;
|
|
280
281
|
const mclGapOpenInput = ui.input.float(MCL_INPUTS.GAP_OPEN, {value: mclParams.gapOpen,
|
|
281
282
|
onValueChanged: () => onMCLParamsChange('gapOpen', mclGapOpenInput.value)});
|
|
282
283
|
const mclGapExtendInput = ui.input.float(MCL_INPUTS.GAP_EXTEND, {value: mclParams.gapExtend,
|