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
Merged

change runtime attrs to args #8413

merged 11 commits into from
Jul 11, 2023

Conversation

dyeramosu
Copy link
Contributor

# runtime
String? gatk_docker_override
Int? mem
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the mem, command_mem, and machine_mem arguments for this task were already hooked up correctly. Since mem was an optional input you could override the memory for this task and the java command appropriately the way it was set up before.

@@ -275,7 +277,7 @@ task RevertSam {
}
runtime {
disks: "local-disk " + disk_size + " HDD"
memory: machine_mem + " MB"
memory: mem + " MB"
Copy link
Contributor

Choose a reason for hiding this comment

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

You can leave this as machine_mem so that you don't have to add the Int mem = machine_mem line. machine_mem is already overrideable. Or if you want to make it clearer to the user/more consistent with other tasks you can just rename machine_mem to mem without making an additional variable.

}

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!

@meganshand meganshand merged commit e0090de into broadinstitute:master Jul 11, 2023
@dyeramosu dyeramosu deleted the runtime-atts-to-args branch July 11, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants