@@ -2,6 +2,7 @@ version 1.0
22
33import "CleanVcfChromosome.wdl" as CleanVcfChromosome
44import "TasksMakeCohortVcf.wdl" as MiniTasks
5+ import "Utils.wdl" as util
56
67workflow CleanVcf {
78 input {
@@ -43,6 +44,23 @@ workflow CleanVcf {
4344 RuntimeAttr ? runtime_override_combine_clean_vcf_2
4445 RuntimeAttr ? runtime_override_combine_revised_4
4546 RuntimeAttr ? runtime_override_combine_multi_ids_4
47+ RuntimeAttr ? runtime_attr_ids_from_vcf
48+ RuntimeAttr ? runtime_attr_subset_ped
49+ }
50+
51+ call util .GetSampleIdsFromVcf {
52+ input :
53+ vcf = complex_genotype_vcfs [0 ],
54+ sv_base_mini_docker = sv_base_mini_docker ,
55+ runtime_attr_override = runtime_attr_ids_from_vcf
56+ }
57+ call util .SubsetPedFile {
58+ input :
59+ ped_file = merged_ped_file ,
60+ sample_list = GetSampleIdsFromVcf .out_file ,
61+ subset_name = "vcf_samples" ,
62+ sv_base_mini_docker = sv_base_mini_docker ,
63+ runtime_attr_override = runtime_attr_subset_ped
4664 }
4765
4866 #Scatter per chromosome
@@ -55,7 +73,7 @@ workflow CleanVcf {
5573 vcf =complex_genotype_vcfs [i ],
5674 contig =contig ,
5775 background_list =complex_resolve_background_fail_lists [i ],
58- ped_file =merged_ped_file ,
76+ ped_file =SubsetPedFile . ped_subset_file ,
5977 bothsides_pass_list =complex_resolve_bothside_pass_lists [i ],
6078 allosome_fai =allosome_fai ,
6179 prefix =cohort_name ,
0 commit comments