@platforma-open/milaboratories.clonotype-clustering.model 2.0.1 → 2.1.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.1.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
+ ESM dist/index.js 2.91 KB
15
+ ESM dist/index.js.map 6.79 KB
16
+ ESM ⚡️ Build success in 132ms
17
+ CJS dist/index.cjs 2.91 KB
18
+ CJS dist/index.cjs.map 6.86 KB
19
+ CJS ⚡️ Build success in 132ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 2189ms
21
+ DTS ⚡️ Build success in 2186ms
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 187.85 kB │ gzip: 36.75 kB │ map: 397.86 kB
30
+ dist/bundle.js 200.75 kB │ gzip: 37.38 kB │ map: 399.45 kB
31
+ ✓ built in 761ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.clonotype-clustering.model
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fb91da8: Calculate abundance automatically; Add ability to specify sequence/
8
+
3
9
  ## 2.0.1
4
10
 
5
11
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -6154,31 +6154,54 @@
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
+ const ref = ctx.args.datasetRef;
6180
+ if (ref === void 0) return void 0;
6181
+ const sequenceMatchers = [];
6182
+ for (const feature of ["CDR3", "VDJRegion"]) {
6183
+ sequenceMatchers.push({
6184
+ axes: [{ anchor: "main", idx: 1 }],
6185
+ name: "pl7.app/vdj/sequence",
6186
+ domain: {
6187
+ "pl7.app/vdj/feature": feature,
6188
+ "pl7.app/vdj/scClonotypeChain": "A",
6189
+ "pl7.app/vdj/scClonotypeChain/index": "primary"
6190
+ }
6191
+ });
6192
+ }
6193
+ return ctx.resultPool.getCanonicalOptions(
6194
+ { main: ref },
6195
+ sequenceMatchers,
6196
+ { ignoreMissingDomains: true }
6197
+ );
6175
6198
  }).output("isSingleCell", (ctx) => {
6176
- if (ctx.args.aaSeqCDR3Ref === void 0) return void 0;
6177
- const spec = ctx.resultPool.getPColumnSpecByRef(ctx.args.aaSeqCDR3Ref);
6199
+ if (ctx.args.datasetRef === void 0) return void 0;
6200
+ const spec = ctx.resultPool.getPColumnSpecByRef(ctx.args.datasetRef);
6178
6201
  if (spec === void 0) {
6179
6202
  return void 0;
6180
6203
  }
6181
- return spec.axesSpec[0].name === "pl7.app/vdj/scClonotypeKey";
6204
+ return spec.axesSpec[1].name === "pl7.app/vdj/scClonotypeKey";
6182
6205
  }).output("clustersTable", (ctx) => {
6183
6206
  var _a, _b, _c;
6184
6207
  const pCols = (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("clustersPf")) == null ? void 0 : _b.getPColumns();