@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.14.2 → 2.15.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/mixcr-clonotyping/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.14.2 build /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.15.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
@@ -1,21 +1,21 @@
1
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.14.2 test /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.15.0 test /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
4
4
  > vitest
5
5
 
6
6
 
7
7
   RUN  v2.1.8 /home/runner/work/mixcr-clonotyping/mixcr-clonotyping/workflow
8
8
 
9
- ✓ src/test/columns.test.ts (6 tests) 53783ms
10
- ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 13009ms
11
- ✓ checking preset for '10x-sc-xcr-vdj' 8376ms
12
- ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8245ms
13
- ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8167ms
14
- ✓ checking preset for 'rna-seq' 7998ms
15
- ✓ checking preset for 'generic-single-cell-gex' 7987ms
9
+ ✓ src/test/columns.test.ts (6 tests) 52445ms
10
+ ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 12503ms
11
+ ✓ checking preset for '10x-sc-xcr-vdj' 8220ms
12
+ ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8387ms
13
+ ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8138ms
14
+ ✓ checking preset for 'rna-seq' 7510ms
15
+ ✓ checking preset for 'generic-single-cell-gex' 7686ms
16
16
 
17
17
   Test Files  1 passed (1)
18
18
   Tests  6 passed (6)
19
-  Start at  08:20:54
20
-  Duration  54.58s (transform 43ms, setup 0ms, collect 565ms, tests 53.78s, environment 0ms, prepare 59ms)
19
+  Start at  14:46:56
20
+  Duration  53.25s (transform 43ms, setup 0ms, collect 570ms, tests 52.44s, environment 0ms, prepare 69ms)
21
21
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 20cd6f5: Exporting library if provided as file & attaching libraryId to clns output spec
8
+
3
9
  ## 2.14.2
4
10
 
5
11
  ### Patch Changes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-clonotyping-2.workflow",
3
- "version": "2.14.2",
3
+ "version": "2.15.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",
@@ -59,16 +59,19 @@ wf.body(func(args) {
59
59
  isLibraryFileGzipped := false
60
60
 
61
61
  library := false
62
+ libraryId := undefined
62
63
  species := args.species
63
64
  libraryImportHandle := undefined
64
65
  if !is_undefined(args.resolvedLibraryInput) {
65
66
  library = args.resolvedLibraryInput.data
67
+ libraryId = args.resolvedLibraryInput.spec["domain"]["pl7.app/vdj/libraryId"]
66
68
  librarySpec := args.resolvedLibraryInput.spec
67
69
  species = librarySpec["annotations"]["pl7.app/species"]
68
70
  } else if !is_undefined(args.libraryFile) {
69
71
  fImport := file.importFile(args.libraryFile)
70
72
  libraryImportHandle = fImport.handle
71
73
  library = fImport.file
74
+ libraryId = blockId
72
75
  species = args.customSpecies
73
76
  isLibraryFileGzipped = args.isLibraryFileGzipped
74
77
  }
@@ -110,6 +113,7 @@ wf.body(func(args) {
110
113
  receptorsOrChains: receptorsOrChains,
111
114
  limitInput: limitInput,
112
115
  blockId: blockId,
116
+ libraryId: libraryId,
113
117
  presetCommonName: args.presetCommonName,
114
118
  isLibraryFileGzipped: isLibraryFileGzipped
115
119
  })
@@ -131,6 +135,26 @@ wf.body(func(args) {
131
135
  }
132
136
  }
133
137
 
138
+ if !is_undefined(args.libraryFile) {
139
+ // If library file is provided, we need to exported it for native mixcr blocks to use it (i.e. SHM trees)
140
+ exports.library = {
141
+ data: library,
142
+ spec: {
143
+ kind: "File",
144
+ name: "pl7.app/vdj/library",
145
+ domain: {
146
+ "pl7.app/vdj/libraryId": libraryId // == blockId
147
+ },
148
+ annotations: {
149
+ "pl7.app/species": species,
150
+ "pl7.app/vdj/isLibrary": "true",
151
+ "pl7.app/vdj/libraryFormat": (isLibraryFileGzipped ? "repseqio.json.gz" : "repseqio.json"),
152
+ "pl7.app/label": "Library from MiXCR Clonotyping"
153
+ }
154
+ }
155
+ }
156
+ }
157
+
134
158
  outputs := {
135
159
  qc: pframes.exportColumnData(runMixcr.output("qc.data")),
136
160
  reports: pframes.exportColumnData(runMixcr.output("reports.data")),
@@ -62,6 +62,7 @@ self.body(func(inputs) {
62
62
  receptorsOrChains := params.receptorsOrChains
63
63
  limitInput := params.limitInput
64
64
  blockId := params.blockId
65
+ libraryId := params.libraryId
65
66
  presetCommonName := params.presetCommonName
66
67
  isLibraryFileGzipped := params.isLibraryFileGzipped
67
68
 
@@ -120,6 +121,9 @@ self.body(func(inputs) {
120
121
  "mixcr.com/umiTags": joinOrUndefined(presetSpecForBack.umiTags),
121
122
  "pl7.app/label": "MiXCR Clonesets"
122
123
  })
124
+ if libraryId {
125
+ clnsAnnotations["pl7.app/vdj/libraryId"] = libraryId
126
+ }
123
127
  if hasAssembleContigs {
124
128
  clnsAnnotations["mixcr.com/contigsAssembled"] = "true"
125
129
  }