@platforma-open/milaboratories.mixcr-shm-trees.workflow 2.3.2 → 2.3.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.
@@ -0,0 +1,19 @@
1
+  WARN  Issue while reading "/home/runner/work/mixcr-shm-trees/mixcr-shm-trees/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
+
3
+ > @platforma-open/milaboratories.mixcr-shm-trees.workflow@2.3.4 build /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow
4
+ > rm -rf dist && pl-tengo check && pl-tengo build
5
+
6
+ Processing "src/export-settings.lib.tengo"...
7
+ Processing "src/main.tpl.tengo"...
8
+ Processing "src/prepare-donor-column.lib.tengo"...
9
+ Processing "src/process.tpl.tengo"...
10
+ Processing "src/reconstruct-shm-trees.tpl.tengo"...
11
+ No syntax errors found.
12
+ info: Compiling 'dist'...
13
+ info: - writing /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow/dist/tengo/lib/export-settings.lib.tengo
14
+ info: - writing /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow/dist/tengo/lib/prepare-donor-column.lib.tengo
15
+ info: - writing /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow/dist/tengo/tpl/reconstruct-shm-trees.plj.gz
16
+ info: - writing /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow/dist/tengo/tpl/process.plj.gz
17
+ info: - writing /home/runner/work/mixcr-shm-trees/mixcr-shm-trees/workflow/dist/tengo/tpl/main.plj.gz
18
+ info:
19
+ info: Template Pack build done.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @platforma-open/milaboratories.mixcr-shm-trees.workflow
2
2
 
3
+ ## 2.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - ef7df65: SDK upgrade
8
+
9
+ ## 2.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 96a150e: Random seed added to main analysis routine
14
+
3
15
  ## 2.3.2
4
16
 
5
17
  ### Patch Changes
