Skip to content

Commit

Permalink
Exposed boot disk space for Oncotator in somatic CNV WDL. (#3566)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelklee committed Feb 15, 2019
1 parent 1aa3c5b commit 6344ad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/cnv_wdl/somatic/cnv_somatic_oncotator_workflow.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ workflow CNVOncotatorWorkflow {
String? additional_args
String? oncotator_docker
Int? mem_gb_for_oncotator
Int? boot_disk_space_gb_for_oncotator
Int? preemptible_attempts

call OncotateSegments {
Expand All @@ -19,6 +20,7 @@ workflow CNVOncotatorWorkflow {
additional_args = additional_args,
oncotator_docker = oncotator_docker,
mem_gb = mem_gb_for_oncotator,
boot_disk_space_gb = boot_disk_space_gb_for_oncotator,
preemptible_attempts = preemptible_attempts
}

Expand All @@ -36,6 +38,7 @@ task OncotateSegments {
String? oncotator_docker
Int? mem_gb
Int? disk_space_gb
Int? boot_disk_space_gb
Boolean use_ssd = false
Int? cpu
Int? preemptible_attempts
Expand Down Expand Up @@ -69,7 +72,7 @@ task OncotateSegments {
disks: "local-disk " + select_first([disk_space_gb, 50]) + if use_ssd then " SSD" else " HDD"
cpu: select_first([cpu, 1])
preemptible: select_first([preemptible_attempts, 2])
bootDiskSizeGb: 50
bootDiskSizeGb: select_first([boot_disk_space_gb, 20])
}

output {
Expand Down
2 changes: 2 additions & 0 deletions scripts/cnv_wdl/somatic/cnv_somatic_pair_workflow.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ workflow CNVSomaticPairWorkflow {
String? additional_args_for_oncotator
String? oncotator_docker
Int? mem_gb_for_oncotator
Int? boot_disk_space_gb_for_oncotator

Int ref_size = ceil(size(ref_fasta, "GB") + size(ref_fasta_dict, "GB") + size(ref_fasta_fai, "GB"))
Int read_count_pon_size = ceil(size(read_count_pon, "GB"))
Expand Down Expand Up @@ -427,6 +428,7 @@ workflow CNVSomaticPairWorkflow {
additional_args = additional_args_for_oncotator,
oncotator_docker = oncotator_docker,
mem_gb_for_oncotator = mem_gb_for_oncotator,
boot_disk_space_gb_for_oncotator = boot_disk_space_gb_for_oncotator,
preemptible_attempts = preemptible_attempts
}
}
Expand Down

0 comments on commit 6344ad7

Please sign in to comment.