-
Notifications
You must be signed in to change notification settings - Fork 0
/
map4sci.cwl
69 lines (64 loc) · 1.46 KB
/
map4sci.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
requirements:
DockerRequirement:
dockerPull: ghcr.io/cns-iu/map4sci:main
dockerOutputDirectory: /workspace/data-processor/output
EnvVarRequirement:
envDef:
CURRENT_DATASET: $(inputs.dataset)
CURRENT_VERSION: $(inputs.version)
DATASETS_DIR: /workspace/data-processor/output/datasets
NODE_OPTIONS: --max-old-space-size=24000
RAW_DATA_DIR: /workspace/data-processor/output/raw-data
SITE_DIR: /workspace/data-processor/output/site
InitialWorkDirRequirement:
listing:
- entryname: datasets
writable: false
entry: $(inputs.datasets_dir)
- entryname: raw-data
writable: true
entry: $(inputs.rawdata_dir)
- entryname: site
writable: true
entry: $(inputs.site_dir)
inputs:
dataset:
type: string
default: sample
datasets_dir:
type: Directory
rawdata_dir:
type: Directory
script:
type: string?
inputBinding:
position: 1
script_cmd:
type: string
default: cd /workspace/data-processor && ./run.sh
site_dir:
type: Directory
version:
type: string
default: v1
outputs:
datasets:
type: Directory
outputBinding:
glob: datasets
raw_data_out:
type: Directory
outputBinding:
glob: raw-data
site_data_out:
type: Directory
outputBinding:
glob: site
stdout: output.txt
baseCommand: bash
arguments:
- -c
- $(inputs.script_cmd)