generated from Sage-Bionetworks-Challenges/writeup-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidate.cwl
59 lines (52 loc) · 1.21 KB
/
validate.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
#!/usr/bin/env cwl-runner
#
# Validate a Project (writeup) submission
#
cwlVersion: v1.0
class: CommandLineTool
baseCommand: challengeutils
hints:
DockerRequirement:
dockerPull: sagebionetworks/challengeutils:v4.0.1
requirements:
- class: InlineJavascriptRequirement
inputs:
- id: submissionid
type: int
- id: challengewiki
type: string
- id: public
type: boolean?
- id: admin
type: string?
- id: synapse_config
type: File
arguments:
- valueFrom: $(inputs.synapse_config.path)
prefix: -c
- valueFrom: validate-project
- valueFrom: $(inputs.submissionid)
- valueFrom: $(inputs.challengewiki)
- valueFrom: $(inputs.public)
prefix: --public
- valueFrom: $(inputs.admin)
prefix: --admin
- valueFrom: results.json
prefix: --output
outputs:
- id: results
type: File
outputBinding:
glob: results.json
- id: status
type: string
outputBinding:
glob: results.json
loadContents: true
outputEval: $(JSON.parse(self[0].contents)['submission_status'])
- id: invalid_reasons
type: string
outputBinding:
glob: results.json
loadContents: true
outputEval: $(JSON.parse(self[0].contents)['submission_errors'])