-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipline_workflow.dot
262 lines (228 loc) · 5.97 KB
/
pipline_workflow.dot
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
digraph sns_pipeline {
// overall graph label
// label="NGS580 Data Analysis Pipeline\n\n"
label=<<FONT POINT-SIZE="20">NGS580 Data Analysis Pipeline</FONT><BR /><BR />>
labelloc="t";
graph [fontname = "helvetica"];
node [fontname = "helvetica"];
edge [fontname = "helvetica"];
// define all the nodes in the order of appearance
Start
Trimmomatic
BWA_MEM
Sambamba
Rsamtools
GATK_DepthOfCoverage
GATK_Realign
GATK_Recalibrate
CNVkit
Control_Freec
CNV_compare
LoFreq
GATK_HaplotypeCaller
GATK_MuTect2
ANNOVAR
Reporting
QC
Review
// add styles and labels to the pipeline steps
Start [
label=<<FONT POINT-SIZE="14">
Demultiplexed sequencing<BR />
reads from NextSeq<BR />
• output: .fastq
</FONT>>,
style=rounded, shape=box, color=Black
]
// pre-processing pipeline steps
Trimmomatic [
label=<<FONT POINT-SIZE="18">Trimmomatic</FONT><BR />
<FONT POINT-SIZE="12">
trim low quality sequence reads<BR />
• input: .fastq<BR />
• output: .fastq
</FONT>>,
style=rounded, shape=box, color=Blue
]
BWA_MEM [
label=<<FONT POINT-SIZE="18">BWA MEM</FONT><BR />
<FONT POINT-SIZE="12">
align reads<BR />
• input: .fastq<BR />
• output: .bam
</FONT>>,
style=rounded, shape=box, color=Blue
]
Sambamba [
label=<<FONT POINT-SIZE="18">Sambamba</FONT><BR />
<FONT POINT-SIZE="12">
filter poorly mapped and duplicated reads<BR />
• input: .bam<BR />
• output: .bam
</FONT>>,
style=rounded, shape=box, color=Blue
]
GATK_Realign [
label=<<FONT POINT-SIZE="18">GATK</FONT><BR />
<FONT POINT-SIZE="16">
RealignerTargetCreator<BR />
IndelRealigner<BR />
BaseRecalibrator<BR />
</FONT>
<FONT POINT-SIZE="12">
recalibrate and realign reads<BR />
• input: .bam<BR />
• output: .bam
</FONT>>,
style=rounded, shape=box, color=Blue
]
GATK_Recalibrate [
label=<<FONT POINT-SIZE="18">GATK</FONT><BR />
<FONT POINT-SIZE="16">
AnalyzeCovariates<BR />
PrintReads<BR />
BaseRecalibrator<BR />
</FONT>
<FONT POINT-SIZE="12">
visualize and save recalibration results<BR />
• input: .bam<BR />
• output: .bam, .txt, .pdf
</FONT>>,
style=rounded, shape=box, color=Blue
]
// quality control pipeline steps -
Rsamtools [
label=<<FONT POINT-SIZE="18">Rsamtools</FONT><BR />
<FONT POINT-SIZE="12">
calculate and visualize fragment sizes<BR />
(custom scripts)<BR />
• input: .bam<BR />
• output: .pdf
</FONT>>,
style=rounded, shape=box, color=Orange
]
GATK_DepthOfCoverage [
label=<<FONT POINT-SIZE="18">GATK<BR /></FONT>
<FONT POINT-SIZE="16">
DepthOfCoverage
</FONT>
<FONT POINT-SIZE="12">
<BR />evaluate coverage at target regions<BR />
• input: .bam<BR />
• output: .txt
</FONT>>,
style=rounded, shape=box, color=Orange
]
// Variant Calling & analysis steps
LoFreq [
label=<<FONT POINT-SIZE="18">LoFreq</FONT><BR />
<FONT POINT-SIZE="12">
high sensitivity variant calling<BR />
• input: .bam, .bed<BR />
• output: .vcf
</FONT>>,
style=rounded, shape=box, color=Green
]
GATK_HaplotypeCaller [
label=<<FONT POINT-SIZE="18">GATK<BR />HaplotypeCaller</FONT><BR />
<FONT POINT-SIZE="12">
variant calling<BR />
• input: .bam, .bed<BR />
• output: .vcf
</FONT>>,
style=rounded, shape=box, color=Green
]
GATK_MuTect2 [
label=<<FONT POINT-SIZE="18">GATK<BR />MuTect2</FONT><BR />
<FONT POINT-SIZE="12">
tumor-normal variant calling<BR />
• input: .bam, .bed<BR />
• output: .vcf
</FONT>>,
style=rounded, shape=box, color=Green
]
CNVkit [
label=<<FONT POINT-SIZE="18">CNVKit</FONT><BR />
<FONT POINT-SIZE="12">
copy number variant analysis<BR />
• input: .bam<BR />
• output: .txt, .pdf
</FONT>>,
style=rounded, shape=box, color=Green
]
Control_Freec [
label=<<FONT POINT-SIZE="18">Control-Freec</FONT><BR />
<FONT POINT-SIZE="12">
copy number variant analysis<BR />
• input: .bam<BR />
• output: .txt, .pdf
</FONT>>,
style=rounded, shape=box, color=Green
]
ANNOVAR [
label=<<FONT POINT-SIZE="18">ANNOVAR</FONT><BR />
<FONT POINT-SIZE="12">
Variant annotation<BR />
• input: .vcf<BR />
• output: .txt
</FONT>>,
style=rounded, shape=box, color=Green
]
// custom downstream steps
Reporting [
label=<<FONT POINT-SIZE="14">Custom Report Generation</FONT>>,
style=rounded, shape=box, color=Black
]
QC [
label=<<FONT POINT-SIZE="14">QC Check and email output</FONT>>,
style=rounded, shape=box, color=Black
]
CNV_compare [
label=<<FONT POINT-SIZE="14">Compare CNV analysis output</FONT>>,
style=rounded, shape=box, color=Black
]
Review [
label=<<FONT POINT-SIZE="14">Clinical Review</FONT>>,
style=rounded, shape=box, color=Purple
]
// layout
subgraph cluster1 {
style="invis"
Trimmomatic -> BWA_MEM -> Sambamba
Sambamba -> Rsamtools
Sambamba -> GATK_DepthOfCoverage
Sambamba -> CNVkit
Sambamba -> Control_Freec
}
subgraph cluster2 {
style="invis"
GATK_Realign -> GATK_Recalibrate
GATK_Recalibrate -> LoFreq -> ANNOVAR
GATK_Recalibrate -> GATK_HaplotypeCaller -> ANNOVAR
GATK_Recalibrate -> GATK_MuTect2 -> ANNOVAR
}
subgraph cluster3 {
style="invis"
Reporting -> CNV_compare
Reporting -> QC
CNV_compare -> Review
Reporting -> Review
QC -> Review
}
splines="ortho"
{rank=same Start Trimmomatic GATK_Realign}
Start -> Trimmomatic
// Sambamba -> CNVkit
// Sambamba -> Control_Freec
CNVkit -> CNV_compare
Control_Freec -> CNV_compare
// CNV_compare -> Reporting
Sambamba -> GATK_Realign //[constraint=false]
ANNOVAR -> Reporting
Rsamtools -> Reporting
GATK_DepthOfCoverage -> Reporting
{rank=same QC Review}
// Reporting -> QC
// Reporting -> Review
// QC -> Review
}