Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subset ped step at start of CleanVcf #250

Merged
merged 1 commit into from
Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion wdl/CleanVcf.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version 1.0

import "CleanVcfChromosome.wdl" as CleanVcfChromosome
import "TasksMakeCohortVcf.wdl" as MiniTasks
import "Utils.wdl" as util

workflow CleanVcf {
input {
Expand Down Expand Up @@ -43,6 +44,23 @@ workflow CleanVcf {
RuntimeAttr? runtime_override_combine_clean_vcf_2
RuntimeAttr? runtime_override_combine_revised_4
RuntimeAttr? runtime_override_combine_multi_ids_4
RuntimeAttr? runtime_attr_ids_from_vcf
RuntimeAttr? runtime_attr_subset_ped
}

call util.GetSampleIdsFromVcf {
input:
vcf = complex_genotype_vcfs[0],
sv_base_mini_docker = sv_base_mini_docker,
runtime_attr_override = runtime_attr_ids_from_vcf
}
call util.SubsetPedFile {
input:
ped_file = merged_ped_file,
sample_list = GetSampleIdsFromVcf.out_file,
subset_name = "vcf_samples",
sv_base_mini_docker = sv_base_mini_docker,
runtime_attr_override = runtime_attr_subset_ped
}

#Scatter per chromosome
Expand All @@ -55,7 +73,7 @@ workflow CleanVcf {
vcf=complex_genotype_vcfs[i],
contig=contig,
background_list=complex_resolve_background_fail_lists[i],
ped_file=merged_ped_file,
ped_file=SubsetPedFile.ped_subset_file,
bothsides_pass_list=complex_resolve_bothside_pass_lists[i],
allosome_fai=allosome_fai,
prefix=cohort_name,
Expand Down
4 changes: 3 additions & 1 deletion wdl/MakeCohortVcf.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ workflow MakeCohortVcf {
runtime_override_split_include_list=runtime_override_split_include_list,
runtime_override_combine_clean_vcf_2=runtime_override_combine_clean_vcf_2,
runtime_override_combine_revised_4=runtime_override_combine_revised_4,
runtime_override_combine_multi_ids_4=runtime_override_combine_multi_ids_4
runtime_override_combine_multi_ids_4=runtime_override_combine_multi_ids_4,
runtime_attr_ids_from_vcf=runtime_attr_ids_from_vcf,
runtime_attr_subset_ped=runtime_attr_subset_ped
}

Array[String] contigs = transpose(read_tsv(contig_list))[0]
Expand Down