@platforma-open/milaboratories.mixcr-shm-trees.workflow 2.3.3 → 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,11 @@
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
+
3
9
  ## 2.3.3
4
10
 
5
11
  ### 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.3",
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