Skip to content

Commit

Permalink
Refactor input_size var & limit it to only the largest files.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Apr 29, 2024
1 parent e38e422 commit 534bc79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wdl/DeNovoSVsScatter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ task RunDeNovo {
RuntimeAttr? runtime_attr_override
}
Float input_size = size(select_all([vcf_input, ped_input, disorder_input, coverage_indices, raw_proband, raw_parents, exclude_regions, batch_bincov_index, sample_batches]), "GB")
Float vcf_size = size(vcf_input, "GB")
Float bed_size = size(bed_input, "GB")
RuntimeAttr default_attr = object {
mem_gb: 16, #3.75
disk_gb: ceil(10 + input_size + bed_size * 1.5),
disk_gb: ceil(15 + vcf_size + bed_size * 1.5),
cpu_cores: 1,
preemptible_tries: 2,
max_retries: 1,
Expand Down Expand Up @@ -164,11 +164,11 @@ task VcfToBed {
RuntimeAttr? runtime_attr_override
}
Float input_size = size(vcf_file, "GB")
Float vcf_size = size(vcf_file, "GB")
RuntimeAttr default_attr = object {
mem_gb: 3.75,
disk_gb: ceil(10 + input_size * 1.5),
disk_gb: ceil(10 + vcf_size * 1.5),
cpu_cores: 1,
preemptible_tries: 2,
max_retries: 1,
Expand Down

0 comments on commit 534bc79

Please sign in to comment.