Skip to content

Commit 616b7e3

Browse files
Moved the coverage_dropouts task from upstream.wdl to downstream.wdl, where it can take advantage of the phased reads to report haplotype dropouts. (#202)
(cherry picked from commit 0542f79)
1 parent 6a7dc12 commit 616b7e3

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

workflows/downstream/downstream.wdl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version 1.0
22

33
import "../wdl-common/wdl/structs.wdl"
44
import "../wdl-common/wdl/tasks/hiphase.wdl" as Hiphase
5+
import "../wdl-common/wdl/tasks/trgt.wdl" as Trgt
56
import "../wdl-common/wdl/tasks/bcftools.wdl" as Bcftools
67
import "../wdl-common/wdl/tasks/cpg_pileup.wdl" as Cpgpileup
78
import "../wdl-common/wdl/tasks/pbstarphase.wdl" as Pbstarphase
@@ -105,6 +106,15 @@ workflow downstream {
105106
# hiphase.phased_vcfs[1] -> phased SV VCF
106107
# hiphase.phased_vcfs[2] -> phased TRGT VCF
107108
109+
call Trgt.coverage_dropouts {
110+
input:
111+
aligned_bam = hiphase.haplotagged_bam,
112+
aligned_bam_index = hiphase.haplotagged_bam_index,
113+
trgt_bed = ref_map["trgt_tandem_repeat_bed"], # !FileCoercion
114+
out_prefix = "~{sample_id}.~{ref_map['name']}",
115+
runtime_attributes = default_runtime_attributes
116+
}
117+
108118
call Bcftools.bcftools_stats_roh_small_variants {
109119
input:
110120
sample_id = sample_id,
@@ -178,6 +188,7 @@ workflow downstream {
178188
String stat_mapped_percent = hiphase.stat_mapped_percent
179189
File mapq_distribution_plot = hiphase.mapq_distribution_plot
180190
File mg_distribution_plot = hiphase.mg_distribution_plot
191+
File trgt_coverage_dropouts = coverage_dropouts.dropouts
181192

182193
# small variant stats
183194
File small_variant_stats = bcftools_stats_roh_small_variants.stats

workflows/family.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ workflow humanwgs_family {
350350
Array[File] phased_trgt_vcf_index = downstream.phased_trgt_vcf_index
351351
Array[File] trgt_spanning_reads = upstream.trgt_spanning_reads
352352
Array[File] trgt_spanning_reads_index = upstream.trgt_spanning_reads_index
353-
Array[File] trgt_coverage_dropouts = upstream.trgt_coverage_dropouts
353+
Array[File] trgt_coverage_dropouts = downstream.trgt_coverage_dropouts
354354
Array[String] stat_trgt_genotyped_count = upstream.stat_trgt_genotyped_count
355355
Array[String] stat_trgt_uncalled_count = upstream.stat_trgt_uncalled_count
356356

workflows/singleton.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ workflow humanwgs_singleton {
290290
File phased_trgt_vcf_index = downstream.phased_trgt_vcf_index
291291
File trgt_spanning_reads = upstream.trgt_spanning_reads
292292
File trgt_spanning_reads_index = upstream.trgt_spanning_reads_index
293-
File trgt_coverage_dropouts = upstream.trgt_coverage_dropouts
293+
File trgt_coverage_dropouts = downstream.trgt_coverage_dropouts
294294
String stat_trgt_genotyped_count = upstream.stat_trgt_genotyped_count
295295
String stat_trgt_uncalled_count = upstream.stat_trgt_uncalled_count
296296

workflows/upstream/upstream.wdl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,6 @@ workflow upstream {
145145
runtime_attributes = default_runtime_attributes
146146
}
147147
148-
call Trgt.coverage_dropouts {
149-
input:
150-
aligned_bam = aligned_bam_data,
151-
aligned_bam_index = aligned_bam_index,
152-
trgt_bed = ref_map["trgt_tandem_repeat_bed"], # !FileCoercion
153-
out_prefix = "~{sample_id}.~{ref_map['name']}",
154-
runtime_attributes = default_runtime_attributes
155-
}
156-
157148
call Paraphase.paraphase {
158149
input:
159150
aligned_bam = aligned_bam_data,
@@ -257,7 +248,6 @@ workflow upstream {
257248
File trgt_vcf_index = trgt.vcf_index
258249
File trgt_spanning_reads = trgt.bam
259250
File trgt_spanning_reads_index = trgt.bam_index
260-
File trgt_coverage_dropouts = coverage_dropouts.dropouts
261251
String stat_trgt_genotyped_count = trgt.stat_genotyped_count
262252
String stat_trgt_uncalled_count = trgt.stat_uncalled_count
263253

0 commit comments

Comments
 (0)