@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.6.1 → 2.8.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.6.1 build /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.8.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.6.1 test /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
3
+ > @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.8.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) 55868ms
10
- ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 14243ms
11
- ✓ checking preset for '10x-sc-xcr-vdj' 8794ms
12
- ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8380ms
13
- ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8294ms
14
- ✓ checking preset for 'rna-seq' 7887ms
15
- ✓ checking preset for 'generic-single-cell-gex' 8268ms
9
+ ✓ src/test/columns.test.ts (6 tests) 52630ms
10
+ ✓ checking preset for 'milab-human-dna-xcr-7genes-multiplex' 12190ms
11
+ ✓ checking preset for '10x-sc-xcr-vdj' 8567ms
12
+ ✓ checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' 8302ms
13
+ ✓ checking preset for 'takara-human-rna-bcr-umi-smartseq' 8076ms
14
+ ✓ checking preset for 'rna-seq' 7653ms
15
+ ✓ checking preset for 'generic-single-cell-gex' 7842ms
16
16
 
17
17
   Test Files  1 passed (1)
18
18
   Tests  6 passed (6)
19
-  Start at  16:45:12
20
-  Duration  56.68s (transform 41ms, setup 0ms, collect 572ms, tests 55.87s, environment 0ms, prepare 60ms)
19
+  Start at  15:34:37
20
+  Duration  53.50s (transform 48ms, setup 0ms, collect 601ms, tests 52.63s, environment 0ms, prepare 78ms)
21
21
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @platforma-open/milaboratories.mixcr-clonotyping.workflow
2
2
 
3
+ ## 2.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f838dd2: Remove CDR3 length column from output
8
+
9
+ ## 2.8.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 22a4bd4: passing library into exportClones template
14
+
15
+ ## 2.7.0
16
+
17
+ ### Minor Changes
18
+
19
+ - a3d8933: ampliseq preset bug correction
20
+
3
21
  ## 2.6.1
4
22
 
5
23
  ### Patch Changes
