@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.5.0 → 2.5.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
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.5.0 build /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.5.1 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.5.0 test /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.5.1 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) 53188ms
10
- ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 12934ms
11
- ✓ checking preset for '10x-sc-xcr-vdj' 8323ms
12
- ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8051ms
13
- ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8026ms
14
- ✓ checking preset for 'rna-seq' 7829ms
15
- ✓ checking preset for 'generic-single-cell-gex' 8023ms
9
+ ✓ src/test/columns.test.ts (6 tests) 55335ms
10
+ ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 13611ms
11
+ ✓ checking preset for '10x-sc-xcr-vdj' 8802ms
12
+ ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8358ms
13
+ ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8466ms
14
+ ✓ checking preset for 'rna-seq' 8068ms
15
+ ✓ checking preset for 'generic-single-cell-gex' 8028ms
16
16
 
17
17
   Test Files  1 passed (1)
18
18
   Tests  6 passed (6)
19
-  Start at  09:32:55
20
-  Duration  53.99s (transform 41ms, setup 0ms, collect 564ms, tests 53.19s, environment 0ms, prepare 60ms)
19
+  Start at  16:04:59
20
+  Duration  56.24s (transform 54ms, setup 0ms, collect 634ms, tests 55.34s, environment 0ms, prepare 77ms)
21
21
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fedc4ee: Added clonotype key label column for bulk data
8
+ - Updated dependencies [fedc4ee]
9
+ - @platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts@1.1.1
10
+
3
11
  ## 2.5.0
4
12
 
5
13
  ### Minor Changes
@@ -285,9 +285,10 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
285
285
  alphabet := isAminoAcid ? "aminoacid" : "nucleotide"
286
286
  alphabetShort := isAminoAcid ? "aa" : "nt"
287
287
  alphabetShortMixcr := isAminoAcid ? "aa" : "n"
288
+ columnName := alphabetShortMixcr + "Seq" + imputedU + featureU
288
289
  visibility := isSingleCell ? (featureU == "CDR3") && isAminoAcid : (featureU == "CDR3") || (featureU == assemblingFeature)
289
290
  columnsSpecPerClonotype += [ {
290
- column: alphabetShortMixcr + "Seq" + imputedU + featureU,
291
+ column: columnName,
291
292
  id: alphabetShortMixcr + "-seq-" + featureL + (isImputed ? "-imputed" : ""),
292
293
  naRegex: "region_not_covered",
293
294
  spec: {
@@ -303,28 +304,27 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
303
304
  })
304
305
  }
305
306
  } ]
306
- exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
307
- if !isImputed && !isAminoAcid {
308
- columnsSpecPerSample += [ {
309
- column: "minQual" + featureU,
310
- id: "min-qual-" + featureL,
311
- naRegex: "region_not_covered",
312
- spec: {
313
- name: "pl7.app/vdj/sequenceQuality",
314
- valueType: "Int",
315
- domain: {
316
- "pl7.app/vdj/quality": "minQuality",
317
- "pl7.app/vdj/feature": featureU
318
- },
319
- annotations: a(orderP - 10, false, {
320
- "pl7.app/min": "0",
321
- "pl7.app/max": "60",
322
- "pl7.app/label": "Min quality " + featureU
323
- })
307
+
308
+
309
+ if isAminoAcid && !isSingleCell && featureU == "CDR3" {
310
+ columnsSpecPerClonotype += [ {
311
+ column: columnName,
312
+ id: "clonotype-label",
313
+ preProcess: [{
314
+ type: "regexpReplace",
315
+ pattern: "^region_not_covered$",
316
+ replacement: "Unlabelled"
317
+ }],
318
+ spec: {
319
+ name: "pl7.app/label",
320
+ valueType: "String",
321
+ annotations: {
322
+ "pl7.app/label": "Clone label"
324
323
  }
325
- } ]
326
- exportArgs += [ [ "-minFeatureQuality", featureU ] ]
324
+ }
325
+ } ]
327
326
  }
327
+ exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
328
328
  orderP -= 100
329
329
  }
330
330
  }
