Skip to content

Commit

Permalink
add disk and memory requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
smgogarten committed Aug 8, 2024
1 parent 77a1f58 commit 4f85918
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plink2_bed2vcf.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ task bed2vcf {
String? out_prefix
Boolean snps_only = true
Boolean chr_prefix = true
Int mem_gb = 16
}

Int disk_size = ceil(3*(size(bed_file, "GB") + size(bim_file, "GB") + size(fam_file, "GB"))) + 10
String out_string = if defined(out_prefix) then out_prefix else basename(bed_file, ".bed")

command {
Expand All @@ -69,5 +71,7 @@ task bed2vcf {

runtime {
docker: "quay.io/biocontainers/plink2:2.00a3.3--hb2a7ceb_0"
disks: "local-disk " + disk_size + " SSD"
memory: mem_gb + " GB"
}
}

0 comments on commit 4f85918

Please sign in to comment.