-
Notifications
You must be signed in to change notification settings - Fork 594
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
change runtime attrs to args #8413
Conversation
# runtime | ||
String? gatk_docker_override | ||
Int? mem |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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