@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.10.1 → 2.12.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-2/mixcr-clonotyping-2/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.10.1 build /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.12.0 build /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/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
@@ -1,21 +1,21 @@
1
1
   WARN  Issue while reading "/home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.10.1 test /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.12.0 test /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
4
4
  > vitest
5
5
 
6
6
 
7
7
   RUN  v2.1.8 /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
8
8
 
9
- ✓ src/test/columns.test.ts (6 tests) 53265ms
10
- ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 12934ms
11
- ✓ checking preset for '10x-sc-xcr-vdj' 8419ms
12
- ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8256ms
13
- ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8191ms
14
- ✓ checking preset for 'rna-seq' 7730ms
15
- ✓ checking preset for 'generic-single-cell-gex' 7734ms
9
+ ✓ src/test/columns.test.ts (6 tests) 54404ms
10
+ ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 12330ms
11
+ ✓ checking preset for '10x-sc-xcr-vdj' 8645ms
12
+ ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8791ms
13
+ ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8369ms
14
+ ✓ checking preset for 'rna-seq' 7949ms
15
+ ✓ checking preset for 'generic-single-cell-gex' 8319ms
16
16
 
17
17
   Test Files  1 passed (1)
18
18
   Tests  6 passed (6)
19
-  Start at  15:22:19
20
-  Duration  54.10s (transform 42ms, setup 0ms, collect 592ms, tests 53.27s, environment 0ms, prepare 65ms)
19
+  Start at  10:21:30
20
+  Duration  55.25s (transform 47ms, setup 0ms, collect 610ms, tests 54.40s, environment 0ms, prepare 67ms)
21
21
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 90a29d2: Fix mixcr-analyze template hash
8
+
9
+ ### Patch Changes
10
+
11
+ - 90a29d2: SDK upgrade
12
+ - Updated dependencies [18e0e70]
13
+ - Updated dependencies [90a29d2]
14
+ - @platforma-open/milaboratories.mixcr-clonotyping-2.hash-column@1.1.1
15
+ - @platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts@1.1.3
16
+
17
+ ## 2.11.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 0db1bdf: Migration to hash-based cloonotype keys
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [0db1bdf]
26
+ - @platforma-open/milaboratories.mixcr-clonotyping-2.hash-column@1.1.0
27
+
3
28
  ## 2.10.1
4
29
 
5
30
  ### Patch Changes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-clonotyping-2.workflow",
3
- "version": "2.10.1",
3
+ "version": "2.12.0",
4
4
  "description": "Tengo-based template",
5
5
  "dependencies": {
6
- "@platforma-sdk/workflow-tengo": "^4.1.0",
7
- "@platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts": "1.1.2"
6
+ "@platforma-sdk/workflow-tengo": "^4.1.2",
7
+ "@platforma-open/milaboratories.mixcr-clonotyping-2.hash-column": "1.1.1",
8
+ "@platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts": "1.1.3"
8
9
  },
9
10
  "devDependencies": {
10
11
  "@platforma-sdk/tengo-builder": "^2.1.0",
11
12
  "@platforma-open/milaboratories.software-mixcr": "4.7.0-150-develop",
12
13
  "@platforma-open/milaboratories.software-ptransform": "^1.3.1",
13
- "@platforma-sdk/test": "^1.29.8",
14
- "vitest": "^2.1.8",
14
+ "@platforma-sdk/test": "^1.29.17",
15
+ "vitest": "~2.1.8",
15
16
  "typescript": "~5.5.4"
16
17
  },
17
18
  "scripts": {
@@ -1,3 +1,5 @@
1
+ //tengo:hash_override D70EDB25-6FF6-4615-966D-B79B04B5751C
2
+
1
3
  // mixcr analyze
2
4
 
3
5
  self := import("@platforma-sdk/workflow-tengo:tpl")
@@ -11,6 +11,7 @@ self.defineOutputs("tsv", "tsvForSingleCell")
11
11
 
12
12
  mixcrSw := assets.importSoftware("@platforma-open/milaboratories.software-mixcr:low-memory")
13
13
  ptransformSw := assets.importSoftware("@platforma-open/milaboratories.software-ptransform:main")
14
+ hashColumnSw := assets.importSoftware("@platforma-open/milaboratories.mixcr-clonotyping-2.hash-column:main")
14
15
 
15
16
  self.body(func(inputs) {
16
17
  clnsFile := inputs[pConstants.VALUE_FIELD_NAME]
@@ -75,25 +76,25 @@ self.body(func(inputs) {
75
76
  if is_undefined(clonotypeKeyColumns) {
76
77
  result.tsv = unprocessedTsv
77
78
  } else {
78
- // Adding clonotypeKey column
79
- pWorkflow := {
80
- steps: [ {
81
- type: "combine_columns_as_json",
82
- src: clonotypeKeyColumns,
83
- dst: "clonotypeKey"
84
- } ]
79
+ hashCmdBuilder := exec.builder().
80
+ printErrStreamToStdout().
81
+ software(hashColumnSw).
82
+ arg("--input-table").arg("input.tsv").
83
+ addFile("input.tsv", unprocessedTsv).
84
+ arg("--output-table").arg("output.tsv").
85
+ arg("--calculate")
86
+
87
+ for col in clonotypeKeyColumns {
88
+ hashCmdBuilder.arg(col)
85
89
  }
86
90
 
87
- aggregateCmd := exec.builder().
88
- printErrStreamToStdout().
89
- software(ptransformSw).
90
- arg("--workflow").arg("wf.json").
91
- writeFile("wf.json", json.encode(pWorkflow)).
92
- arg("input.tsv").addFile("input.tsv", unprocessedTsv).
93
- arg("output.tsv").saveFile("output.tsv").
91
+ hashCmdBuilder.arg("clonotypeKey")
92
+
93
+ hashCmd := hashCmdBuilder.
94
+ saveFile("output.tsv").
94
95
  run()
95
96
 
96
- processedTsv := aggregateCmd.getFile("output.tsv")
97
+ processedTsv := hashCmd.getFile("output.tsv")
97
98
 
98
99
  result.tsv = processedTsv
99
100
  }
@@ -141,6 +142,33 @@ self.body(func(inputs) {
141
142
  run()
142
143
 
143
144
  result.tsvForSingleCell = aggregateCmd.getFile("output.tsv")
145
+
146
+ // uncomment this to use hashes
147
+
148
+ // hashCmdBuilderSingleCell := exec.builder().
149
+ // printErrStreamToStdout().
150
+ // software(hashColumnSw).
151
+ // arg("--input-table").arg("input.tsv").
152
+ // addFile("input.tsv", unprocessedTsvForSingleCell).
153
+ // arg("--output-table").arg("output.tsv")
154
+
155
+ // hashCmdBuilderSingleCell.arg("--calculate")
156
+ // for col in clonotypeKeyColumns {
157
+ // hashCmdBuilderSingleCell.arg(col)
158
+ // }
159
+ // hashCmdBuilderSingleCell.arg("clonotypeKey")
160
+
161
+ // hashCmdBuilderSingleCell.arg("--calculate")
162
+ // for col in cellTagColumns {
163
+ // hashCmdBuilderSingleCell.arg(col)
164
+ // }
165
+ // hashCmdBuilderSingleCell.arg("cellTag")
166
+
167
+ // hashCmdSingleCell := hashCmdBuilderSingleCell.
168
+ // saveFile("output.tsv").
169
+ // run()
170
+
171
+ // result.tsvForSingleCell = hashCmdSingleCell.getFile("output.tsv")
144
172
  }
145
173
 
146
174
  return result