-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnextflow.config
124 lines (106 loc) · 2.61 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
manifest {
mainScript = 'main.nf'
nextflowVersion = '>=20.01.0'
}
// default parameters
params {
max_cores = Runtime.runtime.availableProcessors()
cores = Runtime.runtime.availableProcessors().intdiv(4)
memory = '4 GB'
help = false
profile = false
// folder structure
output = 'results'
// input
genomes = ''
proteins = ''
list = false
// for one-vs-all switch
genome = false
protein = false
// Prokka
gcode = 0
// DIAMOND or BLASTP protein alignment
blastp = false
evalue = '1e-5'
seqidentity = 0.4
alnlength = 0.5
// Plot POCP heatmap
width = 16
height = 8
// location for storing the conda environments
condaCacheDir = 'conda'
singularityCacheDir = 'singularity'
}
profiles {
////////////////////////////////////////////////////
// executors
local {
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}
includeConfig 'configs/local.config'
}
slurm {
executor {
name = "slurm"
queueSize = 100
// exitReadTimeout = "360 sec"
// submitRateLimit = '1 / 2 s'
// pollInterval = '30 sec'
}
process.cache = "lenient"
includeConfig 'configs/nodes.config'
}
////////////////////////////////////////////////////
// engines
conda {
conda{
enabled = true
cacheDir = params.condaCacheDir
timeout = '45 min'
}
includeConfig 'configs/conda.config'
}
mamba {
conda{
enabled = true
cacheDir = params.condaCacheDir
timeout = '45 min'
useMamba = true
}
includeConfig 'configs/conda.config'
}
docker {
docker {
enabled = true
}
includeConfig 'configs/container.config'
}
singularity {
singularity {
enabled = true
autoMounts = true
cacheDir = params.singularityCacheDir
}
includeConfig 'configs/container.config'
}
////////////////////////////////////////////////////
// pre-configured
// local execution with conda
standard {
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}
conda {
cacheDir = params.condaCacheDir
enabled = true
}
includeConfig 'configs/local.config'
includeConfig 'configs/conda.config'
}
}