@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.13.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.13.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.13.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) 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
+ ✓ 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  16:55:46
20
-  Duration  54.14s (transform 43ms, setup 0ms, collect 576ms, tests 53.34s, environment 0ms, prepare 59ms)
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,11 @@
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
+
3
9
  ## 2.13.0
4
10
 
5
11
  ### 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.0",
4
4
  "description": "Tengo-based template",
5
5
  "dependencies": {
6
6
  "@platforma-sdk/workflow-tengo": "^4.1.2",
@@ -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,