/
assembly-wf-virus.cwl
450 lines (331 loc) · 8.59 KB
/
assembly-wf-virus.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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
class: Workflow
cwlVersion: v1.0
id: assembly_wf_virus
label: assembly-wf-virus
doc: "Virus genome assembly with Unicycler and spades, in parallel. visualisation with bandage"
inputs:
##############unicycler
- id: fastq_file_type
type:
type: enum
symbols: [paired,single]
doc: "Paired and single end data"
- id: mode
type:
type: enum
symbols: [conservative,normal,bold]
doc: |
Bridging mode, values:
conservative (smaller contigs, lower misassembly)
normal (moderate contig size and misassembly rate)
bold (longest contigs, higher misassembly rate)
- id: fastq1_type
type:
type: enum
symbols:
- fastqsanger
- fastqsanger.gz
doc: "Type of the First set of reads. Only when fastq_file_type = single or paired"
default: fastqsanger
- id: fastq1
type: File
doc: "First set of reads with forward reads. Only when fastq_file_type = single or paired"
- id: fastq2_type
type:
- "null"
- type: enum
symbols:
- fastqsanger
- fastqsanger.gz
default: "null"
doc: "Type of the Second set of reads. Only when fastq_file_type=paired"
- id: fastq2
type: File?
doc: "Second set of reads with reverse reads. Only when fastq_file_type=paired"
##############spades
- id: libraries_metadata
type:
type: array
items:
type: record
fields:
- name: lib_index
type: int?
- name: orientation
type: string?
- name: lib_type
type: string?
doc: |
reads library metadata
related to libraries_fwd_rev and libraries_mono inputs
lib_index(id) must match
- id: libraries_fwd_rev
type:
type: array
items:
type: record
fields:
- name: lib_index
type: int?
- name: fwd_reads
type: File?
- name: rev_reads
type: File?
doc: |
reads file
orientation must be a value in ff, fr, rf
K-mer choices can be chosen by SPAdes instead of being entered manually
- id: libraries_mono
type:
type: array
items:
type: record
fields:
- name: lib_index
type: int?
- name: file_type
type: string?
- name: reads
type: File?
doc: |
reads file
file_type value must be in : interleaved, merged, unpaired
- id: pacbio_reads
type:
- "null"
- type: array
items: File
- id: nanopore_reads
type:
- "null"
- type: array
items: File
- id: sanger_reads
type:
- "null"
- type: array
items: File
- id: trusted_contigs
type:
- "null"
- type: array
items: File
- id: untrusted_contigs
type:
- "null"
- type: array
items: File
- id: auto_kmer_choice
type: boolean
default: true
doc: |
Automatically choose k-mer values.
K-mer choices can be chosen by SPAdes instead of being entered manually
- id: kmers
type: string
default: "21,33,55"
doc: |
K-mers to use, separated by commas.
Comma-separated list of k-mer sizes to be used
(all values must be odd, less than 128, listed in ascending order,
and smaller than the read length). The default value is 21,33,55
- id: cov_state
type:
- "null"
- type: enum
symbols:
- off
- value
- auto
doc: |
Coverage cutoff ( 'auto', or 'off', or 'value'). auto if null
when cov_state=value (User Specific) , cov_cutoff must be provided
- id: cov_cutoff
type: float?
doc: |
coverage cutoff value (a positive float number )
- id: iontorrent
type: boolean
default: false
doc: |
true if Libraries are IonTorrent reads.
- id: sc
type: boolean
default: false
doc: |
This option is required for MDA.
true if single-cell data.
- id: onlyassembler
type: boolean
default: false
doc: |
Run only assembly if true
(without read error correction)
- id: careful
type: boolean
default: true
doc: |
Careful correction.
Tries to reduce number of mismatches and short indels.
Also runs MismatchCorrector, a post processing tool,
which uses BWA tool (comes with SPAdes).
outputs:
- id: out_contigs_spades
outputSource:
- spades/out_contigs
type: 'File'
- id: out_scaffolds_spades
outputSource:
- spades/out_scaffolds
type: 'File'
- id: out_contig_stats_spades
outputSource:
- spades/out_contig_stats
type: 'File'
- id: out_scaffold_stats_spades
outputSource:
- spades/out_scaffold_stats
type: 'File'
- id: assembly_graph_spades
outputSource:
- spades/assembly_graph
type: 'File'
- id: assembly_graph_with_scaffolds_spades
outputSource:
- spades/assembly_graph_with_scaffolds
type: 'File'
- id: all_log_spades
outputSource:
- spades/all_log
type: 'File[]'
# - id: all_script
# outputSource:
# - spades/all_script
# type: 'File[]'
- id: assembly_image_spades
outputSource:
- bandage_image_spades/image
type: File
- id: assembly_info_spades
outputSource:
- bandage_info_spades/assembly_graph_info
type: File
- id: assembly_graph_unicycler
outputSource:
- unicycler/assembly_graph
type: File
- id: assembly_unicycler
outputSource:
- unicycler/assembly
type: File
# - id: exec_script2
# outputSource:
# - unicycler/exec_script
# type: File
- id: assembly_image_unicycler
outputSource:
- bandage_image_unicycler/image
type: File
- id: assembly_info_unicycler
outputSource:
- bandage_info_unicycler/assembly_graph_info
type: File
steps:
- id: unicycler
in:
- id: fastq1_type
source: fastq1_type
- id: fastq1
source: fastq1
- id: fastq2_type
source: fastq2_type
- id: fastq2
source: fastq2
- id: mode
source: mode
- id: fastq_file_type
source: fastq_file_type
out:
# - id: exec_script
- id: assembly_graph
- id: assembly
# run: ../../bio-cwl-tools/unicycler/unicycler.cwl
run: ./tool/unicycler.cwl
- id: spades
in:
- id: nanopore_reads
source: nanopore_reads
- id: pacbio_reads
source: pacbio_reads
- id: sanger_reads
source: sanger_reads
- id: libraries_metadata
source: libraries_metadata
- id: libraries_fwd_rev
source: libraries_fwd_rev
- id: libraries_mono
source: libraries_mono
- id: trusted_contigs
source: trusted_contigs
- id: untrusted_contigs
source: untrusted_contigs
- id: cov_state
source: cov_state
- id: cov_cutoff
source: cov_cutoff
- id: iontorrent
source: iontorrent
- id: sc
source: sc
- id: onlyassembler
source: onlyassembler
- id: careful
source: careful
- id: auto_kmer_choice
source: auto_kmer_choice
- id: kmers
source: kmers
out:
- id: out_contigs
- id: out_scaffolds
- id: out_contig_stats
- id: out_scaffold_stats
- id: assembly_graph
- id: assembly_graph_with_scaffolds
- id: all_log
# - id: all_script
# run: ../../bio-cwl-tools/spades/spades.cwl
run: ./tool/spades.cwl
- id: bandage_image_unicycler
in:
- id: graph
source: unicycler/assembly_graph
out:
- id: image
# run: ../../bio-cwl-tools/bandage/bandage-image.cwl
run: ./tool/bandage-image.cwl
- id: bandage_info_unicycler
in:
- id: graph
source: unicycler/assembly_graph
out:
- id: assembly_graph_info
# run: ../../bio-cwl-tools/bandage/bandage-info.cwl
run: ./tool/bandage-info.cwl
- id: bandage_image_spades
in:
- id: graph
source: spades/assembly_graph
out:
- id: image
# run: ../../bio-cwl-tools/bandage/bandage-image.cwl
run: ./tool/bandage-image.cwl
- id: bandage_info_spades
in:
- id: graph
source: spades/assembly_graph
out:
- id: assembly_graph_info
# run: ../../bio-cwl-tools/bandage/bandage-info.cwl
run: ./tool/bandage-info.cwl
requirements: []