@platforma-open/milaboratories.mixcr-library-builder.workflow 1.0.2 → 1.2.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
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/work/mixcr-library-builder/mixcr-library-builder/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @platforma-open/milaboratories.mixcr-library-builder.workflow@1.0
|
|
3
|
+
> @platforma-open/milaboratories.mixcr-library-builder.workflow@1.2.0 build /home/runner/work/mixcr-library-builder/mixcr-library-builder/workflow
|
|
4
4
|
> rm -rf dist && pl-tengo check && pl-tengo build
|
|
5
5
|
|
|
6
|
+
Processing "src/formatText.lib.tengo"...
|
|
6
7
|
Processing "src/main.tpl.tengo"...
|
|
7
8
|
No syntax errors found.
|
|
8
9
|
info: Compiling 'dist'...
|
|
10
|
+
info: - writing /home/runner/work/mixcr-library-builder/mixcr-library-builder/workflow/dist/tengo/lib/formatText.lib.tengo
|
|
9
11
|
info: - writing /home/runner/work/mixcr-library-builder/mixcr-library-builder/workflow/dist/tengo/tpl/main.plj.gz
|
|
10
12
|
info:
|
|
11
13
|
info: Template Pack build done.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @platforma-open/milaboratories.mixcr-library-builder.workflow
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 44a1d87: remove logo file
|
|
8
|
+
|
|
9
|
+
## 1.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 84adbca: Corrections and improvements
|
|
14
|
+
|
|
3
15
|
## 1.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
ll := import("@platforma-sdk/workflow-tengo:ll")
|
|
2
|
+
|
|
3
|
+
text := import("text")
|
|
4
|
+
|
|
5
|
+
toCamelCase := func(input) {
|
|
6
|
+
cleaned := text.re_replace(`[^a-zA-Z0-9]+`, input, " ")
|
|
7
|
+
words := text.split(cleaned, " ")
|
|
8
|
+
|
|
9
|
+
camelCase := ""
|
|
10
|
+
for i := 0; i < len(words); i++ {
|
|
11
|
+
word := words[i]
|
|
12
|
+
if word == "" {
|
|
13
|
+
continue
|
|
14
|
+
}
|
|
15
|
+
if i == 0 {
|
|
16
|
+
camelCase += text.to_lower(word)
|
|
17
|
+
} else {
|
|
18
|
+
camelCase += text.to_upper(text.substr(word, 0, 1)) + text.to_lower(text.substr(word, 1))
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return camelCase
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export ll.toStrict({
|
|
26
|
+
toCamelCase: toCamelCase
|
|
27
|
+
})
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
ll := import("@platforma-sdk/workflow-tengo:ll")
|
|
2
|
+
|
|
3
|
+
text := import("text")
|
|
4
|
+
|
|
5
|
+
toCamelCase := func(input) {
|
|
6
|
+
cleaned := text.re_replace(`[^a-zA-Z0-9]+`, input, " ")
|
|
7
|
+
words := text.split(cleaned, " ")
|
|
8
|
+
|
|
9
|
+
camelCase := ""
|
|
10
|
+
for i := 0; i < len(words); i++ {
|
|
11
|
+
word := words[i]
|
|
12
|
+
if word == "" {
|
|
13
|
+
continue
|
|
14
|
+
}
|
|
15
|
+
if i == 0 {
|
|
16
|
+
camelCase += text.to_lower(word)
|
|
17
|
+
} else {
|
|
18
|
+
camelCase += text.to_upper(text.substr(word, 0, 1)) + text.to_lower(text.substr(word, 1))
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return camelCase
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export ll.toStrict({
|
|
26
|
+
toCamelCase: toCamelCase
|
|
27
|
+
})
|
package/src/main.tpl.tengo
CHANGED
|
@@ -7,9 +7,12 @@ file := import("@platforma-sdk/workflow-tengo:file")
|
|
|
7
7
|
times := import("times")
|
|
8
8
|
json := import("json")
|
|
9
9
|
rand := import("rand")
|
|
10
|
+
text := import("text")
|
|
10
11
|
|
|
11
12
|
mixcrSw := assets.importSoftware("@platforma-open/milaboratories.software-mixcr:main")
|
|
12
13
|
|
|
14
|
+
toCamelCase := import(":formatText")
|
|
15
|
+
|
|
13
16
|
wf.body(func(args) {
|
|
14
17
|
|
|
15
18
|
if is_undefined(args.vFastaFile) && is_undefined(args.vSpecies) {
|
|
@@ -25,6 +28,7 @@ wf.body(func(args) {
|
|
|
25
28
|
outputs := {}
|
|
26
29
|
|
|
27
30
|
species := args.species
|
|
31
|
+
cmdSpecies := toCamelCase.toCamelCase(species) + "_custom"
|
|
28
32
|
chain := args.chain
|
|
29
33
|
|
|
30
34
|
libraryBuilderCmdBuilder := undefined
|
|
@@ -34,8 +38,7 @@ wf.body(func(args) {
|
|
|
34
38
|
software(mixcrSw).
|
|
35
39
|
secret("MI_LICENSE", "MI_LICENSE").
|
|
36
40
|
arg("buildLibrary").
|
|
37
|
-
arg("--
|
|
38
|
-
arg("--species").arg(species).
|
|
41
|
+
arg("--species").arg(cmdSpecies).
|
|
39
42
|
arg("--chain").arg(chain).
|
|
40
43
|
arg("--taxon-id").arg(taxonId)
|
|
41
44
|
if !is_undefined(args.vFastaFile) {
|
|
@@ -91,10 +94,10 @@ wf.body(func(args) {
|
|
|
91
94
|
spec: {
|
|
92
95
|
kind: "File",
|
|
93
96
|
annotations: {
|
|
94
|
-
"pl7.app/species":
|
|
97
|
+
"pl7.app/species": cmdSpecies,
|
|
95
98
|
"pl7.app/vdj/chain": chain,
|
|
96
99
|
"pl7.app/vdj/isLibrary": "true",
|
|
97
|
-
"pl7.app/label": species + "
|
|
100
|
+
"pl7.app/label": text.split(species, "_custom")[0] + " " + chain + " library"
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
}
|