@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.
@@ -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.1 build /home/runner/work/clonotype-clustering/clonotype-clustering/model
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
  CLI Building entry: src/index.ts
@@ -11,14 +11,14 @@
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
- CJS dist/index.cjs 2.67 KB
15
- CJS dist/index.cjs.map 6.50 KB
16
- CJS ⚡️ Build success in 121ms
17
- ESM dist/index.js 2.67 KB
18
- ESM dist/index.js.map 6.42 KB
19
- ESM ⚡️ Build success in 121ms
14
+ CJS dist/index.cjs 3.27 KB
15
+ CJS dist/index.cjs.map 7.58 KB
16
+ CJS ⚡️ Build success in 97ms
17
+ ESM dist/index.js 3.27 KB
18
+ ESM dist/index.js.map 7.51 KB
19
+ ESM ⚡️ Build success in 97ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 2189ms
21
+ DTS ⚡️ Build success in 2159ms
22
22
  DTS dist/index.d.cts 3.98 KB
23
23
  DTS dist/index.d.ts 3.98 KB
24
24
  vite v6.2.3 building for production...
@@ -26,6 +26,6 @@ transforming...
26
26
  ✓ 11 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 187.82 kB │ gzip: 36.72 kB │ map: 397.50 kB
30
- dist/bundle.js 200.68 kB │ gzip: 37.35 kB │ map: 399.09 kB
31
- ✓ built in 758ms
29
+ dist/bundle.js 188.26 kB │ gzip: 36.79 kB │ map: 398.50 kB
30
+ dist/bundle.js 201.18 kB │ gzip: 37.42 kB │ map: 400.10 kB
31
+ ✓ built in 725ms
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.aaSeqCDR3Ref !== void 0 && ctx.args.abundanceRef !== void 0).output(
6158
- "cdr3Options",
6157
+ }).argsValid((ctx) => ctx.args.datasetRef !== void 0 && ctx.args.sequenceRef !== void 0).output(
6158
+ "datasetOptions",
6159
6159
  (ctx) => ctx.resultPool.getOptions(
6160
- (c2) => {
6161
- var _a, _b, _c, _d, _e, _f;
6162
- return f(c2) && c2.valueType === "String" && c2.name === "pl7.app/vdj/sequence" && ((_a = c2.domain) == null ? void 0 : _a["pl7.app/vdj/feature"]) === "CDR3" && ((_b = c2.domain) == null ? void 0 : _b["pl7.app/alphabet"]) === "aminoacid" && (!((_c = c2.domain) == null ? void 0 : _c["pl7.app/vdj/scClonotypeChain"]) || ((_d = c2.domain) == null ? void 0 : _d["pl7.app/vdj/scClonotypeChain"]) === "A") && (!((_e = c2.domain) == null ? void 0 : _e["pl7.app/vdj/scClonotypeChain/index"]) || ((_f = c2.domain) == null ? void 0 : _f["pl7.app/vdj/scClonotypeChain/index"]) === "primary");
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("abundanceOptions", (ctx) => {
6166
- const aaSeqCDR3Ref = ctx.args.aaSeqCDR3Ref;
6167
- if (aaSeqCDR3Ref === void 0) return void 0;
6168
- return ctx.resultPool.getCanonicalOptions({ main: aaSeqCDR3Ref }, {
6169
- axes: [{ name: "pl7.app/sampleId" }, { anchor: "main", idx: 0 }],
6170
- annotations: {
6171
- "pl7.app/isAbundance": "true",
6172
- "pl7.app/abundance/normalized": "true"
6173
- }
6174
- }, { ignoreMissingDomains: true });
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.aaSeqCDR3Ref === void 0) return void 0;
6177
- const spec = ctx.resultPool.getPColumnSpecByRef(ctx.args.aaSeqCDR3Ref);
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[0].name === "pl7.app/vdj/scClonotypeKey";
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();