forked from EOEPCA/app-snuggs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-package.cwl
78 lines (68 loc) · 1.69 KB
/
app-package.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
70
71
72
73
74
75
76
77
78
$graph:
- class: Workflow
doc: Applies s expressions to EO acquisitions
id: this_identifier_is_too_long_for_some_reason
requirements:
- class: ScatterFeatureRequirement
inputs:
input_reference:
doc: Input product reference
label: Input product reference
type: string[]
s_expression:
doc: s expression
label: s expression
type: string[]
label: s expressions
outputs:
- id: wf_outputs
outputSource:
- step_1/results
type:
Directory[]
steps:
step_1:
in:
input_reference: input_reference
s_expression: s_expression
out:
- results
run: '#clt'
scatter: [input_reference, s_expression]
scatterMethod: flat_crossproduct
- baseCommand: s-expression
class: CommandLineTool
id: clt
arguments:
- --input_reference
- valueFrom: $( inputs.input_reference )
- --s-expression
- valueFrom: ${ return inputs.s_expression.split(":")[1]; }
- --cbn
- valueFrom: ${ return inputs.s_expression.split(":")[0]; }
inputs:
input_reference:
type: string
s_expression:
type: string
outputs:
results:
outputBinding:
glob: .
type: Directory
requirements:
EnvVarRequirement:
envDef:
PATH: /srv/conda/envs/env_app_snuggs/bin:/srv/conda/bin:/srv/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ResourceRequirement: {}
InlineJavascriptRequirement: {}
DockerRequirement:
dockerPull: eoepca/snuggs:0.3.0
#stderr: std.err
#stdout: std.out
cwlVersion: v1.0
$namespaces:
s: https://schema.org/
s:softwareVersion: 0.3.0
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf