1#! cwl-runner
2
3cwlVersion: v1.2
4class: CommandLineTool
5baseCommand: [python, -m, census.cli]
6requirements:
7 EnvVarRequirement:
8 envDef:
9 GET_CENSUS_API_KEY: $(inputs.api_key)
10 HTTPS_PROXY: $(inputs.http_proxy)
11 HTTP_PROXY: $(inputs.http_proxy)
12 NetworkAccess:
13 networkAccess: true
14
15inputs:
16 http_proxy:
17 type: string
18 default: ""
19 api_key:
20 type: string
21 var_file:
22 type: File
23 inputBinding:
24 prefix: --var_file
25 geometry:
26 type: string
27 inputBinding:
28 prefix: --geometry
29 years:
30 type: string
31 default: "1999:2019"
32 inputBinding:
33 prefix: --years
34 log:
35 type: File
36 default:
37 class: File
38 location: census.log
39 inputBinding:
40 prefix: --log
41 pkl_file:
42 type: string
43 default: "census.pkl"
44 inputBinding:
45 prefix: --pkl_file
46 state:
47 type: string?
48 inputBinding:
49 prefix: --state
50 county:
51 type: string?
52 inputBinding:
53 prefix: --county
54
55arguments:
56 - prefix: --out
57 valueFrom: "out.csv"
58
59outputs:
60 pkl:
61 type: File
62 outputBinding:
63 glob: $(inputs.pkl_file)