forked from genome/analysis-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexome_alignment.cwl
76 lines (75 loc) · 2.01 KB
/
exome_alignment.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
label: "exome alignment with qc"
requirements:
- class: SubworkflowFeatureRequirement
inputs:
reference:
type: File
secondaryFiles: [.fai, .bwt, .sa, .ann, .amb, .pac, ^.dict, .alt]
bams:
type: File[]
readgroups:
type: string[]
mills:
type: File
secondaryFiles: [.tbi]
known_indels:
type: File
secondaryFiles: [.tbi]
dbsnp:
type: File
secondaryFiles: [.tbi]
bait_intervals:
type: File
target_intervals:
type: File
omni_vcf:
type: File
secondaryFiles: [.tbi]
outputs:
bam:
type: File
outputSource: alignment/final_bam
insert_size_metrics:
type: File
outputSource: qc/insert_size_metrics
alignment_summary_metrics:
type: File
outputSource: qc/alignment_summary_metrics
hs_metrics:
type: File
outputSource: qc/hs_metrics
per_target_coverage_metrics:
type: File
outputSource: qc/per_target_coverage_metrics
flagstats:
type: File
outputSource: qc/flagstats
verify_bam_id_metrics:
type: File
outputSource: qc/verify_bam_id_metrics
verify_bam_id_depth:
type: File
outputSource: qc/verify_bam_id_depth
steps:
alignment:
run: unaligned_bam_to_bqsr/workflow.cwl
in:
reference: reference
bams: bams
readgroups: readgroups
mills: mills
known_indels: known_indels
dbsnp: dbsnp
out: [final_bam]
qc:
run: qc/workflow_exome.cwl
in:
bam: alignment/final_bam
reference: reference
bait_intervals: bait_intervals
target_intervals: target_intervals
omni_vcf: omni_vcf
out: [insert_size_metrics, alignment_summary_metrics, hs_metrics, per_target_coverage_metrics, flagstats, verify_bam_id_metrics, verify_bam_id_depth]