census_density.cwl

 1#! cwl-runner
 2
 3cwlVersion: v1.1
 4class: CommandLineTool
 5baseCommand: [python, -m, census.calculate_density]
 6requirements:
 7  EnvVarRequirement:
 8    envDef:
 9      HTTPS_PROXY: $(inputs.http_proxy)
10      HTTP_PROXY: $(inputs.http_proxy)
11  NetworkAccess:
12    networkAccess: true
13
14
15inputs:
16  http_proxy:
17    type: string
18    default: ""
19  densities:
20    type: string[]
21    default: ["population"]
22    inputBinding:
23      prefix: -d
24  log:
25    type: File
26    default:
27      class: File
28      location: census.log
29    inputBinding:
30      prefix: --log
31  in_pkl:
32    type: File
33    default:
34      class: File
35      location: census.pkl
36    inputBinding:
37      prefix: --in_pkl
38  out_pkl:
39    type: string
40    default: "census_densities.pkl"
41    inputBinding:
42      prefix: --out_pkl
43
44outputs:
45  pkl:
46    type: File
47    outputBinding:
48      glob: $(inputs.out_pkl)