forked from reanahub/reana-demo-worldpopulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
worldpopulation.cwl
40 lines (35 loc) · 921 Bytes
/
worldpopulation.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
#!/usr/bin/env cwl-runner
# Note that if you are working on the analysis development locally, i.e. outside
# of the REANA platform, you can proceed as follows:
#
# $ cd reana-demo-worldpopulation
# $ mkdir cwl-local-run
# $ cd cwl-local-run
# $ cp -a ../code ../data ../workflow/cwl/worldpopulation_job.yml .
# $ cwltool --quiet --outdir="../results" ../workflow/cwl/worldpopulation.cwl worldpopulation_job.yml
# $ firefox ../results/plot.png
cwlVersion: v1.0
class: Workflow
inputs:
notebook: File
input_file: File
output_file: string
region: string
year_min: int
year_max: int
outputs:
plot:
type: File
outputSource:
worldpopulation/plot
steps:
worldpopulation:
run: worldpopulation.tool
in:
notebook: notebook
input_file: input_file
output_file: output_file
region: region
year_min: year_min
year_max: year_max
out: [plot]