Skip to content

Commit

Permalink
created variable for user to specify java heap size in picard
Browse files Browse the repository at this point in the history
  • Loading branch information
dyeramosu committed Jul 7, 2023
1 parent c068947 commit bfe8ebd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/mitochondria_m2_wdl/MitochondriaPipeline.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ workflow MitochondriaPipeline {
File? ref_fasta_index
File? ref_dict

String java_heap_memory = "1000m"

File mt_dict
File mt_fasta
File mt_fasta_index
Expand Down Expand Up @@ -91,6 +93,7 @@ workflow MitochondriaPipeline {
call RevertSam {
input:
input_bam = SubsetBamToChrM.output_bam,
heap_mem = java_heap_memory,
preemptible_tries = preemptible_tries
}

Expand Down Expand Up @@ -247,6 +250,7 @@ task RevertSam {
input {
File input_bam
String basename = basename(input_bam, ".bam")
String heap_mem

# runtime
Int? preemptible_tries
Expand All @@ -260,7 +264,7 @@ task RevertSam {
input_bam: "aligned bam"
}
command {
java -Xmx1000m -jar /usr/gitc/picard.jar \
java -Xmx~{heap_mem} -jar /usr/gitc/picard.jar \
RevertSam \
INPUT=~{input_bam} \
OUTPUT_BY_READGROUP=false \
Expand Down

0 comments on commit bfe8ebd

Please sign in to comment.