generated from Sage-Bionetworks-Challenges/model-to-data-challenge-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwriteup-workflow.cwl
146 lines (134 loc) · 3.98 KB
/
writeup-workflow.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
label: Olfactory mixtures prediction workflow - Writeups
requirements:
- class: StepInputExpressionRequirement
inputs:
adminUploadSynId:
label: Synapse Folder ID accessible by an admin
type: string
submissionId:
label: Submission ID
type: int
submitterUploadSynId:
label: Synapse Folder ID accessible by the submitter
type: string
synapseConfig:
label: filepath to .synapseConfig file
type: File
workflowSynapseId:
label: Synapse File ID that links to the workflow
type: string
organizers:
label: User or team ID for challenge organizers
type: string
default: "DREAM olfactory mixtures Organizers"
outputs: []
steps:
validate:
doc: Check that submission is a valid Synapse project
run: steps/validate-writeup.cwl
in:
- id: synapse_config
source: "#synapseConfig"
- id: submissionid
source: "#submissionId"
- id: challengewiki
valueFrom: "syn53470621"
- id: public
default: true
- id: admin
source: "#organizers"
out:
- id: results
- id: status
- id: invalid_reasons
validation_email:
doc: >
Send notifcation email to the submitter whether writeup submission
has been accepted
run: |-
https://raw.githubusercontent.com/Sage-Bionetworks/ChallengeWorkflowTemplates/v4.1/cwl/validate_email.cwl
in:
- id: submissionid
source: "#submissionId"
- id: synapse_config
source: "#synapseConfig"
- id: status
source: "#validate/status"
- id: invalid_reasons
source: "#validate/invalid_reasons"
# - id: errors_only
# default: true
out: [finished]
annotate_validation_with_output:
doc: >
Add `submission_status` and `submission_errors` annotations to the
submission
run: |-
https://raw.githubusercontent.com/Sage-Bionetworks/ChallengeWorkflowTemplates/v4.1/cwl/annotate_submission.cwl
in:
- id: submissionid
source: "#submissionId"
- id: annotation_values
source: "#validate/results"
- id: to_public
default: true
- id: force
default: true
- id: synapse_config
source: "#synapseConfig"
out: [finished]
check_status:
run: |-
https://raw.githubusercontent.com/Sage-Bionetworks/ChallengeWorkflowTemplates/v4.1/cwl/check_status.cwl
in:
- id: status
source: "#validate/status"
- id: previous_annotation_finished
source: "#annotate_validation_with_output/finished"
- id: previous_email_finished
source: "#validation_email/finished"
out: [finished]
archive:
doc: Create a copy of the Synapse project for archival purposes
run: steps/archive.cwl
in:
- id: synapse_config
source: "#synapseConfig"
- id: submissionid
source: "#submissionId"
- id: admin
source: "#organizers"
- id: check_validation_finished
source: "#check_status/finished"
out:
- id: results
annotate_archive_with_output:
doc: Add `writeup` annotation to the submission
run: |-
https://raw.githubusercontent.com/Sage-Bionetworks/ChallengeWorkflowTemplates/v4.1/cwl/annotate_submission.cwl
in:
- id: submissionid
source: "#submissionId"
- id: annotation_values
source: "#archive/results"
- id: to_public
default: true
- id: force
default: true
- id: synapse_config
source: "#synapseConfig"
- id: previous_annotation_finished
source: "#annotate_validation_with_output/finished"
out: [finished]
s:author:
- class: s:Person
s:identifier: https://orcid.org/0000-0002-5622-7998
s:email: [email protected]
s:name: Verena Chung
s:codeRepository: https://github.com/Sage-Bionetworks-Challenges/olfactory-mixtures-prediction
s:license: https://spdx.org/licenses/Apache-2.0
$namespaces:
s: https://schema.org/