-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlb_challenge.wdl
More file actions
74 lines (63 loc) · 1.53 KB
/
lb_challenge.wdl
File metadata and controls
74 lines (63 loc) · 1.53 KB
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
version 1.0
workflow RunVep {
input{
File InputVcf
}
call scatter_vep {
input:
FullVcf=InputVcf,
}
scatter (file in scatter_vep.output_scat) {
call run_vep {
input:
CombineVcf=file
}
}
call gather_vep{
input:
VEPfiles=run_vep.vepvcf
}
}
task scatter_vep {
input{
File FullVcf
}
command {
Rscript --vanilla /home/docker/Scripts/SplitterWDL.R ${FullVcf}
}
runtime {
docker: "garcianacho/lb_base"
}
output {
Array[File]+ output_scat = glob("*.vcf")
}
}
task run_vep {
input{
File CombineVcf
String name = basename(CombineVcf , ".vcf")
}
command {
vep -i ${CombineVcf} -o ${name}.vep.txt --vcf --plugin Blosum62 --plugin CSN --plugin Downstream --plugin HGVSIntronOffset --plugin LOVD --plugin NearestExonJB --plugin ReferenceQuality --plugin SpliceRegion --plugin TSSDistance --plugin FlagLRG,/opt/vep/CommonFiles/list_LRGs_transcripts_xrefs.txt --database
}
runtime {
docker: "garcianacho/lb_vep_full"
}
output {
File vepvcf = "${name}.vep.txt"
}
}
task gather_vep {
input{
Array[File] VEPfiles
}
command {
Rscript /home/docker/Scripts/MergerWDL.R && cat /home/docker/Scripts/vcfheader Results_nohead.vcf > Results.vcf && ls -lrt > outls.txt
}
runtime {
docker: "garcianacho/lb_base"
}
output {
File finaloutput = "Results.vcf"
}
}