-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfile-renaming.cwl
85 lines (70 loc) · 2.1 KB
/
file-renaming.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
class: CommandLineTool
cwlVersion: v1.0
label: File Renaming
doc: |-
Rename and store image collection files in a new image collection
https://github.com/PolusAI/polus-plugins/tree/master/formats/file-renaming-plugin
# See https://github.com/PolusAI/workflow-inference-compiler/blob/master/docker_remove_entrypoints.py
baseCommand: python3
arguments: ["-m", "polus.plugins.formats.file_renaming"]
requirements:
DockerRequirement:
dockerPull: polusai/file-renaming-plugin:0.2.1-dev0 # NOTE: 0.2.3 not pushed yet
# See https://www.commonwl.org/v1.0/CommandLineTool.html#InitialWorkDirRequirement
InitialWorkDirRequirement:
listing:
- entry: $(inputs.outDir)
writable: true # Output directories must be writable
InlineJavascriptRequirement: {}
inputs:
inpDir:
inputBinding:
prefix: --inpDir
type: Directory
filePattern:
inputBinding:
prefix: --filePattern
type: string
mapDirectory:
inputBinding:
prefix: --mapDirectory
type: string? # enum: raw, map, default
preview:
label: Generate a JSON file describing what the outputs should be
doc: |-
Generate a JSON file describing what the outputs should be
inputBinding:
prefix: --preview
type: boolean?
outFilePattern:
inputBinding:
prefix: --outFilePattern
type: string
outDir:
label: Output collection
doc: |-
Output collection
inputBinding:
prefix: --outDir
type: Directory
outputs:
outDir:
label: Output collection
doc: |-
Output collection
type: Directory
outputBinding:
glob: $(inputs.outDir.basename)
preview_json:
label: JSON file describing what the outputs should be
doc: |-
JSON file describing what the outputs should be
type: File? # if --preview
format: edam:format_3464
outputBinding:
glob: preview.json
$namespaces:
edam: https://edamontology.org/
$schemas:
- https://raw.githubusercontent.com/edamontology/edamontology/master/EDAM_dev.owl
# manifest: https://raw.githubusercontent.com/PolusAI/polus-plugins/master/formats/file-renaming-plugin/plugin.json