-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_submission_attributes.cwl
61 lines (46 loc) · 1.12 KB
/
get_submission_attributes.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
baseCommand:
- python
- /usr/local/bin/get_submission_attributes.py
hints:
- class: DockerRequirement
dockerPull: quay.io/andrewelamb/tumor_deconvolution_challenge_python:1.0
requirements:
- class: InlineJavascriptRequirement
inputs:
- id: submissionid
type: int
inputBinding:
prefix: -s
- id: synapse_config
type: File
inputBinding:
prefix: -c
outputs:
- id: userid
type: string
outputBinding:
glob: results.json
loadContents: true
outputEval: $(JSON.parse(self[0].contents)['userid'])
- id: name
type: string
outputBinding:
glob: results.json
loadContents: true
outputEval: $(JSON.parse(self[0].contents)['name'])
- id: evaluationid
type: string
outputBinding:
glob: results.json
loadContents: true
outputEval: $(JSON.parse(self[0].contents)['evaluationid'])
$namespaces:
s: https://schema.org/
s:author:
- class: s:Person
s:identifier: https://orcid.org/0000-0002-0326-7494
s:email: [email protected]
s:name: Andrew Lamb