@platforma-open/milaboratories.mixcr-shm-trees.workflow 3.6.0 → 3.7.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-shm-trees/mixcr-shm-trees/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-shm-trees.workflow@3.6.0 build /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow
3
+ > @platforma-open/milaboratories.mixcr-shm-trees.workflow@3.7.0 build /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow
4
4
  > rm -rf dist && pl-tengo check && pl-tengo build
5
5
 
6
6
  Processing "src/export-settings.lib.tengo"...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @platforma-open/milaboratories.mixcr-shm-trees.workflow
2
2
 
3
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cf34335: Fix to work with built-in library
8
+
9
+ ## 3.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 9e53ea9: Fix for await criteria
14
+
3
15
  ## 3.6.0
4
16
 
5
17
  ### Minor Changes
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-shm-trees.workflow",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "type": "module",
5
5
  "description": "Tengo-based template",
6
6
  "//": {
7
7
  "build": "node ./scripts/build-static.mjs src/pfconv_params.json src/pfconv_params.lib.tengo && rm -rf dist && pl-tengo check && pl-tengo build && ./create_tags.sh"
8
8
  },
9
9
  "dependencies": {
10
- "@platforma-sdk/workflow-tengo": "^4.2.0"
10
+ "@platforma-sdk/workflow-tengo": "^4.2.2"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@platforma-sdk/tengo-builder": "^2.1.3",
14
- "@platforma-open/milaboratories.software-mixcr": "4.7.0-139-develop",
14
+ "@platforma-open/milaboratories.software-mixcr": "4.7.0-165-develop",
15
15
  "@platforma-open/milaboratories.software-mitool": "2.3.1-5-main",
16
16
  "@platforma-open/milaboratories.software-ptransform": "^1.3.1",
17
- "@platforma-sdk/test": "^1.30.4",
17
+ "@platforma-sdk/test": "^1.30.9",
18
18
  "vitest": "~2.1.8",
19
19
  "typescript": "~5.6.3"
20
20
  },
@@ -31,9 +31,6 @@ wf.body(func(args) {
31
31
 
32
32
  donorColumn := wf.resolve(args.donorColumn)
33
33
 
34
- // The problem is that refs for data is not resolved.
35
- // To deal with it, we should call resolve resolve that will return feature.
36
- // Then to resolve feature we should call another templete where we will describe what's to wait
37
34
  results := render.createEphemeral(processTpl, {
38
35
  datasets: datasets,
39
36
  donorColumn: donorColumn,
@@ -21,7 +21,14 @@ self.awaitState("datasets", { wildcard: "*" }, "AllInputsSet")
21
21
  self.awaitState("datasets", { wildcard: "*" }, "data", "InputsLocked")
22
22
  // but we need spec already
23
23
  self.awaitState("datasets", { wildcard: "*" }, "spec", "ResourceReady")
24
- self.awaitState("library", "spec", "ResourceReady")
24
+
25
+ // Using match instead of exact name to make fields effectively optional,
26
+ // in cases where built-in library is used, null resource is passed as library.
27
+ // Match don't throw error if no fields matched, opposite to exact name.
28
+ self.awaitState("library", { match: "^spec$" }, "ResourceReady")
29
+ self.awaitState("library", { match: "^data$" }, "AllInputsSet") // change to InputsLocked after fix
30
+ // self.awaitState({ match: "^library$" }, "BQueryResultMulti")
31
+
25
32
  self.awaitState("donorColumn", "ResourceReady")
26
33
  self.awaitState("params", "ResourceReady")
27
34
 
@@ -36,10 +36,6 @@ self.body(func(inputs) {
36
36
  library := inputs.library
37
37
  libraryFormat := globalParams.libraryFormat
38
38
 
39
- // ll.print("__THE_LOG__ " + json.encode(datasetTypes))
40
- // ll.print("__THE_LOG__ " + json.encode(downsampling))
41
- // ll.print("__THE_LOG__ " + json.encode(libraryFormat))
42
-
43
39
  ll.assert(!is_undefined(datasetTypes), "datasetTypes undefined")
44
40
 
45
41
  addLibraryFile := func(cmdBuilder) {
@@ -119,8 +115,6 @@ self.body(func(inputs) {
119
115
  ll.panic("Unknown downsampling type: " + downsampling.type)
120
116
  }
121
117
 
122
- // ll.print("__THE_LOG__ " + downsamplingParam)
123
-
124
118
  for input in toProcess {
125
119
  if datasetTypes[input.clonotypingBlockId] == "bulk" {
126
120
  downsamplingCmdBuilder := exec.builder().
@@ -17,8 +17,11 @@ self.body(func(args) {
17
17
 
18
18
  for _, dataset in datasets {
19
19
  dsLibraryId := dataset.spec.annotations["pl7.app/vdj/libraryId"]
20
+ if is_undefined(dsLibraryId) {
21
+ dsLibraryId = ""
22
+ }
20
23
  if is_undefined(libraryId) {
21
- libraryId = !is_undefined(dsLibraryId) ? dsLibraryId : ""
24
+ libraryId = dsLibraryId
22
25
  } else {
23
26
  if libraryId != dsLibraryId {
24
27
  ll.panic("All datasets should have the same libraryId. Got " + libraryId + " and " + dsLibraryId)