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

125 fix germline variant calling #128

Merged
merged 7 commits into from
Sep 25, 2023
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*~
*#*
zips/*
._*
4 changes: 3 additions & 1 deletion definitions/germline_exome.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ workflow germlineExome {
Array[String]? variants_to_table_fields
Array[String]? variants_to_table_genotype_fields
Array[String]? vep_to_table_fields
Float germline_filter_gnomAD_maximum_population_allele_frequency
}

call ae.alignmentExome as alignmentAndQc {
Expand Down Expand Up @@ -105,7 +106,8 @@ workflow germlineExome {
vep_to_table_fields=vep_to_table_fields,
vep_custom_annotations=vep_custom_annotations,
variants_to_table_fields=variants_to_table_fields,
variants_to_table_genotype_fields=variants_to_table_genotype_fields
variants_to_table_genotype_fields=variants_to_table_genotype_fields,
germline_filter_gnomAD_maximum_population_allele_frequency=germline_filter_gnomAD_maximum_population_allele_frequency
}

call btc.bamToCram {
Expand Down
4 changes: 3 additions & 1 deletion definitions/germline_exome_hla_typing.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ workflow germlineExomeHlaTyping {
Int? qc_minimum_base_quality
Array[VepCustomAnnotation] vep_custom_annotations
String? optitype_name
Float germline_filter_gnomAD_maximum_population_allele_frequency
}

call ge.germlineExome {
Expand Down Expand Up @@ -77,7 +78,8 @@ workflow germlineExomeHlaTyping {
annotate_coding_only=annotate_coding_only,
vep_custom_annotations=vep_custom_annotations,
qc_minimum_mapping_quality=qc_minimum_mapping_quality,
qc_minimum_base_quality=qc_minimum_base_quality
qc_minimum_base_quality=qc_minimum_base_quality,
germline_filter_gnomAD_maximum_population_allele_frequency=germline_filter_gnomAD_maximum_population_allele_frequency
}

call od.optitypeDna as optitype {
Expand Down
4 changes: 3 additions & 1 deletion definitions/immuno.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ workflow immuno {
Array[Array[String]] gatk_haplotypecaller_intervals
Int? ploidy
String? optitype_name
Float germline_filter_gnomAD_maximum_population_allele_frequency = 1.1

# --------- Phase VCF Inputs ---------------------------------------

Expand Down Expand Up @@ -393,7 +394,8 @@ workflow immuno {
annotate_coding_only=annotate_coding_only,
qc_minimum_mapping_quality=qc_minimum_mapping_quality,
qc_minimum_base_quality=qc_minimum_base_quality,
optitype_name="optitype_normal"
optitype_name="optitype_normal",
germline_filter_gnomAD_maximum_population_allele_frequency=germline_filter_gnomAD_maximum_population_allele_frequency
}

call od.optitypeDna as optitype {
Expand Down
4 changes: 2 additions & 2 deletions definitions/subworkflows/germline_detect_variants.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ workflow germlineDetectVariants {
Array[String]? vep_to_table_fields
String final_tsv_prefix = "variants"
String gnomad_field_name = "gnomADe_AF" # only change with gnomad_filter annotation
Float filter_gnomAD_maximum_population_allele_frequency = 0.05
Float germline_filter_gnomAD_maximum_population_allele_frequency
}

call f.freemix {
Expand Down Expand Up @@ -87,7 +87,7 @@ workflow germlineDetectVariants {
reference_fai=reference_fai,
reference_dict=reference_dict,
gnomad_field_name=gnomad_field_name,
filter_gnomAD_maximum_population_allele_frequency=filter_gnomAD_maximum_population_allele_frequency,
germline_filter_gnomAD_maximum_population_allele_frequency=germline_filter_gnomAD_maximum_population_allele_frequency,
limit_variant_intervals=limit_variant_intervals
}

Expand Down
4 changes: 2 additions & 2 deletions definitions/subworkflows/germline_filter_vcf.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "../tools/select_variants.wdl" as sv
workflow germlineFilterVcf {
input {
File annotated_vcf
Float filter_gnomAD_maximum_population_allele_frequency
Float germline_filter_gnomAD_maximum_population_allele_frequency
String gnomad_field_name
File limit_variant_intervals
File reference
Expand All @@ -25,7 +25,7 @@ workflow germlineFilterVcf {
call fvcaf.filterVcfCustomAlleleFreq as gnomadFrequencyFilter {
input:
vcf=codingVariantFilter.filtered_vcf,
maximum_population_allele_frequency=filter_gnomAD_maximum_population_allele_frequency,
maximum_population_allele_frequency=germline_filter_gnomAD_maximum_population_allele_frequency,
field_name=gnomad_field_name
}

Expand Down
Loading