Skip to content

Commit aa6e2a0

Browse files
external AF SVID is String type, annotated VCF name, and spacing (#283)
1 parent cb93e03 commit aa6e2a0

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

la

Whitespace-only changes.

wdl/AnnotateExternalAF.wdl

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ workflow AnnotateExternalAF {
3232
RuntimeAttr? runtime_attr_select_matched_svs
3333

3434
}
35-
call SplitBed as split_ref_bed{
35+
call SplitBed as split_ref_bed {
3636
input:
3737
bed = ref_bed,
3838
sv_base_mini_docker = sv_base_mini_docker,
3939
runtime_attr_override = runtime_attr_split_ref_bed
4040
}
41-
call SplitVcf as split_query_vcf{
41+
call SplitVcf as split_query_vcf {
4242
input:
4343
vcf = vcf,
4444
sv_pipeline_docker = sv_pipeline_docker,
@@ -82,20 +82,20 @@ workflow AnnotateExternalAF {
8282
vcfs = AnnotateExternalAFperContig.annotated_vcf,
8383
vcfs_idx = AnnotateExternalAFperContig.annotated_vcf_tbi,
8484
naive = true,
85-
outfile_prefix = "~{prefix}.annotated.vcf",
85+
outfile_prefix = "~{prefix}.annotated",
8686
sv_base_mini_docker = sv_base_mini_docker,
8787
runtime_attr_override = runtime_override_combine_vcfs
8888
}
8989
90-
output{
90+
output {
9191
File annotated_vcf = CombineVcfStep2.concat_vcf
9292
File annotated_vcf_tbi = CombineVcfStep2.concat_vcf_idx
9393
}
9494

9595
}
9696

97-
task SplitBed{
98-
input{
97+
task SplitBed {
98+
input {
9999
File bed
100100
String sv_base_mini_docker
101101
RuntimeAttr? runtime_attr_override
@@ -133,7 +133,7 @@ task SplitBed{
133133
cat header <(zcat ~{bed} | awk '{if ($6=="BND" || $6=="CTX") print}' ) > ~{prefix}.BND_CTX.bed
134134
>>>
135135

136-
output{
136+
output {
137137
File del = "~{prefix}.DEL.bed"
138138
File dup = "~{prefix}.DUP.bed"
139139
File ins = "~{prefix}.INS.bed"
@@ -142,8 +142,8 @@ task SplitBed{
142142
}
143143
}
144144

145-
task SplitVcf{
146-
input{
145+
task SplitVcf {
146+
input {
147147
File vcf
148148
String sv_pipeline_docker
149149
RuntimeAttr? runtime_attr_override
@@ -187,7 +187,7 @@ task SplitVcf{
187187
cat header <(awk '{if ($5=="BND" || $5=="CTX") print}' ~{prefix}.bed )> ~{prefix}.BND_CTX.bed
188188
>>>
189189

190-
output{
190+
output {
191191
File bed = "~{prefix}.bed"
192192
File del = "~{prefix}.DEL.bed"
193193
File dup = "~{prefix}.DUP.bed"
@@ -197,8 +197,8 @@ task SplitVcf{
197197
}
198198
}
199199

200-
task BedtoolsClosest{
201-
input{
200+
task BedtoolsClosest {
201+
input {
202202
File bed_a
203203
File bed_b
204204
String svtype
@@ -237,13 +237,13 @@ task BedtoolsClosest{
237237
bedtools closest -wo -a <(sort -k1,1 -k2,2n filea.bed) -b <(sort -k1,1 -k2,2n fileb.bed) >> ~{svtype}.bed
238238
>>>
239239

240-
output{
240+
output {
241241
File output_bed = "~{svtype}.bed"
242242
}
243243
}
244244

245-
task SelectMatchedSVs{
246-
input{
245+
task SelectMatchedSVs {
246+
input {
247247
File input_bed
248248
String svtype
249249
Array[String] population
@@ -282,13 +282,13 @@ task SelectMatchedSVs{
282282
-p ~{pop_list}
283283
>>>
284284

285-
output{
285+
output {
286286
File output_comp = "~{prefix}.comparison"
287287
}
288288
}
289289

290-
task SelectMatchedINSs{
291-
input{
290+
task SelectMatchedINSs {
291+
input {
292292
File input_bed
293293
String svtype
294294
Array[String] population
@@ -327,13 +327,13 @@ task SelectMatchedINSs{
327327
-p ~{pop_list}
328328
>>>
329329

330-
output{
330+
output {
331331
File output_comp = "~{prefix}.comparison"
332332
}
333333
}
334334

335-
task ModifyVcf{
336-
input{
335+
task ModifyVcf {
336+
input {
337337
Array[File] labeled_del
338338
Array[File] labeled_dup
339339
Array[File] labeled_ins
@@ -387,7 +387,7 @@ task ModifyVcf{
387387
else:
388388
body[pin[2]]=pin
389389
SVID_key.append(pin[2])
390-
header.append(['##INFO=<ID='+"~{ref_prefix}"+'_SVID'+',Number=1,Type=Float,Description="Allele frequency (for biallelic sites) or copy-state frequency (for multiallelic sites) of an overlapping event in gnomad.">'])
390+
header.append(['##INFO=<ID='+"~{ref_prefix}"+'_SVID'+',Number=1,Type=String,Description="SVID of an overlapping event in gnomad used for external allele frequency annotation.">'])
391391
392392
fin.close()
393393
fin=open('labeled.bed')
@@ -419,7 +419,7 @@ task ModifyVcf{
419419
tabix ~{prefix}.annotated.vcf.gz
420420
>>>
421421

422-
output{
422+
output {
423423
File annotated_vcf = "~{prefix}.annotated.vcf.gz"
424424
File annotated_vcf_tbi = "~{prefix}.annotated.vcf.gz.tbi"
425425
}

wdl/AnnotateExternalAFperContig.wdl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "Structs.wdl"
66
import "TasksMakeCohortVcf.wdl" as MiniTasks
77

88
workflow AnnotateExternalAFperContig {
9-
input{
9+
input {
1010
File vcf
1111
File vcf_idx
1212
File ref_bed
@@ -148,7 +148,7 @@ workflow AnnotateExternalAFperContig {
148148
149149
150150
scatter (vcf_shard in SplitVcf.vcf_shards) {
151-
call ModifyVcf{
151+
call ModifyVcf {
152152
input:
153153
labeled_del = calcu_del.output_comp,
154154
labeled_dup = calcu_dup.output_comp,
@@ -468,7 +468,7 @@ task ModifyVcf {
468468
else:
469469
body[pin[2]]=pin
470470
SVID_key.append(pin[2])
471-
header.append(['##INFO=<ID='+"~{ref_prefix}"+'_SVID'+',Number=1,Type=Float,Description="Allele frequency (for biallelic sites) or copy-state frequency (for multiallelic sites) of an overlapping event in gnomad.">'])
471+
header.append(['##INFO=<ID='+"~{ref_prefix}"+'_SVID'+',Number=1,Type=String,Description="SVID of an overlapping event in gnomad used for external allele frequency annotation.">'])
472472
473473
fin.close()
474474
fin=open('labeled.bed')

0 commit comments

Comments
 (0)