@platforma-open/milaboratories.mixcr-clonotyping-2.workflow 2.8.1 → 2.8.2
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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +10 -10
- package/CHANGELOG.md +6 -0
- package/dist/tengo/lib/calculate-export-specs.lib.tengo +29 -8
- package/dist/tengo/tpl/aggregate-by-clonotype-key.plj.gz +0 -0
- package/dist/tengo/tpl/calculate-preset-info.plj.gz +0 -0
- package/dist/tengo/tpl/list-presets.plj.gz +0 -0
- package/dist/tengo/tpl/main.plj.gz +0 -0
- package/dist/tengo/tpl/mixcr-analyze.plj.gz +0 -0
- package/dist/tengo/tpl/mixcr-export.plj.gz +0 -0
- package/dist/tengo/tpl/prerun.plj.gz +0 -0
- package/dist/tengo/tpl/process-single-cell.plj.gz +0 -0
- package/dist/tengo/tpl/process.plj.gz +0 -0
- package/dist/tengo/tpl/test.columns-calculate.plj.gz +0 -0
- package/dist/tengo/tpl/test.columns.test.plj.gz +0 -0
- package/package.json +3 -3
- package/src/calculate-export-specs.lib.tengo +29 -8
package/.turbo/turbo-build.log
CHANGED
|
@@ -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.8.
|
|
3
|
+
> @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.8.2 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
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -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.8.
|
|
3
|
+
> @platforma-open/milaboratories.mixcr-clonotyping-2.workflow@2.8.2 test /home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow
|
|
4
4
|
> vitest
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
[1m[7m[36m RUN [39m[27m[22m [36mv2.1.8 [39m[90m/home/runner/work/mixcr-clonotyping-2/mixcr-clonotyping-2/workflow[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m src/test/columns.test.ts [2m([22m[2m6 tests[22m[2m)[22m[33m
|
|
10
|
-
[33m[2m✓[22m[39m checking preset for 'milab-human-dna-xcr-7genes-multiplex' [
|
|
11
|
-
[33m[2m✓[22m[39m checking preset for '10x-sc-xcr-vdj' [
|
|
12
|
-
[33m[2m✓[22m[39m checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' [
|
|
13
|
-
[33m[2m✓[22m[39m checking preset for 'takara-human-rna-bcr-umi-smartseq' [
|
|
14
|
-
[33m[2m✓[22m[39m checking preset for 'rna-seq' [
|
|
15
|
-
[33m[2m✓[22m[39m checking preset for 'generic-single-cell-gex' [
|
|
9
|
+
[32m✓[39m src/test/columns.test.ts [2m([22m[2m6 tests[22m[2m)[22m[33m 53957[2mms[22m[39m
|
|
10
|
+
[33m[2m✓[22m[39m checking preset for 'milab-human-dna-xcr-7genes-multiplex' [33m12559[2mms[22m[39m
|
|
11
|
+
[33m[2m✓[22m[39m checking preset for '10x-sc-xcr-vdj' [33m8530[2mms[22m[39m
|
|
12
|
+
[33m[2m✓[22m[39m checking preset for 'cellecta-human-rna-xcr-umi-drivermap-…' [33m8433[2mms[22m[39m
|
|
13
|
+
[33m[2m✓[22m[39m checking preset for 'takara-human-rna-bcr-umi-smartseq' [33m8412[2mms[22m[39m
|
|
14
|
+
[33m[2m✓[22m[39m checking preset for 'rna-seq' [33m8008[2mms[22m[39m
|
|
15
|
+
[33m[2m✓[22m[39m checking preset for 'generic-single-cell-gex' [33m8014[2mms[22m[39m
|
|
16
16
|
|
|
17
17
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
18
18
|
[2m Tests [22m [1m[32m6 passed[39m[22m[90m (6)[39m
|
|
19
|
-
[2m Start at [22m
|
|
20
|
-
[2m Duration [22m
|
|
19
|
+
[2m Start at [22m 16:34:49
|
|
20
|
+
[2m Duration [22m 54.77s[2m (transform 44ms, setup 0ms, collect 587ms, tests 53.96s, environment 0ms, prepare 62ms)[22m
|
|
21
21
|
|
package/CHANGELOG.md
CHANGED
|
@@ -269,7 +269,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
269
269
|
features = ["CDR1", "FR1", "FR2", "CDR2", "FR3", "CDR3", "FR4"]
|
|
270
270
|
anchorFeature = "CDR3"
|
|
271
271
|
} else if assemblingFeature != "CDR3" {
|
|
272
|
-
features = [
|
|
272
|
+
features = ["CDR1", "FR1", "FR2", "CDR2", "FR3", "CDR3", "FR4", assemblingFeature]
|
|
273
273
|
anchorFeature = assemblingFeature
|
|
274
274
|
} else {
|
|
275
275
|
features = ["CDR3"]
|
|
@@ -281,12 +281,12 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
281
281
|
imputedL := text.to_lower(imputedU)
|
|
282
282
|
for featureU in features {
|
|
283
283
|
featureL := text.to_lower(featureU)
|
|
284
|
-
for isAminoAcid in [
|
|
284
|
+
for isAminoAcid in [true, false] {
|
|
285
285
|
alphabet := isAminoAcid ? "aminoacid" : "nucleotide"
|
|
286
286
|
alphabetShort := isAminoAcid ? "aa" : "nt"
|
|
287
287
|
alphabetShortMixcr := isAminoAcid ? "aa" : "n"
|
|
288
288
|
columnName := alphabetShortMixcr + "Seq" + imputedU + featureU
|
|
289
|
-
visibility := isSingleCell ? (featureU == "CDR3") && isAminoAcid : (featureU == "CDR3") || (featureU == assemblingFeature)
|
|
289
|
+
visibility := featureU == "CDR3" && (!isSingleCell || isAminoAcid) // isSingleCell ? (featureU == "CDR3") && isAminoAcid : (featureU == "CDR3") || (featureU == assemblingFeature)
|
|
290
290
|
columnsSpecPerClonotype += [ {
|
|
291
291
|
column: columnName,
|
|
292
292
|
id: alphabetShortMixcr + "-seq-" + featureL + (isImputed ? "-imputed" : ""),
|
|
@@ -304,6 +304,29 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
304
304
|
})
|
|
305
305
|
}
|
|
306
306
|
} ]
|
|
307
|
+
exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
|
|
308
|
+
orderP -= 100
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
if featureU == "CDR3" {
|
|
312
|
+
columnsSpecPerClonotype += [ {
|
|
313
|
+
column: alphabetShortMixcr + "Length" + featureU,
|
|
314
|
+
id: alphabetShortMixcr + "-length-" + featureL,
|
|
315
|
+
naRegex: "region_not_covered",
|
|
316
|
+
spec: {
|
|
317
|
+
name: "pl7.app/vdj/sequenceLength",
|
|
318
|
+
valueType: "Int",
|
|
319
|
+
domain: {
|
|
320
|
+
"pl7.app/vdj/feature": featureU,
|
|
321
|
+
"pl7.app/alphabet": alphabet
|
|
322
|
+
},
|
|
323
|
+
annotations: a(orderP, false, {
|
|
324
|
+
"pl7.app/label": "Length of " + featureU + " " + alphabetShort
|
|
325
|
+
})
|
|
326
|
+
}
|
|
327
|
+
} ]
|
|
328
|
+
exportArgs += [ [ "-" + alphabetShortMixcr + "Length", featureU ] ]
|
|
329
|
+
}
|
|
307
330
|
|
|
308
331
|
|
|
309
332
|
if isAminoAcid && !isSingleCell && featureU == "CDR3" {
|
|
@@ -318,14 +341,12 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
318
341
|
spec: {
|
|
319
342
|
name: "pl7.app/label",
|
|
320
343
|
valueType: "String",
|
|
321
|
-
annotations: {
|
|
344
|
+
annotations: a(100000, false, {
|
|
322
345
|
"pl7.app/label": "Clone label"
|
|
323
|
-
}
|
|
346
|
+
})
|
|
324
347
|
}
|
|
325
348
|
} ]
|
|
326
349
|
}
|
|
327
|
-
exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
|
|
328
|
-
orderP -= 100
|
|
329
350
|
}
|
|
330
351
|
}
|
|
331
352
|
}
|
|
@@ -376,7 +397,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
376
397
|
|
|
377
398
|
orderP = 10000
|
|
378
399
|
|
|
379
|
-
mutationColumnVariants := [
|
|
400
|
+
mutationColumnVariants := [
|
|
380
401
|
|
|
381
402
|
|
|
382
403
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-open/milaboratories.mixcr-clonotyping-2.workflow",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "Tengo-based template",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@platforma-sdk/workflow-tengo": "^4.0.
|
|
6
|
+
"@platforma-sdk/workflow-tengo": "^4.0.8",
|
|
7
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.3",
|
|
11
11
|
"@platforma-open/milaboratories.software-mixcr": "4.7.0-149-develop",
|
|
12
12
|
"@platforma-open/milaboratories.software-ptransform": "^1.3.1",
|
|
13
|
-
"@platforma-sdk/test": "^1.
|
|
13
|
+
"@platforma-sdk/test": "^1.29.3",
|
|
14
14
|
"vitest": "^2.1.8",
|
|
15
15
|
"typescript": "~5.5.4"
|
|
16
16
|
},
|
|
@@ -269,7 +269,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
269
269
|
features = ["CDR1", "FR1", "FR2", "CDR2", "FR3", "CDR3", "FR4"]
|
|
270
270
|
anchorFeature = "CDR3"
|
|
271
271
|
} else if assemblingFeature != "CDR3" {
|
|
272
|
-
features = [
|
|
272
|
+
features = ["CDR1", "FR1", "FR2", "CDR2", "FR3", "CDR3", "FR4", assemblingFeature]
|
|
273
273
|
anchorFeature = assemblingFeature
|
|
274
274
|
} else {
|
|
275
275
|
features = ["CDR3"]
|
|
@@ -281,12 +281,12 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
281
281
|
imputedL := text.to_lower(imputedU)
|
|
282
282
|
for featureU in features {
|
|
283
283
|
featureL := text.to_lower(featureU)
|
|
284
|
-
for isAminoAcid in [
|
|
284
|
+
for isAminoAcid in [true, false] {
|
|
285
285
|
alphabet := isAminoAcid ? "aminoacid" : "nucleotide"
|
|
286
286
|
alphabetShort := isAminoAcid ? "aa" : "nt"
|
|
287
287
|
alphabetShortMixcr := isAminoAcid ? "aa" : "n"
|
|
288
288
|
columnName := alphabetShortMixcr + "Seq" + imputedU + featureU
|
|
289
|
-
visibility := isSingleCell ? (featureU == "CDR3") && isAminoAcid : (featureU == "CDR3") || (featureU == assemblingFeature)
|
|
289
|
+
visibility := featureU == "CDR3" && (!isSingleCell || isAminoAcid) // isSingleCell ? (featureU == "CDR3") && isAminoAcid : (featureU == "CDR3") || (featureU == assemblingFeature)
|
|
290
290
|
columnsSpecPerClonotype += [ {
|
|
291
291
|
column: columnName,
|
|
292
292
|
id: alphabetShortMixcr + "-seq-" + featureL + (isImputed ? "-imputed" : ""),
|
|
@@ -304,6 +304,29 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
304
304
|
})
|
|
305
305
|
}
|
|
306
306
|
} ]
|
|
307
|
+
exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
|
|
308
|
+
orderP -= 100
|
|
309
|
+
|
|
310
|
+
// For now calculate length only for CDR3 to keep the number of columns manageable
|
|
311
|
+
if featureU == "CDR3" {
|
|
312
|
+
columnsSpecPerClonotype += [ {
|
|
313
|
+
column: alphabetShortMixcr + "Length" + featureU,
|
|
314
|
+
id: alphabetShortMixcr + "-length-" + featureL,
|
|
315
|
+
naRegex: "region_not_covered",
|
|
316
|
+
spec: {
|
|
317
|
+
name: "pl7.app/vdj/sequenceLength",
|
|
318
|
+
valueType: "Int",
|
|
319
|
+
domain: {
|
|
320
|
+
"pl7.app/vdj/feature": featureU,
|
|
321
|
+
"pl7.app/alphabet": alphabet
|
|
322
|
+
},
|
|
323
|
+
annotations: a(orderP, false, {
|
|
324
|
+
"pl7.app/label": "Length of " + featureU + " " + alphabetShort
|
|
325
|
+
})
|
|
326
|
+
}
|
|
327
|
+
} ]
|
|
328
|
+
exportArgs += [ [ "-" + alphabetShortMixcr + "Length", featureU ] ]
|
|
329
|
+
}
|
|
307
330
|
|
|
308
331
|
// label column
|
|
309
332
|
if isAminoAcid && !isSingleCell && featureU == "CDR3" {
|
|
@@ -318,14 +341,12 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
318
341
|
spec: {
|
|
319
342
|
name: "pl7.app/label",
|
|
320
343
|
valueType: "String",
|
|
321
|
-
annotations: {
|
|
344
|
+
annotations: a(100000, false, {
|
|
322
345
|
"pl7.app/label": "Clone label"
|
|
323
|
-
}
|
|
346
|
+
})
|
|
324
347
|
}
|
|
325
348
|
} ]
|
|
326
349
|
}
|
|
327
|
-
exportArgs += [ [ "-" + alphabetShortMixcr + "Feature" + imputedU, featureU ] ]
|
|
328
|
-
orderP -= 100
|
|
329
350
|
}
|
|
330
351
|
}
|
|
331
352
|
}
|
|
@@ -376,7 +397,7 @@ calculateExportSpecs := func(presetSpecForBack, blockId) {
|
|
|
376
397
|
|
|
377
398
|
orderP = 10000
|
|
378
399
|
|
|
379
|
-
mutationColumnVariants := [
|
|
400
|
+
mutationColumnVariants := [
|
|
380
401
|
// {
|
|
381
402
|
// name: "Mutations",
|
|
382
403
|
// valueType: "String",
|