Skip to content

Commit

Permalink
Update CramToBam.wdl
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Schlaeger-Broad authored Aug 5, 2024
1 parent b0b4d7f commit 2e011a4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions CramToBam/CramToBam.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ workflow CramToBamWorkflow {
File cram_file
String sample_id
String docker_image = "broadinstitute/genomes-in-the-cloud:2.3.1-1504795437"
Int? mem_size
Int? disk_size
Int? preemptible_attempts
Int? mem_size = 32
Int? disk_size = 500
Int? preemptible_attempts = 2
}
command <<<
set -e
Expand All @@ -74,9 +74,9 @@ workflow CramToBamWorkflow {
}
runtime {
docker: docker_image
memory: select_first([mem_size, 4]) + " GB"
disks: "local-disk " + select_first([disk_size, 200]) + " HDD"
preemptible: select_first([preemptible_attempts, 2])
memory: mem_size + " GB"
disks: "local-disk " + disk_size + " HDD"
preemptible: preemtible_attempts
}
}

Expand All @@ -87,9 +87,9 @@ workflow CramToBamWorkflow {
String sample_id
String gatk_docker = "broadinstitute/gatk:4.6.0.0"
String output_mode = "SUMMARY"
Int? mem_size
Int? disk_size
Int? preemptible_attempts
Int? mem_size = 32
Int? disk_size = 500
Int? preemptible_attempts = 2
}
Int machine_mem_mb = select_first([mem_size, 7]) * 1000
Int command_mem_mb = machine_mem_mb - 1000
Expand All @@ -104,9 +104,9 @@ workflow CramToBamWorkflow {
}
runtime {
docker: gatk_docker
memory: select_first([mem_size, 4]) + " GB"
disks: "local-disk " + select_first([disk_size, 100]) + " HDD"
preemptible: select_first([preemptible_attempts, 2])
memory: mem_size + " GB"
disks: "local-disk " + disk_size + " HDD"
preemptible: preemtible_attempts
}

}
}

0 comments on commit 2e011a4

Please sign in to comment.