-
Notifications
You must be signed in to change notification settings - Fork 58
/
workflow.cwl
94 lines (91 loc) · 2.48 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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
label: "mutect parallel workflow"
requirements:
- class: ScatterFeatureRequirement
- class: MultipleInputFeatureRequirement
- class: SubworkflowFeatureRequirement
- class: StepInputExpressionRequirement
inputs:
reference:
type: string
tumor_cram:
type: File
secondaryFiles: [^.crai]
normal_cram:
type: File?
secondaryFiles: [^.crai]
interval_list:
type: File
scatter_count:
type: int
dbsnp_vcf:
type: File?
secondaryFiles: [.tbi]
cosmic_vcf:
type: File?
secondaryFiles: [.tbi]
artifact_detection_mode:
type: boolean
panel_of_normals_vcf:
type: File?
secondaryFiles: [.tbi]
max_alt_allele_in_normal_fraction:
type: float?
max_alt_alleles_in_normal_count:
type: int?
outputs:
unfiltered_vcf:
type: File
outputSource: filter/unfiltered_vcf
secondaryFiles: [.tbi]
filtered_vcf:
type: File
outputSource: filter/filtered_vcf
secondaryFiles: [.tbi]
steps:
split_interval_list:
run: ../detect_variants/split_interval_list.cwl
in:
interval_list: interval_list
scatter_count: scatter_count
out: [split_interval_lists]
mutect:
scatter: interval_list
run: mutect.cwl
in:
reference: reference
tumor_cram: tumor_cram
normal_cram: normal_cram
interval_list: split_interval_list/split_interval_lists
dbsnp_vcf: dbsnp_vcf
cosmic_vcf: cosmic_vcf
artifact_detection_mode: artifact_detection_mode
panel_of_normals_vcf: panel_of_normals_vcf
max_alt_allele_in_normal_fraction: max_alt_allele_in_normal_fraction
max_alt_alleles_in_normal_count: max_alt_alleles_in_normal_count
out:
[vcf]
merge:
run: ../detect_variants/merge.cwl
in:
vcfs: mutect/vcf
out:
[merged_vcf]
index:
run: ../detect_variants/index.cwl
in:
vcf: merge/merged_vcf
out:
[indexed_vcf]
filter:
run: ../fp_filter/workflow.cwl
in:
reference: reference
cram: tumor_cram
vcf: index/indexed_vcf
variant_caller:
valueFrom: "mutect"
out:
[unfiltered_vcf, filtered_vcf]