@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.10.1 → 2.11.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.11.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.11.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) 52684ms
10
+ ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 12698ms
11
+ ✓ checking preset for '10x-sc-xcr-vdj' 8369ms
12
+ ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8001ms
13
+ ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 7935ms
14
+ ✓ checking preset for 'rna-seq' 7924ms
15
+ ✓ checking preset for 'generic-single-cell-gex' 7755ms
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  12:39:22
20
+  Duration  53.50s (transform 41ms, setup 0ms, collect 587ms, tests 52.68s, environment 0ms, prepare 62ms)
21
21
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0db1bdf: Migration to hash-based cloonotype keys
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [0db1bdf]
12
+ - @platforma-open/milaboratories.mixcr-clonotyping-2.hash-column@1.1.0
13
+
3
14
  ## 2.10.1
4
15
 
5
16
  ### 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.11.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.1",
7
+ "@platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts": "1.1.2",
8
+ "@platforma-open/milaboratories.mixcr-clonotyping-2.hash-column": "1.1.0"
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.12",
15
+ "vitest": "~2.1.8",
15
16
  "typescript": "~5.5.4"
16
17
  },
17
18
  "scripts": {
@@ -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