@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.12.0 → 2.14.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
-  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.12.0 build /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.14.0 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,21 @@
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.12.0 test /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.14.0 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) 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
9
+ ✓ src/test/columns.test.ts (6 tests) 52804ms
10
+ ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 12471ms
11
+ ✓ checking preset for '10x-sc-xcr-vdj' 8426ms
12
+ ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8251ms
13
+ ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 7970ms
14
+ ✓ checking preset for 'rna-seq' 7931ms
15
+ ✓ checking preset for 'generic-single-cell-gex' 7754ms
16
16
 
17
17
   Test Files  1 passed (1)
18
18
   Tests  6 passed (6)
19
-  Start at  10:21:30
20
-  Duration  55.25s (transform 47ms, setup 0ms, collect 610ms, tests 54.40s, environment 0ms, prepare 67ms)
19
+  Start at  14:04:47
20
+  Duration  53.61s (transform 42ms, setup 0ms, collect 573ms, tests 52.80s, environment 0ms, prepare 63ms)
21
21
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - dc86a17: single cell export and removing columns for secondary clones except CDR3 aa
8
+
9
+ ## 2.13.0
10
+
11
+ ### Minor Changes
12
+
13
+ - b1f6427: species added, visibility of chain columns set to optional, mixcr updated to 4.7.0-164-develop
14
+
3
15
  ## 2.12.0
4
16
 
5
17
  ### Minor Changes
@@ -568,7 +568,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
568
568
  spec: {
569
569
  valueType: "String",
570
570
  name: "pl7.app/vdj/chain",
571
- annotations: a(orderP, true, {
571
+ annotations: a(orderP, false, {
572
572
  "pl7.app/label": "Chain",
573
573
  "pl7.app/isDiscreteFilter": "true",
574
574
  "pl7.app/discreteValues": "['TRA','TRB','TRG','TRD','IGH','IGK','IGL']"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-clonotyping-2.workflow",
3
- "version": "2.12.0",
3
+ "version": "2.14.0",
4
4
  "description": "Tengo-based template",
5
5
  "dependencies": {
6
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"
7
+ "@platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts": "1.1.3",
8
+ "@platforma-open/milaboratories.mixcr-clonotyping-2.hash-column": "1.1.1"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@platforma-sdk/tengo-builder": "^2.1.0",
12
- "@platforma-open/milaboratories.software-mixcr": "4.7.0-150-develop",
12
+ "@platforma-open/milaboratories.software-mixcr": "4.7.0-164-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",
@@ -568,7 +568,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
568
568
  spec: {
569
569
  valueType: "String",
570
570
  name: "pl7.app/vdj/chain",
571
- annotations: a(orderP, true, {
571
+ annotations: a(orderP, false, {
572
572
  "pl7.app/label": "Chain",
573
573
  "pl7.app/isDiscreteFilter": "true",
574
574
  "pl7.app/discreteValues": "['TRA','TRB','TRG','TRD','IGH','IGK','IGL']"
@@ -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,