generated from Sage-Bionetworks-Challenges/model-to-data-challenge-workflow
-
Notifications
You must be signed in to change notification settings - Fork 2
/
annotate_note.cwl
50 lines (46 loc) · 952 Bytes
/
annotate_note.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
#!/usr/bin/env cwl-runner
#
# Annotates clinical note
#
cwlVersion: v1.0
class: CommandLineTool
baseCommand: python3
inputs:
- id: submissionid
type: int
- id: parentid
type: string
- id: status
type: boolean?
- id: synapse_config
type: File
- id: data_notes
type: File
- id: docker_script
type: File
- id: annotator_type
type: string
- id: quota
type: int
arguments:
- valueFrom: $(inputs.docker_script.path)
- valueFrom: $(inputs.submissionid)
prefix: -s
- valueFrom: $(inputs.synapse_config.path)
prefix: -c
- valueFrom: $(inputs.data_notes)
prefix: -i
- valueFrom: $(inputs.annotator_type)
prefix: -a
- valueFrom: $(inputs.quota)
prefix: -q
requirements:
- class: InitialWorkDirRequirement
listing:
- $(inputs.docker_script)
- class: InlineJavascriptRequirement
outputs:
predictions:
type: File
outputBinding:
glob: predictions.json