-
Notifications
You must be signed in to change notification settings - Fork 18
/
lowercase-directory.cwl
104 lines (96 loc) · 2.1 KB
/
lowercase-directory.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
requirements:
- class: ScatterFeatureRequirement
inputs:
in_dir: Directory
dir_name:
default: gs_lowercase
type: string
outputs:
out_dir:
type: Directory
outputSource: save-files-to-dir-4/out
steps:
ls-1:
run:
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [python, -m, nlppln.commands.ls]
inputs:
- type: Directory
inputBinding:
position: 2
id: _:ls-1#in_dir
- type:
- 'null'
- boolean
inputBinding:
prefix: --recursive
id: _:ls-1#recursive
stdout: cwl.output.json
outputs:
- type:
type: array
items: File
id: _:ls-1#out_files
id: _:ls-1
in:
in_dir: in_dir
out:
- out_files
lowercase-1:
run:
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [python, -m, nlppln.commands.lowercase]
inputs:
- type: File
inputBinding:
position: 1
id: _:lowercase-1#in_file
stdout: $(inputs.in_file.nameroot).txt
outputs:
- type: File
outputBinding:
glob: $(inputs.in_file.nameroot).txt
id: _:lowercase-1#out_files
id: _:lowercase-1
in:
in_file: ls-1/out_files
out:
- out_files
scatter:
- in_file
scatterMethod: dotproduct
save-files-to-dir-4:
run:
cwlVersion: v1.0
class: ExpressionTool
requirements:
- class: InlineJavascriptRequirement
inputs:
- type: string
id: _:save-files-to-dir-4#dir_name
- type:
type: array
items: File
id: _:save-files-to-dir-4#in_files
outputs:
- type: Directory
id: _:save-files-to-dir-4#out
expression: |
${
return {"out": {
"class": "Directory",
"basename": inputs.dir_name,
"listing": inputs.in_files
} };
}
id: _:save-files-to-dir-4
in:
dir_name: dir_name
in_files: lowercase-1/out_files
out:
- out