-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.cwl
62 lines (57 loc) · 1.23 KB
/
pipeline.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool
requirements:
DockerRequirement:
dockerPull: ghcr.io/hubmapconsortium/hra-workflows-runner:main
dockerOutputDirectory: /output
NetworkAccess:
networkAccess: true
EnvVarRequirement:
envDef:
DATASET: $(inputs.dataset)
VERSION: $(inputs.version)
HUBMAP_TOKEN: $(inputs.hubmap_token)
SENNET_TOKEN: $(inputs.sennet_token)
DATASETS_DIR: /output/datasets
RAW_DATA_DIR: /output/raw-data
InitialWorkDirRequirement:
listing:
- entryname: datasets
writable: false
entry: $(inputs.datasets_dir)
- entryname: raw-data
writable: true
entry: $(inputs.rawdata_dir)
stdout: output.txt
stderr: err_output.txt
inputs:
datasets_dir:
type: Directory
rawdata_dir:
type: Directory
dataset:
type: string
default: sample
version:
type: string
default: v1
hubmap_token:
type: string
default: ''
command:
type: string
default: ./run.sh
outputs:
rawdata_out:
type: Directory
outputBinding:
glob: raw-data
command_out:
type: stdout
command_err_out:
type: stderr
baseCommand: bash
arguments:
- -c
- cd /workspace && $(inputs.command)