Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 authored Nov 13, 2024
2 parents 52d57ab + a31dd99 commit 13278be
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
34 changes: 27 additions & 7 deletions conf/cheaha.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,40 @@ singularity {
runOptions = "--contain --workdir $scratch_dir"
}

def getQueues = { time, memory ->
def queue_list = ["long"]

if (time <= 2.h) {
queue_list.add("express")
}

if (time <= 12.h) {
queue_list.add("short")
}

if (time <= 50.h) {
queue_list.add("medium")
}

if (memory >= 300.GB) {
queue_list.add("largemem-long")

if (time <= 50.h) {
queue_list.add("largemem")
}
}

return queue_list.join(",")
}

process {
resourceLimits = [
memory: 750.GB,
cpus: 128,
time: 150.h
]
executor = 'slurm'
queue = { task.memory <= 50.GB ? (task.time <= 2.h ? 'express' : task.time <= 12.h ? 'short' : task.time <= 50.h ? 'medium' : 'long') : (task.time <= 50.h ? 'largemem' : 'largemem-long')}
maxRetries = 3
beforeScript = 'module load Singularity/3.5.2-GCC-5.4.0-2.26'
}

params {
max_memory = 750.GB
max_cpus = 128
max_time = 150.h
queue = { getQueues( task.time, task.memory ) }
}
6 changes: 6 additions & 0 deletions conf/pipeline/taxprofiler/hasta.config
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ process {
memory = { 36.GB * task.attempt }
time = { 8.h * task.attempt }
}

withName: MULTIQC {
cpus = 2
memory = { 4.GB * task.attempt }
time = { 4.h * task.attempt }
}
}

0 comments on commit 13278be

Please sign in to comment.