generated from Sage-Bionetworks-Challenges/model-to-data-challenge-workflow
-
Notifications
You must be signed in to change notification settings - Fork 2
/
validate_tool.cwl
69 lines (62 loc) · 1.39 KB
/
validate_tool.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
#!/usr/bin/env cwl-runner
#
# Annotates clinical note
#
cwlVersion: v1.0
class: CommandLineTool
baseCommand: python3
inputs:
- id: submissionid
type: int
- id: synapse_config
type: File
- id: status
type: boolean?
- id: docker_script
type: File
- id: annotator_type
type: string
- id: subset_data
type: File
- id: schema_version
type: string
arguments:
- valueFrom: $(inputs.docker_script.path)
- valueFrom: $(inputs.submissionid)
prefix: -s
- valueFrom: $(inputs.synapse_config.path)
prefix: -c
- valueFrom: results.json
prefix: -r
- valueFrom: $(inputs.annotator_type)
prefix: -a
- valueFrom: $(inputs.subset_data)
prefix: --subset_data
- valueFrom: $(inputs.schema_version)
prefix: --schema_version
requirements:
- class: InitialWorkDirRequirement
listing:
- $(inputs.docker_script)
- class: InlineJavascriptRequirement
outputs:
finished:
type: boolean
outputBinding:
outputEval: $( true )
results:
type: File
outputBinding:
glob: results.json
status:
type: string
outputBinding:
glob: results.json
loadContents: true
outputEval: $(JSON.parse(self[0].contents)['submission_status'])
invalid_reasons:
type: string
outputBinding:
glob: results.json
loadContents: true
outputEval: $(JSON.parse(self[0].contents)['submission_errors'])