Skip to content

Commit

Permalink
attempt to maybe fix the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesemery committed Feb 19, 2025
1 parent 535c777 commit af592aa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions wdl/tasks/Z_One_Off_Analyses/BroadOnPremMalariaPipelineTasks.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,13 @@ task SortCompressIndexVcf {
tot_mem_mb=$(free -m | grep '^Mem' | awk '{print $2}')
################################
# Ensure the output files are placed in the root execution directory (.)
bcftools sort -m$((tot_mem_mb-2048))M -Oz -o ./$(basename ~{input_vcf}).gz ~{input_vcf}
bcftools index --threads ${np} --tbi ./$(basename ~{input_vcf}).gz
bcftools sort -m$((tot_mem_mb-2048))M -Oz2 -o ./$(basename ~{input_vcf}).gz ~{input_vcf}
bcftools index --threads ${np} --tbi ~$(basename ~{input_vcf}).gz
>>>
output {
File sorted_vcf = "$(basename input_vcf).gz"
File sorted_vcf_index = "$(basename input_vcf).gz.tbi"
File vcf = "$(basename ~{input_vcf}).gz"
File vcf_index = "$(basename ~{input_vcf}).gz.tbi"
}

#########################
Expand Down

0 comments on commit af592aa

Please sign in to comment.