Skip to content

Commit bf3704b

Browse files
add subset ped step at start of CleanVcf (#250)
1 parent 629d382 commit bf3704b

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

wdl/CleanVcf.wdl

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version 1.0
22

33
import "CleanVcfChromosome.wdl" as CleanVcfChromosome
44
import "TasksMakeCohortVcf.wdl" as MiniTasks
5+
import "Utils.wdl" as util
56

67
workflow 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,

wdl/MakeCohortVcf.wdl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ workflow MakeCohortVcf {
328328
runtime_override_split_include_list=runtime_override_split_include_list,
329329
runtime_override_combine_clean_vcf_2=runtime_override_combine_clean_vcf_2,
330330
runtime_override_combine_revised_4=runtime_override_combine_revised_4,
331-
runtime_override_combine_multi_ids_4=runtime_override_combine_multi_ids_4
331+
runtime_override_combine_multi_ids_4=runtime_override_combine_multi_ids_4,
332+
runtime_attr_ids_from_vcf=runtime_attr_ids_from_vcf,
333+
runtime_attr_subset_ped=runtime_attr_subset_ped
332334
}
333335
334336
Array[String] contigs = transpose(read_tsv(contig_list))[0]

0 commit comments

Comments
 (0)