Skip to content

Commit

Permalink
Add a low-resource mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aofarrel committed Nov 12, 2024
1 parent edcc582 commit 20dd0ab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions myco_raw.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ workflow myco {

String? output_sample_name
Boolean guardrail_mode = true
Boolean low_resource_mode = false

Boolean clean_after_decontam = false
Int clean_average_q_score = 29
Expand Down Expand Up @@ -75,7 +76,9 @@ workflow myco {
preliminary_min_q30 = if guardrail_mode then 0.2 else 0.0000001,
subsample_cutoff = if guardrail_mode then 30000 else -1,
timeout_map_reads = if guardrail_mode then 300 else 0,
timeout_decontam = if guardrail_mode then 600 else 0
timeout_decontam = if guardrail_mode then 600 else 0,
addldisk = if low_resource_mode then 10 else 100,
memory = if low_resource_mode then 8 else 32
}

if(defined(decontam_each_sample.decontaminated_fastq_1)) {
Expand Down Expand Up @@ -104,7 +107,10 @@ workflow myco {
input:
reads_files = [real_decontaminated_fastq_1, real_decontaminated_fastq_2],
tarball_bams_and_bais = false,
timeout = if guardrail_mode then 600 else 0
timeout = if guardrail_mode then 600 else 0,
addldisk = if low_resource_mode then 10 else 100,
cpu = if low_resource_mode then 8 else 16,
memory = if low_resource_mode then 8 else 32
}
}
}
Expand Down

0 comments on commit 20dd0ab

Please sign in to comment.