Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change runtime attrs to args #8413

Merged
merged 11 commits into from
Jul 11, 2023
5 changes: 3 additions & 2 deletions scripts/mitochondria_m2_wdl/AlignAndCall.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -430,15 +430,16 @@ task M2 {

# runtime
String? gatk_docker_override
Int mem
Int? mem
Int? preemptible_tries
Int disk_size = ceil(size(input_bam, "GB") + size(ref_fasta, "GB") + size(ref_fai, "GB")) + 20
Int machine_mem = if defined(mem) then mem * 1000 else 3500 # Mem is in units of GB but our command and memory runtime values are in MB
}

String output_vcf = "raw" + if compress then ".vcf.gz" else ".vcf"
String output_vcf_index = output_vcf + if compress then ".tbi" else ".idx"

# Mem is in units of GB but our command and memory runtime values are in MB
Int machine_mem = if defined(mem) then mem * 1000 else 3500
Int command_mem = machine_mem - 500
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@meganshand pushed new changes, let me know how this looks!


meta {
Expand Down
3 changes: 1 addition & 2 deletions scripts/mitochondria_m2_wdl/MitochondriaPipeline.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ task RevertSam {
Int? preemptible_tries
Int machine_mem = 2000
Int disk_size = ceil(size(input_bam, "GB") * 2.5) + 20
Int mem = machine_mem
}
Int java_mem = machine_mem - 1000

Expand All @@ -277,7 +276,7 @@ task RevertSam {
}
runtime {
disks: "local-disk " + disk_size + " HDD"
memory: mem + " MB"
memory: machine_mem + " MB"
docker: "us.gcr.io/broad-gotc-prod/genomes-in-the-cloud:2.4.2-1552931386"
preemptible: select_first([preemptible_tries, 5])
}
Expand Down