-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
59 lines (51 loc) · 1.38 KB
/
nextflow.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
manifest {
name = 'ebi-gene-expression-group/scxa-tertiary-workflow'
author = """Anil Thanki <[email protected]>, Iris Yu <[email protected]>, Pedro Madrigal <[email protected]>"""
description = """Tertiary clustering workflow for single-cell expression analysis"""
version = '1.0.0'
}
process {
executor='slurm'
queue="$SCXA_HPC_QUEUE"
// clusterOptions="$SCXA_HPC_OPTIONS"
time = '7 d'
queueSize=500
exitReadTimeout='100000 sec'
pollInterval = '5sec'
// errorStrategy to handle processes killed due to memory issues
errorStrategy = { task.exitStatus in 137..140 ? 'retry' : 'terminate' }
maxRetries = 5
memory = {
def attemptMemory = 4.GB * Math.pow(2, task.attempt)
def maxMemory = 256.GB
return [attemptMemory, maxMemory].min()
}
}
singularity {
enabled = true
}
conda {
// cacheDir = "$SCXA_WORKFLOW_ROOT/envs"
createTimeout = "30 min"
useMamba = true
}
params {
dir_path = "."
output_path = null
result_dir_path = "${params.output_path ?: params.dir_path + '/results'}"
}
trace {
enabled = true
file = "${params.result_dir_path}/trace.txt"
overwrite = true
}
timeline {
enabled = true
file = "${params.result_dir_path}/timeline.html"
overwrite = true
}
report {
enabled = true
file = "${params.result_dir_path}/report.html"
overwrite = true
}