-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathAggregateSusieWorkflow.wdl
More file actions
142 lines (114 loc) · 3.8 KB
/
AggregateSusieWorkflow.wdl
File metadata and controls
142 lines (114 loc) · 3.8 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
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
version 1.0
task AggregateSusie{
input{
#Array[File] SusieParquets
File SusieParquetsFOFN
Int Memory
String OutputPrefix
Int NumThreads
}
command <<<
set -euo pipefail
export GSUTIL_PARALLEL_PROCESS_COUNT=32
export GSUTIL_PARALLEL_THREAD_COUNT=8
awk '{print $1}' ~{SusieParquetsFOFN} | grep -v '^$' > file_paths.txt
mkdir -p localized
gsutil -m cp -I localized/ < file_paths.txt
# Write the new local file paths into filelist.txt
ls -1 "$(pwd)/localized/*" > filelist.txt
Rscript /tmp/merge_susie.R --FilePaths file_paths.txt --OutputPrefix ~{OutputPrefix}
>>>
runtime {
# the docker sha that the workflow ran with is:
# ghcr.io/aou-multiomics-analysis/aggregate_susie@sha256:ede17b5112eadb765f22cdfbd2a987da96087a1e2f0ad224994c16f1af645443
docker: "ghcr.io/aou-multiomics-analysis/aggregate_susie:main@sha256:ede17b5112eadb765f22cdfbd2a987da96087a1e2f0ad224994c16f1af645443"
disks: "local-disk 500 SSD"
memory: "~{Memory}GB"
cpu: "~{NumThreads}"
}
output {
File MergedSusieParquet = "${OutputPrefix}_SusieMerged.parquet"
File MergedSusieTsv = "${OutputPrefix}_SusieMerged.tsv.gz"
}
}
task AnnotateSusie {
input {
File SusieTSV
File GencodeGTF
File PlinkAfreq
String OutputPrefix
Int Memory
File AnnotationENCODE
File AnnotationFANTOM5
File AnnotationVEP
File AnnotationVEPIndex
File AnnotationGnomad
File AnnotationPhyloP
}
command <<<
set -euo pipefail
Rscript /tmp/annotate_susie_data.R \
--OutputPrefix ~{OutputPrefix} \
--GencodeGTF ~{GencodeGTF} \
--PlinkAfreq ~{PlinkAfreq} \
--SusieTSV ~{SusieTSV} \
--phyloPBigWig ~{AnnotationPhyloP} \
--FANTOM5 ~{AnnotationFANTOM5} \
--gnomadConstraint ~{AnnotationGnomad} \
--ENCODEcCRES ~{AnnotationENCODE} \
--VEPAnnotationsTable ~{AnnotationVEP}
>>>
runtime {
docker: "ghcr.io/aou-multiomics-analysis/aggregate_susie:main@sha256:ede17b5112eadb765f22cdfbd2a987da96087a1e2f0ad224994c16f1af645443"
disks: "local-disk 500 SSD"
memory: "~{Memory}GB"
cpu: "1"
}
output {
File AnnotatedSusieParquetOut = "~{OutputPrefix}_SusieMerged.annotated.tsv"
}
}
workflow AggregateSusieWorkflow {
input {
#Array[File] SusieParquets
File SusieParquetsFOFN
Int Memory
String OutputPrefix
Int NumThreads
File GencodeGTF
File PlinkAfreq
File AnnotationPhyloP
File AnnotationENCODE
File AnnotationFANTOM5
File AnnotationVEP
File AnnotationGnomad
File AnnotationVEPIndex
}
String pipeline_version = "aou_9.0.2"
call AggregateSusie {
input:
SusieParquetsFOFN = SusieParquetsFOFN,
OutputPrefix = OutputPrefix,
Memory = Memory,
NumThreads = NumThreads
}
call AnnotateSusie {
input:
SusieTSV = AggregateSusie.MergedSusieTsv,
GencodeGTF = GencodeGTF,
PlinkAfreq = PlinkAfreq,
OutputPrefix = OutputPrefix,
Memory = Memory,
AnnotationPhyloP = AnnotationPhyloP,
AnnotationENCODE = AnnotationENCODE,
AnnotationFANTOM5 = AnnotationFANTOM5,
AnnotationVEP = AnnotationVEP,
AnnotationVEPIndex = AnnotationVEPIndex,
AnnotationGnomad = AnnotationGnomad
}
output {
File AnnotatedMergedSusieParquet = AnnotateSusie.AnnotatedSusieParquetOut
#File MergedSusieParquet = AggregateSusie.MergedSusieParquet
#File MergedSusieTsv = AggregateSusie.MergedSusieTsv
}
}