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 06e1692 commit 7d4aba2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CramToBam/CramToBam.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ workflow CramToBamWorkflow {
docker: docker_image
memory: mem_size + " GB"
disks: "local-disk " + disk_size + " HDD"
preemptible: preemtible_attempts
preemptible: preemptible_attempts
}
}

Expand All @@ -91,7 +91,7 @@ workflow CramToBamWorkflow {
Int? disk_size = 500
Int? preemptible_attempts = 2
}
Int machine_mem_mb = select_first([mem_size, 7]) * 1000
Int machine_mem_mb = mem_size * 1000
Int command_mem_mb = machine_mem_mb - 1000
command <<<
gatk --java-options "-Xmx~{command_mem_mb}m" ValidateSamFile \
Expand All @@ -106,7 +106,7 @@ workflow CramToBamWorkflow {
docker: gatk_docker
memory: mem_size + " GB"
disks: "local-disk " + disk_size + " HDD"
preemptible: preemtible_attempts
preemptible: preemptible_attempts
}

}

0 comments on commit 7d4aba2

Please sign in to comment.