@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.21.2 → 2.22.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/mixcr-clonotyping/mixcr-clonotyping/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.21.2 build /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.22.0 build /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
4
4
  > rm -rf dist && pl-tengo check && pl-tengo build
5
5
 
6
6
  info: Skipping unknown file type: test/columns.test.ts
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a65fef4: Custom settings for memory and CPU count added
8
+
3
9
  ## 2.21.2
4
10
 
5
11
  ### Patch Changes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-clonotyping-2.workflow",
3
- "version": "2.21.2",
3
+ "version": "2.22.0",
4
4
  "description": "Tengo-based template",
5
5
  "dependencies": {
6
6
  "@platforma-sdk/workflow-tengo": "^4.9.1",
@@ -56,6 +56,8 @@ wf.body(func(args) {
56
56
  }
57
57
 
58
58
  limitInput := args.limitInput
59
+ perProcessMemGB := args.perProcessMemGB
60
+ perProcessCPUs := args.perProcessCPUs
59
61
  isLibraryFileGzipped := false
60
62
 
61
63
  library := false
@@ -112,6 +114,8 @@ wf.body(func(args) {
112
114
  species: species,
113
115
  receptorsOrChains: receptorsOrChains,
114
116
  limitInput: limitInput,
117
+ perProcessMemGB: perProcessMemGB,
118
+ perProcessCPUs: perProcessCPUs,
115
119
  blockId: blockId,
116
120
  libraryId: libraryId,
117
121
  presetCommonName: args.presetCommonName,
@@ -31,6 +31,8 @@ self.body(func(inputs) {
31
31
  params := inputs.params
32
32
  species := params.species
33
33
  limitInput := params.limitInput
34
+ perProcessMemGB := inputs.perProcessMemGB
35
+ perProcessCPUs := inputs.perProcessCPUs
34
36
  fileExtension := params.fileExtension
35
37
  reports := params.reports
36
38
  isLibraryFileGzipped := params.isLibraryFileGzipped
@@ -68,11 +70,21 @@ self.body(func(inputs) {
68
70
  printErrStreamToStdout().
69
71
  env("MI_PROGRESS_PREFIX", progressPrefix).
70
72
  software(mixcrSw).
71
- cpu(16).
72
73
  secret("MI_LICENSE", "MI_LICENSE").
73
74
  arg("analyze").arg("--use-local-temp")
74
75
 
75
- if hasMiToolSteps {
76
+ // CPUs number per process
77
+ if !is_undefined(perProcessCPUs) {
78
+ mixcrCmdBuilder.cpu(perProcessCPUs)
79
+ } else {
80
+ mixcrCmdBuilder.cpu(16) // default CPUs number per sample
81
+ }
82
+
83
+ // Memory limit per process
84
+ if !is_undefined(perProcessMemGB) {
85
+ // memory per process was set in "Advanced Settings" block directly
86
+ mixcrCmdBuilder.mem(string(perProcessMemGB) + "GiB")
87
+ } else if hasMiToolSteps {
76
88
  // allow to use more memory for single cell analysis with mitool pre-
77
89
  mixcrCmdBuilder.mem("192GiB")
78
90
  } else if hasAssembleContigs || hasAssembleCells {
@@ -62,6 +62,8 @@ self.body(func(inputs) {
62
62
  // can be either receptors or chains
63
63
  receptorsOrChains := params.receptorsOrChains
64
64
  limitInput := params.limitInput
65
+ perProcessMemGB := params.perProcessMemGB
66
+ perProcessCPUs := params.perProcessCPUs
65
67
  blockId := params.blockId
66
68
  libraryId := params.libraryId
67
69
  presetCommonName := params.presetCommonName
@@ -262,7 +264,11 @@ self.body(func(inputs) {
262
264
  },
263
265
  library: library,
264
266
  presetContent: presetContent
265
- }
267
+ },
268
+ metaExtra: {
269
+ perProcessMemGB: perProcessMemGB,
270
+ perProcessCPUs: perProcessCPUs
271
+ }
266
272
  }
267
273
  )
268
274