@platforma-open/milaboratories.clonotype-clustering.model 2.12.1 → 2.13.1
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/.turbo/turbo-build.log +14 -14
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +35 -39
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +6 -6
- package/src/index.ts +11 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/work/clonotype-clustering/clonotype-clustering/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @platforma-open/milaboratories.clonotype-clustering.model@2.
|
|
3
|
+
> @platforma-open/milaboratories.clonotype-clustering.model@2.13.1 build /home/runner/work/clonotype-clustering/clonotype-clustering/model
|
|
4
4
|
> tsup && vite build && block-tools build-model
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m6.
|
|
15
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[32m6.
|
|
18
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m15.
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m6.49 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m16.05 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 221ms
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.48 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m15.96 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 220ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
22
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m5.
|
|
23
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m5.
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 2885ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m5.85 KB[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m5.85 KB[39m
|
|
24
24
|
[36mvite v6.3.5 [32mbuilding for production...[36m[39m
|
|
25
25
|
transforming...
|
|
26
|
-
[32m✓[39m
|
|
26
|
+
[32m✓[39m 69 modules transformed.
|
|
27
27
|
rendering chunks...
|
|
28
28
|
computing gzip size...
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m257.
|
|
31
|
-
[32m✓ built in 1.
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m242.49 kB[22m[1m[22m[2m │ gzip: 46.09 kB[22m[2m │ map: 516.76 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m257.73 kB[22m[1m[22m[2m │ gzip: 46.83 kB[22m[2m │ map: 518.42 kB[22m
|
|
31
|
+
[32m✓ built in 1.30s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @platforma-open/milaboratories.clonotype-clustering.model
|
|
2
2
|
|
|
3
|
+
## 2.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 823ff69: Full SDK update
|
|
8
|
+
|
|
9
|
+
## 2.13.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- c722cfb: Included input sequence trimming option for clustering
|
|
14
|
+
|
|
3
15
|
## 2.12.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -3966,13 +3966,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
3966
3966
|
});
|
|
3967
3967
|
z.object({
|
|
3968
3968
|
/** Included left border. */
|
|
3969
|
-
from: z.number(),
|
|
3969
|
+
from: z.number().min(0),
|
|
3970
3970
|
/** Excluded right border. */
|
|
3971
|
-
to: z.number()
|
|
3971
|
+
to: z.number().min(1)
|
|
3972
3972
|
});
|
|
3973
3973
|
function assertNever(x) {
|
|
3974
3974
|
throw new Error("Unexpected object: " + x);
|
|
3975
3975
|
}
|
|
3976
|
+
function uniqueBy(array, makeId) {
|
|
3977
|
+
return [...new Map(array.map((e) => [makeId(e), e])).values()];
|
|
3978
|
+
}
|
|
3976
3979
|
function isDataInfo(value) {
|
|
3977
3980
|
if (!value || typeof value !== "object") {
|
|
3978
3981
|
return false;
|
|
@@ -4229,14 +4232,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4229
4232
|
function parseJson(value) {
|
|
4230
4233
|
return JSON.parse(value);
|
|
4231
4234
|
}
|
|
4232
|
-
const ValueType = {
|
|
4233
|
-
Int: "Int",
|
|
4234
|
-
Long: "Long",
|
|
4235
|
-
Float: "Float",
|
|
4236
|
-
Double: "Double",
|
|
4237
|
-
String: "String",
|
|
4238
|
-
Bytes: "Bytes"
|
|
4239
|
-
};
|
|
4240
4235
|
function readMetadata(metadata, key) {
|
|
4241
4236
|
return metadata == null ? void 0 : metadata[key];
|
|
4242
4237
|
}
|
|
@@ -4265,6 +4260,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4265
4260
|
IsVirtual: "pl7.app/graph/isVirtual"
|
|
4266
4261
|
},
|
|
4267
4262
|
HideDataFromUi: "pl7.app/hideDataFromUi",
|
|
4263
|
+
HideDataFromGraphs: "pl7.app/hideDataFromGraphs",
|
|
4268
4264
|
IsLinkerColumn: "pl7.app/isLinkerColumn",
|
|
4269
4265
|
Label: "pl7.app/label",
|
|
4270
4266
|
Max: "pl7.app/max",
|
|
@@ -4282,21 +4278,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4282
4278
|
},
|
|
4283
4279
|
Trace: "pl7.app/trace"
|
|
4284
4280
|
};
|
|
4285
|
-
const AxisSpec = z.object({
|
|
4286
|
-
type: z.nativeEnum(ValueType),
|
|
4287
|
-
name: z.string(),
|
|
4288
|
-
domain: z.record(z.string(), z.string()).optional(),
|
|
4289
|
-
annotations: z.record(z.string(), z.string()).optional(),
|
|
4290
|
-
parentAxes: z.array(z.number()).optional()
|
|
4291
|
-
}).passthrough();
|
|
4292
4281
|
const AnnotationJson = {
|
|
4293
4282
|
[Annotation.DiscreteValues]: z.array(z.string()).or(z.array(z.number())),
|
|
4294
4283
|
[Annotation.Graph.IsVirtual]: z.boolean(),
|
|
4295
4284
|
[Annotation.HideDataFromUi]: z.boolean(),
|
|
4285
|
+
[Annotation.HideDataFromGraphs]: z.boolean(),
|
|
4296
4286
|
[Annotation.IsLinkerColumn]: z.boolean(),
|
|
4297
4287
|
[Annotation.Max]: z.number(),
|
|
4298
4288
|
[Annotation.Min]: z.number(),
|
|
4299
|
-
[Annotation.Parents]: z.array(
|
|
4289
|
+
[Annotation.Parents]: z.array(z.string()),
|
|
4300
4290
|
[Annotation.Sequence.Annotation.Mapping]: z.record(z.string(), z.string()),
|
|
4301
4291
|
[Annotation.Sequence.IsAnnotation]: z.boolean(),
|
|
4302
4292
|
[Annotation.Table.OrderPriority]: z.number(),
|
|
@@ -4416,7 +4406,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4416
4406
|
if (axis.parentAxes) {
|
|
4417
4407
|
modifiedAxis.parentAxesSpec = axis.parentAxes.map((idx2) => modifiedAxes[idx2]);
|
|
4418
4408
|
} else {
|
|
4419
|
-
|
|
4409
|
+
const parents = parseParentsFromAnnotations(axis).map((name) => modifiedAxes.find((axis2) => axis2.name === name));
|
|
4410
|
+
modifiedAxis.parentAxesSpec = parents.some((p) => p === void 0) ? [] : parents;
|
|
4420
4411
|
(_a = modifiedAxis.annotations) == null ? true : delete _a[Annotation.Parents];
|
|
4421
4412
|
}
|
|
4422
4413
|
});
|
|
@@ -6522,7 +6513,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6522
6513
|
this.ctx.logError(msg);
|
|
6523
6514
|
}
|
|
6524
6515
|
}
|
|
6525
|
-
var version = "1.42.
|
|
6516
|
+
var version = "1.42.51";
|
|
6526
6517
|
const PlatformaSDKVersion = version;
|
|
6527
6518
|
function isConfigLambda(cfgOrFh) {
|
|
6528
6519
|
return cfgOrFh.__renderLambda === true;
|
|
@@ -6695,6 +6686,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6695
6686
|
};
|
|
6696
6687
|
}
|
|
6697
6688
|
function upgradePlDataTableStateV2(state) {
|
|
6689
|
+
if (!state) {
|
|
6690
|
+
return createPlDataTableStateV2();
|
|
6691
|
+
}
|
|
6698
6692
|
if (!("version" in state)) {
|
|
6699
6693
|
state = createPlDataTableStateV2();
|
|
6700
6694
|
}
|
|
@@ -6843,9 +6837,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6843
6837
|
function isColumnOptional(spec) {
|
|
6844
6838
|
return readAnnotation(spec, Annotation.Table.Visibility) === "optional";
|
|
6845
6839
|
}
|
|
6846
|
-
function uniqueBy(array, makeId) {
|
|
6847
|
-
return [...new Map(array.map((e) => [makeId(e), e])).values()];
|
|
6848
|
-
}
|
|
6849
6840
|
function createPlDataTableV2(ctx, inputColumns, tableState, ops) {
|
|
6850
6841
|
if (inputColumns.length === 0)
|
|
6851
6842
|
return void 0;
|
|
@@ -6949,6 +6940,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6949
6940
|
function isLinkerColumn(column) {
|
|
6950
6941
|
return !!readAnnotationJson(column, Annotation.IsLinkerColumn);
|
|
6951
6942
|
}
|
|
6943
|
+
function isHiddenFromGraphColumn(column) {
|
|
6944
|
+
return !!readAnnotationJson(column, Annotation.HideDataFromGraphs);
|
|
6945
|
+
}
|
|
6952
6946
|
function getAvailableWithLinkersAxes(linkerColumns, blockAxes) {
|
|
6953
6947
|
const linkerMap = LinkerMap.fromColumns(linkerColumns.map(getColumnIdAndSpec));
|
|
6954
6948
|
const startKeys = [];
|
|
@@ -7093,14 +7087,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7093
7087
|
blockAxes.set(...item);
|
|
7094
7088
|
allAxes.set(...item);
|
|
7095
7089
|
}
|
|
7096
|
-
|
|
7090
|
+
let compatibleWithoutLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.some((axisSpec) => {
|
|
7097
7091
|
const axisId = getAxisId(axisSpec);
|
|
7098
|
-
|
|
7099
|
-
if (matchAxisId(getAxisId(selectorAxisSpec), axisId)) {
|
|
7100
|
-
return true;
|
|
7101
|
-
}
|
|
7102
|
-
}
|
|
7103
|
-
return false;
|
|
7092
|
+
return Array.from(blockAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
|
|
7104
7093
|
}), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));
|
|
7105
7094
|
if (!allColumnsReady(compatibleWithoutLabels)) {
|
|
7106
7095
|
return void 0;
|
|
@@ -7111,14 +7100,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7111
7100
|
allAxes.set(canonicalizeJson(aid), spec);
|
|
7112
7101
|
}
|
|
7113
7102
|
}
|
|
7114
|
-
|
|
7103
|
+
compatibleWithoutLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.every((axisSpec) => {
|
|
7115
7104
|
const axisId = getAxisId(axisSpec);
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
return false;
|
|
7105
|
+
return Array.from(allAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
|
|
7106
|
+
}), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));
|
|
7107
|
+
const compatibleLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.some((axisSpec) => {
|
|
7108
|
+
const axisId = getAxisId(axisSpec);
|
|
7109
|
+
return Array.from(allAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
|
|
7122
7110
|
}), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => isLabelColumn(column.spec));
|
|
7123
7111
|
if (!allColumnsReady(compatibleLabels)) {
|
|
7124
7112
|
return void 0;
|
|
@@ -7198,8 +7186,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7198
7186
|
similarityType: "sequence-identity",
|
|
7199
7187
|
coverageThreshold: 0.8,
|
|
7200
7188
|
// default value matching MMseqs2 default
|
|
7201
|
-
coverageMode: 0
|
|
7189
|
+
coverageMode: 0,
|
|
7202
7190
|
// default to coverage of query and target
|
|
7191
|
+
trimStart: 0,
|
|
7192
|
+
// default to no trimming from start
|
|
7193
|
+
trimEnd: 0
|
|
7194
|
+
// default to no trimming from end
|
|
7203
7195
|
}).withUiState({
|
|
7204
7196
|
title: "Clonotype Clustering",
|
|
7205
7197
|
tableState: createPlDataTableStateV2(),
|
|
@@ -7328,6 +7320,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7328
7320
|
var _a, _b;
|
|
7329
7321
|
const msaCols = (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("msaPf")) == null ? void 0 : _b.getPColumns();
|
|
7330
7322
|
if (!msaCols) return void 0;
|
|
7323
|
+
const trimEnabled = (ctx.args.trimStart ?? 0) > 0 || (ctx.args.trimEnd ?? 0) > 0;
|
|
7324
|
+
if (trimEnabled) {
|
|
7325
|
+
return createPFrameForGraphs(ctx, msaCols);
|
|
7326
|
+
}
|
|
7331
7327
|
const datasetRef = ctx.args.datasetRef;
|
|
7332
7328
|
if (datasetRef === void 0)
|
|
7333
7329
|
return void 0;
|
|
@@ -7410,7 +7406,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7410
7406
|
{ type: "link", href: "/", label: "Main" },
|
|
7411
7407
|
{ type: "link", href: "/bubble", label: "Top Clusters Plot" },
|
|
7412
7408
|
{ type: "link", href: "/histogram", label: "Cluster Size Histogram" }
|
|
7413
|
-
]).done();
|
|
7409
|
+
]).done(2);
|
|
7414
7410
|
exports2.model = model;
|
|
7415
7411
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
7416
7412
|
});
|