@platforma-open/milaboratories.clonotype-enrichment.model 3.1.2 → 3.2.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.
@@ -1,16 +1,16 @@
1
1
   WARN  Issue while reading "/home/runner/work/clonotype-enrichment/clonotype-enrichment/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.clonotype-enrichment.model@3.1.2 build /home/runner/work/clonotype-enrichment/clonotype-enrichment/model
3
+ > @platforma-open/milaboratories.clonotype-enrichment.model@3.2.1 build /home/runner/work/clonotype-enrichment/clonotype-enrichment/model
4
4
  > ts-builder build --target block-model && block-tools build-model
5
5
 
6
6
  Building block-model project...
7
7
  ↳ rollup -c /home/runner/work/clonotype-enrichment/clonotype-enrichment/node_modules/.pnpm/@milaboratories+ts-builder@1.2.9_@types+node@24.5.2_sass-embedded@1.89.0_tslib@2.8.1_yaml@2.8.2/node_modules/@milaboratories/ts-builder/dist/configs/rollup.block-model.config.js
8
8
  
9
9
  ./src/index.ts → dist, dist...
10
- created dist, dist in 3.4s
10
+ created dist, dist in 3s
11
11
  
12
12
  ./src/index.ts → dist...
13
13
  (!) Circular dependency
14
14
  ../node_modules/.pnpm/@platforma-sdk+model@1.53.15/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js -> ../node_modules/.pnpm/@platforma-sdk+model@1.53.15/node_modules/@platforma-sdk/model/dist/pframe_utils/columns.js -> ../node_modules/.pnpm/@platforma-sdk+model@1.53.15/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js
15
- created dist in 4.3s
15
+ created dist in 3.6s
16
16
  Build completed successfully
@@ -1,5 +1,5 @@
1
1
   WARN  Issue while reading "/home/runner/work/clonotype-enrichment/clonotype-enrichment/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.clonotype-enrichment.model@3.1.2 lint /home/runner/work/clonotype-enrichment/clonotype-enrichment/model
3
+ > @platforma-open/milaboratories.clonotype-enrichment.model@3.2.1 lint /home/runner/work/clonotype-enrichment/clonotype-enrichment/model
4
4
  > eslint .
5
5
 
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/clonotype-enrichment/clonotype-enrichment/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.clonotype-enrichment.model@3.1.2 type-check /home/runner/work/clonotype-enrichment/clonotype-enrichment/model
3
+ > @platforma-open/milaboratories.clonotype-enrichment.model@3.2.1 type-check /home/runner/work/clonotype-enrichment/clonotype-enrichment/model
4
4
  > ts-builder type-check --target block-model
5
5
 
6
6
  ↳ tsc --noEmit --project ./tsconfig.json --customConditions ,
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @platforma-open/milaboratories.clonotype-enrichment.model
2
2
 
3
+ ## 3.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - bf55aca: Modify default pseudocount
8
+
9
+ ## 3.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 8956099: Library selection by metadata and bug fixes
14
+
3
15
  ## 3.1.2
4
16
 
5
17
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -8652,6 +8652,7 @@
8652
8652
  rounds: [],
8653
8653
  logic: 'OR',
8654
8654
  },
8655
+ excludeSequencedLibrary: true,
8655
8656
  },
8656
8657
  additionalEnrichmentExports: [],
8657
8658
  antigenControlConfig: {
@@ -8663,12 +8664,12 @@
8663
8664
  singleControlFrequencyThreshold: 0.01,
8664
8665
  controlConditionsOrder: [],
8665
8666
  sequencedLibraryEnabled: false,
8666
- sequencedLibrarySampleId: undefined,
8667
+ sequencedLibraryAntigen: undefined,
8667
8668
  hasSingleConditionNegativeControl: false,
8668
8669
  hasMultiConditionNegativeControl: false,
8669
8670
  },
8670
8671
  enrichmentThreshold: 2.0,
8671
- pseudoCount: 100,
8672
+ pseudoCount: 1,
8672
8673
  })
8673
8674
  .withUiState({
8674
8675
  tableState: createPlDataTableStateV2(),
@@ -8733,6 +8734,16 @@
8733
8734
  || antigenControlConfig.singleControlFrequencyThreshold === undefined)
8734
8735
  return false;
8735
8736
  }
8737
+ if (antigenControlConfig.sequencedLibraryEnabled) {
8738
+ if (!antigenControlConfig.sequencedLibraryAntigen)
8739
+ return false;
8740
+ if (conditionOrder.length === 0)
8741
+ return false; // no conditions to compare to
8742
+ }
8743
+ else {
8744
+ if (conditionOrder.length <= 1)
8745
+ return false; // no conditions to compare to
8746
+ }
8736
8747
  return true;
8737
8748
  })
8738
8749
  .output('abundanceOptions', (ctx) => ctx.resultPool.getOptions([{
@@ -8808,16 +8819,6 @@
8808
8819
  antigenColId = antigenCols?.[0]?.id;
8809
8820
  }
8810
8821
  return { conditionColId, antigenColId };
8811
- })
8812
- // Sample id → label map for all datasets from sample Samples & Data block
8813
- .output('sampleLabels', (ctx) => {
8814
- const { abundanceRef: anchor } = ctx.args;
8815
- if (!anchor)
8816
- return undefined;
8817
- const spec = ctx.resultPool.getPColumnSpecByRef(anchor);
8818
- if (!spec || !spec.axesSpec[0])
8819
- return undefined;
8820
- return ctx.resultPool.findLabels(spec.axesSpec[0]);
8821
8822
  })
8822
8823
  // Get only the sample IDs from the selected abundance column
8823
8824
  .output('sampleIds', (ctx) => {
@@ -8971,14 +8972,13 @@
8971
8972
  { type: 'link', href: '/stacked', label: 'Frequency Bar Plot' },
8972
8973
  ];
8973
8974
  if (ctx.args.antigenControlConfig.controlEnabled) {
8974
- if (ctx.args.antigenControlConfig.hasMultiConditionNegativeControl
8975
- && !(ctx.args.antigenControlConfig.sequencedLibraryEnabled === false
8975
+ if (ctx.args.antigenControlConfig.controlConditionsOrder.length > 1
8976
+ || (ctx.args.antigenControlConfig.sequencedLibraryEnabled === true
8976
8977
  && ctx.args.antigenControlConfig.controlConditionsOrder.length === 1)) {
8977
8978
  sections.push({ type: 'link', href: '/scatter', label: 'Control Scatter Plot' });
8978
8979
  }
8979
- if (ctx.args.antigenControlConfig.hasSingleConditionNegativeControl
8980
- || (ctx.args.antigenControlConfig.sequencedLibraryEnabled === false
8981
- && ctx.args.antigenControlConfig.controlConditionsOrder.length === 1)) {
8980
+ if (ctx.args.antigenControlConfig.sequencedLibraryEnabled === false
8981
+ && ctx.args.antigenControlConfig.controlConditionsOrder.length === 1) {
8982
8982
  sections.push({ type: 'link', href: '/box', label: 'Control Box Plot' });
8983
8983
  }
8984
8984
  }