@@ -46,7 +46,7 @@ assemblingFeatureInfo := func(assemblingFeature) {
46
46
  splittedFeature := text.split(assemblingFeature, "_TO_")
47
47
  if len(splittedFeature) == 2 {
48
48
  if splittedFeature[1] == "FR4" {
49
- productiveFeature = "{"+splittedFeature[0] + "Begin:FR4End(-1)}"
49
+ productiveFeature = splittedFeature[0] + "_TO_FR4(0,-1)"
50
50
  coreVFeature = "{"+splittedFeature[0]+"Begin:FR3End}"
51
51
  coreJFeature = "FR4"
52
52
  } else {
@@ -536,38 +536,6 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
536
536
  ]
537
537
 
538
538
 
539
-
540
-
541
- lengthColumns := ["CDR3"] // assemblingFeatureInfo.nonImputed
542
-
543
- for featureU in lengthColumns {
544
- featureL := text.to_lower(featureU)
545
- for isAminoAcid in [false, true] {
546
- alphabet := isAminoAcid ? "aminoacid" : "nucleotide"
547
- alphabetShort := isAminoAcid ? "aa" : "nt"
548
- alphabetShortMixcr := isAminoAcid ? "aa" : "n"
549
- columnsSpecPerClonotype += [ {
550
- column: alphabetShortMixcr + "Length" + featureU,
551
- id: alphabetShortMixcr + "-length-" + featureL,
552
- naRegex: "region_not_covered",
553
- spec: {
554
- name: "pl7.app/vdj/sequenceLength",
555
- valueType: "Int",
556
- domain: {
557
- "pl7.app/vdj/feature": featureU,
558
- "pl7.app/alphabet": alphabet
559
- },
560
- annotations: a(orderP, false, {
561
- "pl7.app/label": "Length of " + featureU + " " + alphabetShort
562
- })
563
- }
564
- } ]
565
- exportArgs += [ [ "-" + alphabetShortMixcr + "Length", featureU ] ]
566
- orderP -= 100
567
- }
568
- }
569
-
570
-
571
539
 
572
540
  columnsSpec := columnsSpecPerSample + columnsSpecPerClonotype
573
541
 
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.6.1",
3
+ "version": "2.8.1",
4
4
  "description": "Tengo-based template",
5
5
  "dependencies": {
6
6
  "@platforma-sdk/workflow-tengo": "^4.0.3",
@@ -46,7 +46,7 @@ assemblingFeatureInfo := func(assemblingFeature) {
46
46
  splittedFeature := text.split(assemblingFeature, "_TO_")
47
47
  if len(splittedFeature) == 2 {
48
48
  if splittedFeature[1] == "FR4" {
49
- productiveFeature = "{"+splittedFeature[0] + "Begin:FR4End(-1)}"
49
+ productiveFeature = splittedFeature[0] + "_TO_FR4(0,-1)"
50
50
  coreVFeature = "{"+splittedFeature[0]+"Begin:FR3End}"
51
51
  coreJFeature = "FR4"
52
52
  } else {
@@ -535,38 +535,6 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
535
535
  [ "-topChains" ]
536
536
  ]
537
537
 
538
- //Sequence length
539
-
540
- // for now use only CDR3 length to avoid generating too many columns
541
- lengthColumns := ["CDR3"] // assemblingFeatureInfo.nonImputed
542
-
543
- for featureU in lengthColumns {
544
- featureL := text.to_lower(featureU)
545
- for isAminoAcid in [false, true] {
546
- alphabet := isAminoAcid ? "aminoacid" : "nucleotide"
547
- alphabetShort := isAminoAcid ? "aa" : "nt"
548
- alphabetShortMixcr := isAminoAcid ? "aa" : "n"
549
- columnsSpecPerClonotype += [ {
550
- column: alphabetShortMixcr + "Length" + featureU,
551
- id: alphabetShortMixcr + "-length-" + featureL,
552
- naRegex: "region_not_covered",
553
- spec: {
554
- name: "pl7.app/vdj/sequenceLength",
555
- valueType: "Int",
556
- domain: {
557
- "pl7.app/vdj/feature": featureU,
558
- "pl7.app/alphabet": alphabet
559
- },
560
- annotations: a(orderP, false, {
561
- "pl7.app/label": "Length of " + featureU + " " + alphabetShort
562
- })
563
- }
564
- } ]
565
- exportArgs += [ [ "-" + alphabetShortMixcr + "Length", featureU ] ]
566
- orderP -= 100
567
- }
568
- }
569
-
570
538
  // All columns are added
571
539
 
572
540
  columnsSpec := columnsSpecPerSample + columnsSpecPerClonotype
@@ -16,6 +16,8 @@ self.body(func(inputs) {
16
16
  clnsFile := inputs[pConstants.VALUE_FIELD_NAME]
17
17
 
18
18
  params := inputs.params
19
+ library := inputs.library
20
+ isLibraryFileGzipped := params.isLibraryFileGzipped
19
21
  chains := params.chains
20
22
  exportArgs := params.exportArgs
21
23
 
@@ -37,6 +39,14 @@ self.body(func(inputs) {
37
39
  arg("--reset-export-clone-table-splitting").
38
40
  arg("--chains").arg(chains)
39
41
 
42
+ if library {
43
+ if isLibraryFileGzipped {
44
+ mixcrCmdBuilder.addFile("library.json.gz", library)
45
+ } else {
46
+ mixcrCmdBuilder.addFile("library.json", library)
47
+ }
48
+ }
49
+
40
50
  additionalAction(mixcrCmdBuilder)
41
51
 
42
52
  return mixcrCmdBuilder.
@@ -351,8 +351,10 @@ self.body(func(inputs) {
351
351
  clonotypeKeyColumns: clonotypeKeyColumns,
352
352
  clonotypeKeyArgs: clonotypeKeyArgs,
353
353
  cellTagColumns: cellTagColumns,
354
- exportArgs: exportArgs
355
- }
354
+ exportArgs: exportArgs,
355
+ isLibraryFileGzipped: isLibraryFileGzipped
356
+ },
357
+ library: library
356
358
  }
357
359
  }
358
360
  )