Skip to content

Commit

Permalink
make sure requested disk size is big enough for file
Browse files Browse the repository at this point in the history
  • Loading branch information
smgogarten committed Aug 6, 2024
1 parent 4e75dd2 commit 5d40844
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extract_vcf_ids.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ task bcftools_query {
File vcf_file
}

Int disk_gb = ceil(size(vcf_file, "GB")*1.5) + 5

command <<<
bcftools query -f '%CHROM:%POS:%REF:%ALT\n' ~{vcf_file} > variants.txt
>>>
Expand All @@ -41,6 +43,7 @@ task bcftools_query {

runtime {
docker: "staphb/bcftools:1.16"
disks: "local-disk ${disk_gb} SSD"
}
}

Expand Down

0 comments on commit 5d40844

Please sign in to comment.