Skip to content

Commit

Permalink
pass ref to realignment filter in M2 WDL (#6360)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbenjamin authored Jan 15, 2020
1 parent 9d76f0f commit c4f18e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/mutect2_wdl/mutect2.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ workflow Mutect2 {
if (defined(realignment_index_bundle)) {
call FilterAlignmentArtifacts {
input:
ref_fasta = ref_fasta,
ref_fai = ref_fai,
ref_dict = ref_dict,
bam = tumor_bam,
bai = tumor_bai,
realignment_index_bundle = select_first([realignment_index_bundle]),
Expand Down Expand Up @@ -918,6 +921,9 @@ task Filter {

task FilterAlignmentArtifacts {
input {
File ref_fasta
File ref_fai
File ref_dict
File input_vcf
File input_vcf_idx
File bam
Expand All @@ -937,6 +943,9 @@ task FilterAlignmentArtifacts {
Int command_mem = machine_mem - 500
parameter_meta{
ref_fasta: {localization_optional: true}
ref_fai: {localization_optional: true}
ref_dict: {localization_optional: true}
input_vcf: {localization_optional: true}
input_vcf_idx: {localization_optional: true}
bam: {localization_optional: true}
Expand All @@ -949,6 +958,7 @@ task FilterAlignmentArtifacts {
export GATK_LOCAL_JAR=~{default="/root/gatk.jar" runtime_params.gatk_override}

gatk --java-options "-Xmx~{command_mem}m" FilterAlignmentArtifacts \
-R ~{ref_fasta} \
-V ~{input_vcf} \
-I ~{bam} \
--bwa-mem-index-image ~{realignment_index_bundle} \
Expand Down

0 comments on commit c4f18e2

Please sign in to comment.