@platforma-open/milaboratories.mixcr-amplicon-alignment.workflow 1.21.2 → 1.21.4

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/mixcr-amplicon-alignment/mixcr-amplicon-alignment/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-amplicon-alignment.workflow@1.21.2 build /home/runner/work/mixcr-amplicon-alignment/mixcr-amplicon-alignment/workflow
3
+ > @platforma-open/milaboratories.mixcr-amplicon-alignment.workflow@1.21.4 build /home/runner/work/mixcr-amplicon-alignment/mixcr-amplicon-alignment/workflow
4
4
  > rm -rf dist && pl-tengo check && pl-tengo build
5
5
 
6
6
  Processing "src/aggregate-by-clonotype-key.tpl.tengo"...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @platforma-open/milaboratories.mixcr-amplicon-alignment.workflow
2
2
 
3
+ ## 1.21.4
4
+
5
+ ### Patch Changes
6
+
7
+ - b93d463: fix memory for export
8
+
9
+ ## 1.21.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 637e770: fix memory for export
14
+
3
15
  ## 1.21.2
4
16
 
5
17
  ### Patch Changes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-amplicon-alignment.workflow",
3
- "version": "1.21.2",
3
+ "version": "1.21.4",
4
4
  "description": "MiXCR Amplicon Alignment Workflow",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@platforma-sdk/workflow-tengo": "5.10.1",
7
+ "@platforma-sdk/workflow-tengo": "5.11.0",
8
8
  "@platforma-open/milaboratories.software-mixcr": "4.7.0-317-develop",
9
9
  "@platforma-open/milaboratories.software-repseqio": "^2.5.0-13-master"
10
10
  },
11
11
  "devDependencies": {
12
- "@platforma-sdk/tengo-builder": "2.4.30"
12
+ "@platforma-sdk/tengo-builder": "2.5.1"
13
13
  },
14
14
  "scripts": {
15
15
  "build": "rm -rf dist && pl-tengo check && pl-tengo build",
@@ -13,6 +13,7 @@ pConstants := import("@platforma-sdk/workflow-tengo:pframes.constants")
13
13
  pt := import("@platforma-sdk/workflow-tengo:pt")
14
14
  qcReportColumns := import(":qc-report-columns")
15
15
 
16
+ math := import("math")
16
17
  json := import("json")
17
18
 
18
19
  self.defineOutputs("qcReportTable")
@@ -23,6 +24,7 @@ ptablerSw := assets.importSoftware("@platforma-open/milaboratories.software-ptab
23
24
 
24
25
  self.body(func(inputs) {
25
26
  clnsData := inputs.clnsData
27
+ perProcessMemGB := inputs.perProcessMemGB
26
28
  presetSpecForBack := inputs.presetSpecForBack
27
29
  sampleIdAxisSpec := inputs.sampleIdAxisSpec
28
30
  chains := inputs.chains
@@ -196,6 +198,15 @@ self.body(func(inputs) {
196
198
  // Join counts and overwrite totalClonotypes to reflect exported (productive) clones
197
199
  joinedDf := processedDf.join(aggregatedCounts, { how: "left", on: ["sampleId"] })
198
200
 
201
+ // Memory for downstream operations, linked to user override with hardcoded floors
202
+ baseMemGB := 64
203
+ if !is_undefined(perProcessMemGB) {
204
+ baseMemGB = perProcessMemGB
205
+ }
206
+ memGB := func(floorGB, divisor) {
207
+ return string(int(math.max(floorGB, baseMemGB / divisor))) + "GB"
208
+ }
209
+
199
210
  // Count clonotypes filtered by stop codons and out-of-frame per sample
200
211
  filterCountDfs := []
201
212
  mixcrChainsArg := text.join(chainsForMixcr, ",")
@@ -203,7 +214,7 @@ self.body(func(inputs) {
203
214
  sampleId := json.decode(key)[0]
204
215
  exportFiltersCmd := exec.builder().
205
216
  inMediumQueue().
206
- mem("16GiB").
217
+ mem(memGB(16, 3)).
207
218
  cpu(2).
208
219
  software(mixcrSw).
209
220
  env("MI_USE_SYSTEM_CA", "true").
@@ -196,7 +196,7 @@ self.body(func(inputs) {
196
196
  createExport := func(additionalAction) {
197
197
  mixcrCmdBuilder := exec.builder().
198
198
  inMediumQueue().
199
- mem(memGB(12, 2)).
199
+ mem(memGB(16, 3)).
200
200
  cpu(2).
201
201
  printErrStreamToStdout().
202
202
  software(mixcrSw).
@@ -357,6 +357,7 @@ self.body(func(inputs) {
357
357
  clonotypeTablesData: clonotypeTablesData,
358
358
  hasUmi: hasUMI,
359
359
  umiTags: umiTags,
360
+ perProcessMemGB: perProcessMemGB,
360
361
  productiveFeature: productiveFeature,
361
362
  stopCodonTypes: params.stopCodonTypes,
362
363
  stopCodonReplacements: params.stopCodonReplacements