@platforma-open/milaboratories.clonotype-clustering.model 2.0.1 → 2.2.0
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 +11 -11
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +53 -18
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +52 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +53 -16
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +56 -29
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.0
|
|
3
|
+
> @platforma-open/milaboratories.clonotype-clustering.model@2.2.0 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,14 +11,14 @@
|
|
|
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[
|
|
15
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
18
|
-
[32mESM[39m [1mdist/index.js.map [22m[
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m3.27 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m7.58 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 97ms
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m3.27 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m7.51 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 97ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 2159ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m3.98 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.98 KB[39m
|
|
24
24
|
[36mvite v6.2.3 [32mbuilding for production...[36m[39m
|
|
@@ -26,6 +26,6 @@ transforming...
|
|
|
26
26
|
[32m✓[39m 11 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[
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m188.26 kB[22m[1m[22m[2m │ gzip: 36.79 kB[22m[2m │ map: 398.50 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m201.18 kB[22m[1m[22m[2m │ gzip: 37.42 kB[22m[2m │ map: 400.10 kB[22m
|
|
31
|
+
[32m✓ built in 725ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @platforma-open/milaboratories.clonotype-clustering.model
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9a8e64d: Fix for bulk data
|
|
8
|
+
|
|
9
|
+
## 2.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- fb91da8: Calculate abundance automatically; Add ability to specify sequence/
|
|
14
|
+
|
|
3
15
|
## 2.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -6154,31 +6154,66 @@
|
|
|
6154
6154
|
}
|
|
6155
6155
|
}
|
|
6156
6156
|
}
|
|
6157
|
-
}).argsValid((ctx) => ctx.args.
|
|
6158
|
-
"
|
|
6157
|
+
}).argsValid((ctx) => ctx.args.datasetRef !== void 0 && ctx.args.sequenceRef !== void 0).output(
|
|
6158
|
+
"datasetOptions",
|
|
6159
6159
|
(ctx) => ctx.resultPool.getOptions(
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6160
|
+
[{
|
|
6161
|
+
axes: [
|
|
6162
|
+
{ name: "pl7.app/sampleId" },
|
|
6163
|
+
{ name: "pl7.app/vdj/clonotypeKey" }
|
|
6164
|
+
],
|
|
6165
|
+
annotations: { "pl7.app/isAnchor": "true" }
|
|
6166
|
+
}, {
|
|
6167
|
+
axes: [
|
|
6168
|
+
{ name: "pl7.app/sampleId" },
|
|
6169
|
+
{ name: "pl7.app/vdj/scClonotypeKey" }
|
|
6170
|
+
],
|
|
6171
|
+
annotations: { "pl7.app/isAnchor": "true" }
|
|
6172
|
+
}],
|
|
6173
|
+
{
|
|
6174
|
+
// suppress native label of the column (e.g. "Number of Reads") to show only the dataset label
|
|
6175
|
+
label: { includeNativeLabel: false }
|
|
6163
6176
|
}
|
|
6164
6177
|
)
|
|
6165
|
-
).output("
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6178
|
+
).output("sequenceOptions", (ctx) => {
|
|
6179
|
+
var _a;
|
|
6180
|
+
const ref = ctx.args.datasetRef;
|
|
6181
|
+
if (ref === void 0) return void 0;
|
|
6182
|
+
const isSingleCell = ((_a = ctx.resultPool.getPColumnSpecByRef(ref)) == null ? void 0 : _a.axesSpec[1].name) === "pl7.app/vdj/scClonotypeKey";
|
|
6183
|
+
const sequenceMatchers = [];
|
|
6184
|
+
for (const feature of ["CDR3", "VDJRegion"]) {
|
|
6185
|
+
if (isSingleCell) {
|
|
6186
|
+
sequenceMatchers.push({
|
|
6187
|
+
axes: [{ anchor: "main", idx: 1 }],
|
|
6188
|
+
name: "pl7.app/vdj/sequence",
|
|
6189
|
+
domain: {
|
|
6190
|
+
"pl7.app/vdj/feature": feature,
|
|
6191
|
+
"pl7.app/vdj/scClonotypeChain": "A",
|
|
6192
|
+
"pl7.app/vdj/scClonotypeChain/index": "primary"
|
|
6193
|
+
}
|
|
6194
|
+
});
|
|
6195
|
+
} else {
|
|
6196
|
+
sequenceMatchers.push({
|
|
6197
|
+
axes: [{ anchor: "main", idx: 1 }],
|
|
6198
|
+
name: "pl7.app/vdj/sequence",
|
|
6199
|
+
domain: {
|
|
6200
|
+
"pl7.app/vdj/feature": feature
|
|
6201
|
+
}
|
|
6202
|
+
});
|
|
6203
|
+
}
|
|
6204
|
+
}
|
|
6205
|
+
return ctx.resultPool.getCanonicalOptions(
|
|
6206
|
+
{ main: ref },
|
|
6207
|
+
sequenceMatchers,
|
|
6208
|
+
{ ignoreMissingDomains: true }
|
|
6209
|
+
);
|
|
6175
6210
|
}).output("isSingleCell", (ctx) => {
|
|
6176
|
-
if (ctx.args.
|
|
6177
|
-
const spec = ctx.resultPool.getPColumnSpecByRef(ctx.args.
|
|
6211
|
+
if (ctx.args.datasetRef === void 0) return void 0;
|
|
6212
|
+
const spec = ctx.resultPool.getPColumnSpecByRef(ctx.args.datasetRef);
|
|
6178
6213
|
if (spec === void 0) {
|
|
6179
6214
|
return void 0;
|
|
6180
6215
|
}
|
|
6181
|
-
return spec.axesSpec[
|
|
6216
|
+
return spec.axesSpec[1].name === "pl7.app/vdj/scClonotypeKey";
|
|
6182
6217
|
}).output("clustersTable", (ctx) => {
|
|
6183
6218
|
var _a, _b, _c;
|
|
6184
6219
|
const pCols = (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("clustersPf")) == null ? void 0 : _b.getPColumns();
|