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

Made runtime attrs to args in MT pipeline #8417

Merged
merged 7 commits into from
Jul 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading