Skip to content

Commit

Permalink
set disk size and memory requirements, use newer docker
Browse files Browse the repository at this point in the history
  • Loading branch information
smgogarten committed Aug 9, 2024
1 parent 4f85918 commit 1c8f0ca
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 17 deletions.
2 changes: 1 addition & 1 deletion plink2_bed2vcf.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ task bed2vcf {
}

runtime {
docker: "quay.io/biocontainers/plink2:2.00a3.3--hb2a7ceb_0"
docker: "quay.io/biocontainers/plink2:2.00a5.10--h4ac6f70_0"
disks: "local-disk " + disk_size + " SSD"
memory: mem_gb + " GB"
}
Expand Down
18 changes: 11 additions & 7 deletions plink2_pgen2bed.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ version 1.0

workflow plink2_pgen2bed {
input {
File pgen
File pvar
File psam
File pgen
File pvar
File psam
String? out_prefix
}

Expand All @@ -30,12 +30,14 @@ workflow plink2_pgen2bed {

task pgen2bed {
input {
File pgen
File pvar
File psam
File pgen
File pvar
File psam
String? out_prefix
Int mem_gb = 16
}

Int disk_size = ceil(3*(size(pgen, "GB") + size(pvar, "GB") + size(psam, "GB"))) + 10
String out_string = if defined(out_prefix) then out_prefix else basename(pgen, ".pgen")

command {
Expand All @@ -60,6 +62,8 @@ task pgen2bed {
}

runtime {
docker: "quay.io/biocontainers/plink2:2.00a3.3--hb2a7ceb_0"
docker: "quay.io/biocontainers/plink2:2.00a5.10--h4ac6f70_0"
disks: "local-disk " + disk_size + " SSD"
memory: mem_gb + " GB"
}
}
18 changes: 11 additions & 7 deletions plink2_pgen2vcf.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ version 1.0

workflow plink2_pgen2vcf {
input {
File pgen
File pvar
File psam
File pgen
File pvar
File psam
String? out_prefix
}

Expand All @@ -28,12 +28,14 @@ workflow plink2_pgen2vcf {

task pgen2vcf {
input {
File pgen
File pvar
File psam
File pgen
File pvar
File psam
String? out_prefix
Int mem_gb = 16
}

Int disk_size = ceil(3*(size(pgen, "GB") + size(pvar, "GB") + size(psam, "GB"))) + 10
String out_string = if defined(out_prefix) then out_prefix else basename(pgen, ".pgen")

command {
Expand All @@ -50,6 +52,8 @@ task pgen2vcf {
}

runtime {
docker: "quay.io/biocontainers/plink2:2.00a3.3--hb2a7ceb_0"
docker: "quay.io/biocontainers/plink2:2.00a5.10--h4ac6f70_0"
disks: "local-disk " + disk_size + " SSD"
memory: mem_gb + " GB"
}
}
6 changes: 5 additions & 1 deletion plink2_vcf2bed.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ task vcf2bed {
input {
File vcf_file
String? out_prefix
Int mem_gb = 16
}

Int disk_size = ceil(3*(size(vcf_file, "GB"))) + 10
String out_string = if defined(out_prefix) then out_prefix else basename(vcf_file, ".vcf.gz")

command {
Expand All @@ -54,6 +56,8 @@ task vcf2bed {
}

runtime {
docker: "quay.io/biocontainers/plink2:2.00a3.3--hb2a7ceb_0"
docker: "quay.io/biocontainers/plink2:2.00a5.10--h4ac6f70_0"
disks: "local-disk " + disk_size + " SSD"
memory: mem_gb + " GB"
}
}
6 changes: 5 additions & 1 deletion plink2_vcf2pgen.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ task vcf2pgen {
input {
File vcf_file
String? out_prefix
Int mem_gb = 16
}

Int disk_size = ceil(3*(size(vcf_file, "GB"))) + 10
String out_string = if defined(out_prefix) then out_prefix else basename(vcf_file, ".vcf.gz")

command {
Expand All @@ -54,6 +56,8 @@ task vcf2pgen {
}

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

0 comments on commit 1c8f0ca

Please sign in to comment.