-
Notifications
You must be signed in to change notification settings - Fork 4
/
workflow.cwl
278 lines (253 loc) · 5.63 KB
/
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
class: Workflow
cwlVersion: v1.0
id: rd_connect
label: RD_Connect
inputs:
- id: curl_reference_genome_url
type: File
- id: curl_fastq_urls
type: File
- id: curl_known_indels_url
type: File
- id: curl_known_sites_url
type: File
- id: readgroup_str
type: string
- id: chromosome
type: string?
# bwa mem, samtools sort, gatk haplotype caller
- id: threads
type: string?
- id: sample_name
type: string
outputs: []
steps:
- id: fastqs_in
in:
- id: curl_config_file
source: curl_fastq_urls
out:
- id: in_files
run: curl.cwl
- id: reference_in
in:
- id: curl_config_file
source: curl_reference_genome_url
out:
- id: in_files
run: curl.cwl
- id: gunzip
in:
- id: reference_file
source:
- reference_in/in_files
out:
- id: unzipped_fasta
run: gunzip.cwl
- id: picard_dictionary
in:
- id: reference_genome
source:
- gunzip/unzipped_fasta
out:
- id: dict
run: picard_dictionary.cwl
- id: cutadapt2
in:
- id: raw_sequences
source:
- fastqs_in/in_files
out:
- id: trimmed_fastq
run: cutadapt-v.1.18.cwl
- id: bwa_index
in:
- id: reference_genome
source:
- gunzip/unzipped_fasta
out:
- id: output
run: bwa-index.cwl
- id: samtools_index
in:
- id: input
source:
- gunzip/unzipped_fasta
out:
- id: index_fai
run: samtools_index.cwl
- id: bwa_mem
in:
- id: trimmed_fastq
source:
- cutadapt2/trimmed_fastq
- id: read_group
source:
- readgroup_str
- id: sample_name
source:
- sample_name
- id: reference_genome
source:
- bwa_index/output
- id: threads
source:
- threads
out:
- id: aligned_sam
run: bwa-mem.cwl
- id: samtools_sort
in:
- id: input
source:
- bwa_mem/aligned_sam
- id: threads
source:
- threads
out:
- id: sorted_bam
run: samtools_sort_bam.cwl
- id: picard_markduplicates
in:
- id: input
source:
- samtools_sort/sorted_bam
out:
- id: md_bam
- id: output_metrics
run: picard_markduplicates.cwl
label: picard-MD
- id: known_indels_in
in:
- id: curl_config_file
source: curl_known_indels_url
out:
- id: known_indels_file
run: curl_indels.cwl
- id: gatk3-rtc
in:
- id: input
source:
- picard_markduplicates/md_bam
- id: reference_genome
source:
- samtools_index/index_fai
- id: dict
source:
- picard_dictionary/dict
- id: known_indels
source:
- known_indels_in/known_indels_file
out:
- id: rtc_intervals_file
run: gatk3-rtc.cwl
label: gatk3-rtc
- id: gatk-ir
in:
- id: input
source:
- picard_markduplicates/md_bam
- id: rtc_intervals
source:
- gatk3-rtc/rtc_intervals_file
- id: reference_genome
source:
- samtools_index/index_fai
- id: dict
source:
- picard_dictionary/dict
out:
- id: realigned_bam
run: gatk-ir.cwl
label: gatk-ir
- id: known_sites_in
in:
- id: curl_config_file
source: curl_known_sites_url
out:
- id: known_sites_file
run: curl_known_sites.cwl
- id: unzipped_known_sites
in:
- id: known_sites_file
source:
- known_sites_in/known_sites_file
out:
- id: unzipped_known_sites_file
run: gunzip_known_sites.cwl
- id: gatk-base_recalibration
in:
- id: reference_genome
source:
- samtools_index/index_fai
- id: dict
source:
- picard_dictionary/dict
- id: input
source:
- gatk-ir/realigned_bam
- id: unzipped_known_sites_file
source:
- unzipped_known_sites/unzipped_known_sites_file
- id: known_indels_file
source:
- known_indels_in/known_indels_file
- id: threads
source:
- threads
out:
- id: br_model
run: gatk-base_recalibration.cwl
label: gatk-base_recalibration
- id: gatk-base_recalibration_print_reads
in:
- id: reference_genome
source:
- samtools_index/index_fai
- id: dict
source:
- picard_dictionary/dict
- id: input
source:
- gatk-ir/realigned_bam
- id: br_model
source:
- gatk-base_recalibration/br_model
out:
- id: bqsr_bam
run: gatk-base_recalibration_print_reads.cwl
label: gatk-base_recalibration_print_reads
- id: gatk_haplotype_caller
in:
- id: reference_genome
source:
- samtools_index/index_fai
- id: dict
source:
- picard_dictionary/dict
- id: input
source:
- gatk-base_recalibration_print_reads/bqsr_bam
- id: chromosome
source:
- chromosome
- id: threads
source:
- threads
out:
- id: gvcf
run: gatk-haplotype_caller.cwl
label: gatk-haplotype_caller
- id: encrypt
run: lega_upload.cwl
label: lega_upload.cwl
in:
- id: file_to_encrypt
source:
- gatk_haplotype_caller/gvcf
- gatk-base_recalibration_print_reads/bqsr_bam
- samtools_index/index_fai
- picard_markduplicates/output_metrics
out: []
requirements:
- class: MultipleInputFeatureRequirement