@@ -444,7 +444,7 @@ shmTreeNodesTableOptions := func(dataDescription) {
444
444
  // export data that is unique for clones, but not unique for a node
445
445
  // (different clones could be in the same topology node, for example, different time points)
446
446
  shmTreeNodesWithClonesTableOptions := func(dataDescription, donorColumn) {
447
- donorColumnSpec := donorColumn.get("spec").getDataAsJson()
447
+ donorColumnSpec := donorColumn.spec
448
448
 
449
449
  axes := []
450
450
  columns := []
@@ -20,7 +20,7 @@ groupDataByDonorId := func(donorColumn, datasets) {
20
20
  // axes[0]: sampleId
21
21
  // value: fileRef resource
22
22
 
23
- donorColumnSpec := donorColumn.get("spec").getDataAsJson()
23
+ donorColumnSpec := donorColumn.spec
24
24
 
25
25
  sampleIdAxis := donorColumnSpec.axesSpec[0]
26
26
 
@@ -53,7 +53,7 @@ groupDataByDonorId := func(donorColumn, datasets) {
53
53
  sampleToDonor := {}
54
54
 
55
55
  // columns with meta could be fetched as data direcctly
56
- for k, v in donorColumn.get("data").getDataAsJson()["data"] {
56
+ for k, v in donorColumn.data.getDataAsJson()["data"] {
57
57
  sampleId := json.decode(k)[0]
58
58
  sampleToDonor[sampleId] = v
59
59
  }
@@ -63,7 +63,7 @@ groupDataByDonorId := func(donorColumn, datasets) {
63
63
 
64
64
  // collect all the clns files that we have into pColumn
65
65
  for clonotypingBlockId, dataset in datasets {
66
- for sKey, fileRef in dataset.get("data").inputs() {
66
+ for sKey, fileRef in dataset.data.inputs() {
67
67
  sampleId := json.decode(sKey)[0]
68
68
  donor := sampleToDonor[sampleId]
69
69
  dataBuilder.createInputField(json.encode([donor, sampleId, clonotypingBlockId])).set(fileRef)
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-shm-trees.workflow",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "type": "module",
5
5
  "description": "Tengo-based template",
6
6
  "//": {
@@ -8,11 +8,11 @@
8
8
  },
9
9
  "devDependencies": {
10
10
  "@platforma-sdk/tengo-builder": "^1.17.3",
11
- "@platforma-sdk/workflow-tengo": "^2.6.0",
11
+ "@platforma-sdk/workflow-tengo": "^2.8.0",
12
12
  "@milaboratories/software-pframes-conv": "^2.1.2",
13
- "@platforma-open/milaboratories.software-small-binaries": "^1.14.6",
13
+ "@platforma-open/milaboratories.software-small-binaries": "^1.15.0",
14
14
  "@platforma-open/milaboratories.software-mixcr": "4.7.0-133-develop",
15
- "@platforma-sdk/test": "^1.17.0",
15
+ "@platforma-sdk/test": "^1.20.0",
16
16
  "vitest": "^2.1.8",
17
17
  "typescript": "~5.6.3"
18
18
  },
@@ -444,7 +444,7 @@ shmTreeNodesTableOptions := func(dataDescription) {
444
444
  // export data that is unique for clones, but not unique for a node
445
445
  // (different clones could be in the same topology node, for example, different time points)
446
446
  shmTreeNodesWithClonesTableOptions := func(dataDescription, donorColumn) {
447
- donorColumnSpec := donorColumn.get("spec").getDataAsJson()
447
+ donorColumnSpec := donorColumn.spec
448
448
 
449
449
  axes := []
450
450
  columns := []
@@ -20,7 +20,7 @@ groupDataByDonorId := func(donorColumn, datasets) {
20
20
  // axes[0]: sampleId
21
21
  // value: fileRef resource
22
22
 
23
- donorColumnSpec := donorColumn.get("spec").getDataAsJson()
23
+ donorColumnSpec := donorColumn.spec
24
24
 
25
25
  sampleIdAxis := donorColumnSpec.axesSpec[0]
26
26
 
@@ -53,7 +53,7 @@ groupDataByDonorId := func(donorColumn, datasets) {
53
53
  sampleToDonor := {}
54
54
 
55
55
  // columns with meta could be fetched as data direcctly
56
- for k, v in donorColumn.get("data").getDataAsJson()["data"] {
56
+ for k, v in donorColumn.data.getDataAsJson()["data"] {
57
57
  sampleId := json.decode(k)[0]
58
58
  sampleToDonor[sampleId] = v
59
59
  }
@@ -63,7 +63,7 @@ groupDataByDonorId := func(donorColumn, datasets) {
63
63
 
64
64
  // collect all the clns files that we have into pColumn
65
65
  for clonotypingBlockId, dataset in datasets {
66
- for sKey, fileRef in dataset.get("data").inputs() {
66
+ for sKey, fileRef in dataset.data.inputs() {
67
67
  sampleId := json.decode(sKey)[0]
68
68
  donor := sampleToDonor[sampleId]
69
69
  dataBuilder.createInputField(json.encode([donor, sampleId, clonotypingBlockId])).set(fileRef)
@@ -35,7 +35,9 @@ self.body(func(inputs) {
35
35
 
36
36
  assemblingFeature := ""
37
37
  for clonotypingBlockId, dataset in inputs.datasets {
38
- presetAnnotations := dataset.get("spec").getDataAsJson()["annotations"]
38
+ presetAnnotations := dataset.spec.annotations
39
+
40
+ ll.assert(!is_undefined(presetAnnotations), "No annotations in dataset specs")
39
41
 
40
42
  datasetTypes[clonotypingBlockId] = "bulk"
41
43
 
@@ -3,6 +3,7 @@ pConstants := import("@platforma-sdk/workflow-tengo:pframes.constants")
3
3
  ll := import("@platforma-sdk/workflow-tengo:ll")
4
4
  assets := import("@platforma-sdk/workflow-tengo:assets")
5
5
  exec := import("@platforma-sdk/workflow-tengo:exec")
6
+ times := import("times")
6
7
 
7
8
  json := import("json")
8
9
 
@@ -32,11 +33,13 @@ self.body(func(inputs) {
32
33
 
33
34
  ll.assert(!is_undefined(datasetTypes), "datasetTypes undefined")
34
35
 
36
+ seed := times.time_string(times.now())
37
+
35
38
  allelesCmdBuilder := exec.builder().
36
39
  printErrStreamToStdout().
37
40
  secret("MI_LICENSE", "MI_LICENSE").
38
41
  env("MI_PROGRESS_PREFIX", progressPrefix).
39
- env("SEED", "1").
42
+ env("SEED", seed).
40
43
  software(mixcrSw).
41
44
  arg("findAlleles").
42
45
  arg("--report").arg("report.txt").
@@ -120,6 +123,7 @@ self.body(func(inputs) {
120
123
  printErrStreamToStdout().
121
124
  secret("MI_LICENSE", "MI_LICENSE").
122
125
  env("MI_PROGRESS_PREFIX", progressPrefix).
126
+ env("SEED", seed).
123
127
  software(mixcrSw).
124
128
  arg("findShmTrees").
125
129
  arg("--report").arg("report.txt").
@@ -147,7 +151,6 @@ self.body(func(inputs) {
147
151
  printErrStreamToStdout().
148
152
  inLightQueue().
149
153
  secret("MI_LICENSE", "MI_LICENSE").
150
- env("MI_PROGRESS_PREFIX", progressPrefix).
151
154
  software(mixcrSw).
152
155
  arg("exportShmTrees")
153
156
 
@@ -169,7 +172,6 @@ self.body(func(inputs) {
169
172
  printErrStreamToStdout().
170
173
  inLightQueue().
171
174
  secret("MI_LICENSE", "MI_LICENSE").
172
- env("MI_PROGRESS_PREFIX", progressPrefix).
173
175
  software(mixcrSw).
174
176
  arg("exportShmTreesWithNodes")
175
177