Skip to content

Commit

Permalink
Made runtime attrs to args in MT pipeline (#8417)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyeramosu committed Jul 14, 2023
1 parent 1529aa1 commit 8b7a3f6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/mitochondria_m2_wdl/AlignmentPipeline.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ workflow AlignmentPipeline {

#Optional runtime arguments
Int? preemptible_tries
Int disk_size = ceil(size(input_bam, "GB") * 4 + size(mt_fasta, "GB") + size(mt_fasta_index, "GB") + size(mt_amb, "GB") + size(mt_ann, "GB") + size(mt_bwt, "GB") + size(mt_pac, "GB") + size(mt_sa, "GB")) + 20
Int mem = 6
}

parameter_meta {
Expand All @@ -43,7 +45,9 @@ workflow AlignmentPipeline {
ref_bwt = mt_bwt,
ref_pac = mt_pac,
ref_sa = mt_sa,
preemptible_tries = preemptible_tries
preemptible_tries = preemptible_tries,
disk_size = disk_size,
mem = mem
}

output {
Expand Down Expand Up @@ -72,8 +76,8 @@ task AlignAndMarkDuplicates {

# runtime
Int? preemptible_tries
Int disk_size = ceil(size(input_bam, "GB") * 4 + size(ref_fasta, "GB") + size(ref_fasta_index, "GB") + size(ref_amb, "GB") + size(ref_ann, "GB") + size(ref_bwt, "GB") + size(ref_pac, "GB") + size(ref_sa, "GB")) + 20
Int mem = 6
Int disk_size
Int mem
}

String basename = basename(input_bam, ".bam")
Expand Down

0 comments on commit 8b7a3f6

Please sign in to comment.