@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.13.0 → 2.14.1

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
-  WARN  Issue while reading "/home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
1
+  WARN  Issue while reading "/home/runner/work/mixcr-clonotyping/mixcr-clonotyping/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.13.0 build /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.14.1 build /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/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
@@ -19,17 +19,17 @@ Processing "src/test/columns.test.tpl.tengo"...
19
19
  No syntax errors found.
20
20
  info: Skipping unknown file type: test/columns.test.ts
21
21
  info: Compiling 'dist'...
22
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/lib/calculate-export-specs.lib.tengo
23
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/aggregate-by-clonotype-key.plj.gz
24
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/calculate-preset-info.plj.gz
25
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/list-presets.plj.gz
26
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/mixcr-analyze.plj.gz
27
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/mixcr-export.plj.gz
28
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/prerun.plj.gz
29
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/process-single-cell.plj.gz
30
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/process.plj.gz
31
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/test.columns-calculate.plj.gz
32
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/test.columns.test.plj.gz
33
- info: - writing /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow/dist/tengo/tpl/main.plj.gz
22
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/lib/calculate-export-specs.lib.tengo
23
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/aggregate-by-clonotype-key.plj.gz
24
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/calculate-preset-info.plj.gz
25
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/list-presets.plj.gz
26
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/mixcr-analyze.plj.gz
27
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/mixcr-export.plj.gz
28
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/prerun.plj.gz
29
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/process-single-cell.plj.gz
30
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/process.plj.gz
31
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/test.columns-calculate.plj.gz
32
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/test.columns.test.plj.gz
33
+ info: - writing /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow/dist/tengo/tpl/main.plj.gz
34
34
  info: Template Pack build done.
35
35
  info: Template Pack build done.
@@ -1,21 +1,36 @@
1
-  WARN  Issue while reading "/home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
1
+  WARN  Issue while reading "/home/runner/work/mixcr-clonotyping/mixcr-clonotyping/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.13.0 test /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.14.1 test /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
4
4
  > vitest
5
5
 
6
6
 
7
-  RUN  v2.1.8 /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
7
+  RUN  v2.1.8 /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
8
8
 
9
- ✓ src/test/columns.test.ts (6 tests) 53338ms
10
- ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 13323ms
11
- ✓ checking preset for '10x-sc-xcr-vdj' 8239ms
12
- ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8196ms
13
- ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8030ms
14
- ✓ checking preset for 'rna-seq' 7570ms
15
- ✓ checking preset for 'generic-single-cell-gex' 7979ms
9
+ stdout | src/test/columns.test.ts > checking preset for 'milab-human-dna-xcr-7genes-multiplex'
10
+ {
11
+ type: 'ok',
12
+ value: undefined,
13
+ stable: false,
14
+ uTag: 'fc1997c6-5b87-4c86-8aa6-0ea9d2014b38',
15
+ unstableMarker: 'field_not_resolved:exportSpecs'
16
+ }
17
+
18
+ stdout | src/test/columns.test.ts > checking preset for 'milab-human-dna-xcr-7genes-multiplex'
19
+ TEST FAILED SO ALTERNATIVE ROOT IS PRESETVED IN PL: test_1745591248072_67adc363-cf48-41ba-82a1-fe7e00142ad8 (NG:0x82)
20
+
21
+ stdout | src/test/columns.test.ts > checking preset for 'milab-human-dna-xcr-7genes-multiplex'
22
+ TEST FAILED SO ALTERNATIVE ROOT IS PRESETVED IN PL: test_1745591269056_11ea8a8b-adb0-49ca-b74e-a9b287bc1ae3 (NG:0x138)
23
+
24
+ ✓ src/test/columns.test.ts (6 tests) 67551ms
25
+ ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 27568ms
26
+ ✓ checking preset for '10x-sc-xcr-vdj' 8418ms
27
+ ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8182ms
28
+ ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 7939ms
29
+ ✓ checking preset for 'rna-seq' 7749ms
30
+ ✓ checking preset for 'generic-single-cell-gex' 7693ms
16
31
 
17
32
   Test Files  1 passed (1)
18
33
   Tests  6 passed (6)