@@ -595,7 +595,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
595
595
  "pl7.app/vdj/clonotypingRunId": blockId
596
596
  },
597
597
  annotations: {
598
- "pl7.app/label": "SC Clonotype key",
598
+ "pl7.app/label": "Clone label",
599
599
  "pl7.app/table/visibility": "optional",
600
600
  "pl7.app/table/orderPriority": "110000",
601
601
  "pl7.app/segmentedBy": string(json.encode(["pl7.app/vdj/clonotypingRunId"]))
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-clonotyping-2.workflow",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Tengo-based template",
5
5
  "dependencies": {
6
6
  "@platforma-sdk/workflow-tengo": "^3.1.0",
7
- "@platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts": "1.1.0"
7
+ "@platforma-open/milaboratories.mixcr-clonotyping-2.single-cell-scripts": "1.1.1"
8
8
  },
9
9
  "devDependencies": {
10
10
  "@platforma-sdk/tengo-builder": "^2.0.2",
@@ -285,9 +285,10 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
285
285
  alphabet := isAminoAcid ? "aminoacid" : "nucleotide"
286
286
  alphabetShort := isAminoAcid ? "aa" : "nt"
287
287
  alphabetShortMixcr := isAminoAcid ? "aa" : "n"
288
+ columnName := alphabetShortMixcr + "Seq" + imputedU + featureU
288
289
  visibility := isSingleCell ? (featureU == "CDR3") && isAminoAcid : (featureU == "CDR3") || (featureU == assemblingFeature)
289
290
  columnsSpecPerClonotype += [ {
290
- column: alphabetShortMixcr + "Seq" + imputedU + featureU,
291
+ column: columnName,
291
292
  id: alphabetShortMixcr + "-seq-" + featureL + (isImputed ? "-imputed" : ""),
292
293
  naRegex: "region_not_covered",
293
294
  spec: {
@@ -303,28 +304,27 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
303
304
  })
304
305
  }
305
306
  } ]
306
- exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
307
- if !isImputed && !isAminoAcid {
308
- columnsSpecPerSample += [ {
309
- column: "minQual" + featureU,
310
- id: "min-qual-" + featureL,
311
- naRegex: "region_not_covered",
312
- spec: {
313
- name: "pl7.app/vdj/sequenceQuality",
314
- valueType: "Int",
315
- domain: {
316
- "pl7.app/vdj/quality": "minQuality",
317
- "pl7.app/vdj/feature": featureU
318
- },
319
- annotations: a(orderP - 10, false, {
320
- "pl7.app/min": "0",
321
- "pl7.app/max": "60",
322
- "pl7.app/label": "Min quality " + featureU
323
- })
307
+
308
+ // label column
309
+ if isAminoAcid && !isSingleCell && featureU == "CDR3" {
310
+ columnsSpecPerClonotype += [ {
311
+ column: columnName,
312
+ id: "clonotype-label",
313
+ preProcess: [{
314
+ type: "regexpReplace",
315
+ pattern: "^region_not_covered$",
316
+ replacement: "Unlabelled"
317
+ }],
318
+ spec: {
319
+ name: "pl7.app/label",
320
+ valueType: "String",
321
+ annotations: {
322
+ "pl7.app/label": "Clone label"
324
323
  }
325
- } ]
326
- exportArgs += [ [ "-minFeatureQuality", featureU ] ]
324
+ }
325
+ } ]
327
326
  }
327
+ exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
328
328
  orderP -= 100
329
329
  }
330
330
  }
@@ -595,7 +595,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
595
595
  "pl7.app/vdj/clonotypingRunId": blockId
596
596
  },
597
597
  annotations: {
598
- "pl7.app/label": "SC Clonotype key",
598
+ "pl7.app/label": "Clone label",
599
599
  "pl7.app/table/visibility": "optional",
600
600
  "pl7.app/table/orderPriority": "110000",
601
601
  "pl7.app/segmentedBy": string(json.encode(["pl7.app/vdj/clonotypingRunId"]))