@platforma-open/milaboratories.top-antibodies.workflow 2.0.0 → 2.1.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +17 -0
- package/dist/tengo/tpl/assembling-fasta.plj.gz +0 -0
- package/dist/tengo/tpl/filter-and-sample.plj.gz +0 -0
- package/dist/tengo/tpl/main.plj.gz +0 -0
- package/package.json +3 -3
- package/src/assembling-fasta.tpl.tengo +10 -6
- package/src/filter-and-sample.tpl.tengo +4 -0
- package/src/main.tpl.tengo +3 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/work/antibody-tcr-lead-selection/antibody-tcr-lead-selection/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @platforma-open/milaboratories.top-antibodies.workflow@2.
|
|
3
|
+
> @platforma-open/milaboratories.top-antibodies.workflow@2.1.0 build /home/runner/work/antibody-tcr-lead-selection/antibody-tcr-lead-selection/workflow
|
|
4
4
|
> shx rm -rf dist && pl-tengo check && pl-tengo build
|
|
5
5
|
|
|
6
6
|
Processing "src/assembling-fasta.tpl.tengo"...
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @platforma-open/milaboratories.top-antibodies.workflow
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 84a7fe5: Deal with ANARCI numbering issues
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [84a7fe5]
|
|
12
|
+
- @platforma-open/milaboratories.top-antibodies.anarci-kabat@1.4.0
|
|
13
|
+
|
|
14
|
+
## 2.0.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 140ce30: Support custom block label
|
|
19
|
+
|
|
3
20
|
## 2.0.0
|
|
4
21
|
|
|
5
22
|
### Major Changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-open/milaboratories.top-antibodies.workflow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Block Workflow",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"@platforma-open/milaboratories.software-anarci": "^0.0.3",
|
|
9
9
|
"@platforma-open/milaboratories.top-antibodies.sample-clonotypes": "2.0.0",
|
|
10
10
|
"@platforma-open/milaboratories.top-antibodies.umap": "1.2.1",
|
|
11
|
+
"@platforma-open/milaboratories.top-antibodies.spectratype": "1.8.1",
|
|
11
12
|
"@platforma-open/milaboratories.top-antibodies.assembling-fasta": "1.3.0",
|
|
12
|
-
"@platforma-open/milaboratories.top-antibodies.anarci-kabat": "1.
|
|
13
|
-
"@platforma-open/milaboratories.top-antibodies.spectratype": "1.8.1"
|
|
13
|
+
"@platforma-open/milaboratories.top-antibodies.anarci-kabat": "1.4.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@platforma-sdk/tengo-builder": "2.4.18"
|
|
@@ -6,7 +6,7 @@ pt := import("@platforma-sdk/workflow-tengo:pt")
|
|
|
6
6
|
pframes := import("@platforma-sdk/workflow-tengo:pframes")
|
|
7
7
|
anarciSw := assets.importSoftware("@platforma-open/milaboratories.software-anarci:main")
|
|
8
8
|
|
|
9
|
-
self.defineOutputs("kabat")
|
|
9
|
+
self.defineOutputs("kabat", "kabatStats")
|
|
10
10
|
|
|
11
11
|
self.body(func(inputs) {
|
|
12
12
|
|
|
@@ -37,13 +37,17 @@ self.body(func(inputs) {
|
|
|
37
37
|
|
|
38
38
|
anarciFileNameBulk := "anarci.csv_" + bulkChain + ".csv"
|
|
39
39
|
|
|
40
|
+
// Pre-create empty CSV placeholders so that saveFile always finds the files,
|
|
41
|
+
// even when ANARCI cannot number any sequences (e.g. heavily engineered scaffolds)
|
|
40
42
|
anarciBuilder := exec.builder().
|
|
41
43
|
software(anarciSw).
|
|
42
44
|
arg("-i").arg("assembling.fasta").
|
|
43
45
|
arg("--scheme").arg("kabat").
|
|
44
46
|
arg("--ncpu").argWithVar("{system.cpu}").
|
|
45
47
|
arg("-o").arg("anarci.csv").arg("--csv").
|
|
46
|
-
addFile("assembling.fasta", cmd.getFile("assembling.fasta"))
|
|
48
|
+
addFile("assembling.fasta", cmd.getFile("assembling.fasta")).
|
|
49
|
+
writeFile("anarci.csv_H.csv", "Id\n").
|
|
50
|
+
writeFile("anarci.csv_KL.csv", "Id\n")
|
|
47
51
|
if isSingleCell {
|
|
48
52
|
anarciBuilder = anarciBuilder.saveFile("anarci.csv_H.csv").saveFile("anarci.csv_KL.csv")
|
|
49
53
|
} else {
|
|
@@ -73,16 +77,16 @@ self.body(func(inputs) {
|
|
|
73
77
|
}
|
|
74
78
|
kabatExec = kabatExec.
|
|
75
79
|
arg("--out_tsv").arg("kabat.tsv").
|
|
80
|
+
arg("--numbered_count_file").arg("numbered_count.txt").
|
|
76
81
|
saveFile("kabat.tsv").
|
|
82
|
+
saveFileContent("numbered_count.txt").
|
|
77
83
|
printErrStreamToStdout().
|
|
78
84
|
cache(24 * 60 * 60 * 1000).
|
|
79
85
|
run()
|
|
80
|
-
|
|
81
|
-
kabat := kabatExec.getFile("kabat.tsv")
|
|
82
86
|
|
|
83
87
|
return {
|
|
84
|
-
kabat: kabat
|
|
85
|
-
|
|
88
|
+
kabat: kabatExec.getFile("kabat.tsv"),
|
|
89
|
+
kabatStats: kabatExec.getFileContent("numbered_count.txt")
|
|
86
90
|
}
|
|
87
91
|
})
|
|
88
92
|
|
|
@@ -105,6 +105,10 @@ self.body(func(inputs) {
|
|
|
105
105
|
if is_undefined(traceLabel) || traceLabel == "" {
|
|
106
106
|
traceLabel = "Selected Leads"
|
|
107
107
|
}
|
|
108
|
+
customBlockLabel := inputs.customBlockLabel
|
|
109
|
+
if !is_undefined(customBlockLabel) && customBlockLabel != "" {
|
|
110
|
+
traceLabel = customBlockLabel + " / " + traceLabel
|
|
111
|
+
}
|
|
108
112
|
trace := pSpec.makeTrace(datasetSpec,
|
|
109
113
|
{
|
|
110
114
|
type: "milaboratories.antibody-tcr-lead-selection",
|
package/src/main.tpl.tengo
CHANGED
|
@@ -164,7 +164,8 @@ wf.body(func(args) {
|
|
|
164
164
|
datasetSpec: datasetSpec,
|
|
165
165
|
topClonotypes: args.topClonotypes,
|
|
166
166
|
diversificationColumn: clusterColumnHeader,
|
|
167
|
-
filterTraceLabel: filterTraceLabel
|
|
167
|
+
filterTraceLabel: filterTraceLabel,
|
|
168
|
+
customBlockLabel: args.customBlockLabel
|
|
168
169
|
})
|
|
169
170
|
|
|
170
171
|
// Get the filtered clonotypes from the template result
|
|
@@ -245,6 +246,7 @@ wf.body(func(args) {
|
|
|
245
246
|
// Convert kabat.tsv to PFrame with proper specs (bulk: select heavy/light)
|
|
246
247
|
kabatPf := xsv.importFile(kabatFile, "tsv", kabatConv.getColumns(datasetSpec, featName, bulkChain), {cpu: 1, mem: "8GiB"})
|
|
247
248
|
outputs["assemblingKabatPf"] = pframes.exportFrame(kabatPf)
|
|
249
|
+
outputs["kabatStatsContent"] = assem.output("kabatStats")
|
|
248
250
|
}
|
|
249
251
|
}
|
|
250
252
|
}
|