/
workflow_no_dup_marking.cwl
89 lines (87 loc) · 2.01 KB
/
workflow_no_dup_marking.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
label: "Unaligned BAM to BQSR and VCF"
requirements:
- class: ScatterFeatureRequirement
- class: SubworkflowFeatureRequirement
- class: MultipleInputFeatureRequirement
inputs:
bams:
type: File[]
readgroups:
type: string[]
reference:
type: string
dbsnp_vcf:
type: File
secondaryFiles: [.tbi]
mills:
type: File
secondaryFiles: [.tbi]
known_indels:
type: File
secondaryFiles: [.tbi]
outputs:
final_cram:
type: File
outputSource: index_cram/indexed_cram
secondaryFiles: [.crai, ^.crai]
steps:
align:
scatter: [bam, readgroup]
scatterMethod: dotproduct
run: align.cwl
in:
bam: bams
readgroup: readgroups
reference: reference
out:
[tagged_bam]
merge:
run: merge.cwl
in:
bams: align/tagged_bam
out:
[merged_bam]
position_sort:
run: position_sort.cwl
in:
bam: merge/merged_bam
out:
[position_sorted_bam]
index_bam:
run: ../detect_variants/index_bam.cwl
in:
bam: position_sort/position_sorted_bam
out:
[indexed_bam]
bqsr:
run: bqsr.cwl
in:
reference: reference
bam: index_bam/indexed_bam
known_sites: [dbsnp_vcf, mills, known_indels]
out:
[bqsr_table]
apply_bqsr:
run: apply_bqsr.cwl
in:
reference: reference
bam: index_bam/indexed_bam
bqsr_table: bqsr/bqsr_table
out:
[bqsr_bam]
bam_to_cram:
run: bam_to_cram.cwl
in:
reference: reference
bam: apply_bqsr/bqsr_bam
out:
[cram]
index_cram:
run: index_cram.cwl
in:
cram: bam_to_cram/cram
out:
[indexed_cram]