19
-  Start at  16:55:46
20
-  Duration  54.14s (transform 43ms, setup 0ms, collect 576ms, tests 53.34s, environment 0ms, prepare 59ms)
34
+  Start at  14:27:27
35
+  Duration  68.34s (transform 42ms, setup 0ms, collect 576ms, tests 67.55s, environment 0ms, prepare 60ms)
21
36
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 748457a: Upgrade mixcr version to prevent crash with custom library with custom C gene names
8
+
9
+ ## 2.14.0
10
+
11
+ ### Minor Changes
12
+
13
+ - dc86a17: single cell export and removing columns for secondary clones except CDR3 aa
14
+
3
15
  ## 2.13.0
4
16
 
5
17
  ### Minor Changes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-clonotyping-2.workflow",
3
- "version": "2.13.0",
3
+ "version": "2.14.1",
4
4
  "description": "Tengo-based template",
5
5
  "dependencies": {
6
6
  "@platforma-sdk/workflow-tengo": "^4.1.2",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "devDependencies": {
11
11
  "@platforma-sdk/tengo-builder": "^2.1.0",
12
- "@platforma-open/milaboratories.software-mixcr": "4.7.0-164-develop",
12
+ "@platforma-open/milaboratories.software-mixcr": "4.7.0-165-develop",
13
13
  "@platforma-open/milaboratories.software-ptransform": "^1.3.1",
14
14
  "@platforma-sdk/test": "^1.29.17",
15
15
  "vitest": "~2.1.8",
@@ -75,7 +75,8 @@ self.body(func(inputs) {
75
75
 
76
76
  if is_undefined(clonotypeKeyColumns) {
77
77
  result.tsv = unprocessedTsv
78
- } else {
78
+
79
+ } else if is_undefined(cellTagColumns) {
79
80
  hashCmdBuilder := exec.builder().
80
81
  printErrStreamToStdout().
81
82
  software(hashColumnSw).
@@ -96,6 +97,28 @@ self.body(func(inputs) {
96
97
 
97
98
  processedTsv := hashCmd.getFile("output.tsv")
98
99
 
100
+ result.tsv = processedTsv
101
+
102
+ } else {
103
+ pWorkflow := {
104
+ steps: [ {
105
+ type: "combine_columns_as_json",
106
+ src: clonotypeKeyColumns,
107
+ dst: "clonotypeKey"
108
+ } ]
109
+ }
110
+
111
+ aggregateCmd := exec.builder().
112
+ printErrStreamToStdout().
113
+ software(ptransformSw).
114
+ arg("--workflow").arg("wf.json").
115
+ writeFile("wf.json", json.encode(pWorkflow)).
116
+ arg("input.tsv").addFile("input.tsv", unprocessedTsv).
117
+ arg("output.tsv").saveFile("output.tsv").
118
+ run()
119
+
120
+ processedTsv := aggregateCmd.getFile("output.tsv")
121
+
99
122
  result.tsv = processedTsv
100
123
  }
101
124
 
@@ -472,6 +472,13 @@ self.body(func(inputs) {
472
472
  path: ["clonotypeTsv"]
473
473
  } ]
474
474
 
475
+ //removing columns from secondary chain except aaSeqCDR3
476
+ columnsSpecPerClonotypeSecondary := []
477
+ for col in columnsSpecPerClonotype {
478
+ if col.column == "aaSeqCDR3" {
479
+ columnsSpecPerClonotypeSecondary += [ col ]
480
+ }
481
+ }
475
482
  for chainIdx in [0, 1] {
476
483
  // "A" chain is always the one that is more diverse
477
484
  chainLetterU := ["A", "B"][chainIdx]
@@ -517,7 +524,7 @@ self.body(func(inputs) {
517
524
  xsvType: "tsv",
518
525
  settings: {
519
526
  axes: axesByScClonotypeKeyWithReceptor,
520
- columns: transformSpecs(columnsSpecPerClonotype, {
527
+ columns: transformSpecs(isPrimary ? columnsSpecPerClonotype : columnsSpecPerClonotypeSecondary, {
521
528
  spec: {
522
529
  domain: {
523
530
  "pl7.app/vdj/scClonotypeChain": chainLetterU,