forked from hoelzer/mgnify-lr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
executable file
·138 lines (118 loc) · 3.04 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
manifest {
mainScript = 'main.nf'
nextflowVersion = '>=22.04.0'
}
// default parameters
params {
max_cores = Runtime.runtime.availableProcessors()
cores = Runtime.runtime.availableProcessors().intdiv(4)
memory = 8.GB
max_memory = 24.GB
help = false
profile = false
// input
nano = ''
illumina = ''
sra = ''
list = false
bbduk = ''
index_ont = ''
index_fna = ''
index_ill = ''
host = ''
species = ''
phix = true
dcs = true
// parameters
gsize = ''
length = '500'
model = 'r941_min_sup_g507'
// SRA key
key = ""
// databases
dia_db = false
// workflow adjustments
assemblerHybrid = 'spades'
assemblerLong = 'flye'
// folder structure
output = 'results'
// ENA-specific params
study = ''
sample = ''
run = ''
// optional profile configurations, only necessary for HPC LSF execution
cloudDatabase = 'nextflow-databases'
singularityCacheDir = 'singularity'
condaCacheDir = 'conda'
}
profiles {
// executors
local {
executor {
name = "local"
cpus = params.max_cores
memory = params.max_memory
}
params.cloudProcess = false
params.cloudDatabase = false
includeConfig 'configs/local.config'
}
lsf {
executor {
name = "lsf"
queueSize = 200
}
params.cloudProcess = true
process.cache = "lenient"
includeConfig 'configs/node.config'
}
slurm {
executor {
name = "slurm"
queueSize = 200
}
params.cloudProcess = true
process.cache = "lenient"
includeConfig 'configs/node.config'
}
// engines
docker {
docker { enabled = true }
includeConfig 'configs/container.config'
}
singularity {
singularity {
enabled = true
autoMounts = true
cacheDir = params.singularityCacheDir
envWhitelist = "HTTPS_PROXY,HTTP_PROXY,http_proxy,https_proxy,FTP_PROXY,ftp_proxy"
}
includeConfig 'configs/container.config'
}
mamba {
conda {
enabled = true
cacheDir = params.condaCacheDir
useMamba = true
}
includeConfig 'configs/conda.config'
}
conda {
conda {
enabled = true
cacheDir = params.condaCacheDir
}
includeConfig 'configs/conda.config'
}
// pre-merged
ebi {
params.cloudProcess = true
params.cloudDatabase = "/hps/nobackup2/production/metagenomics/$USER/nextflow-databases/"
params.cachedir = "/hps/nobackup2/singularity/$USER"
includeConfig 'configs/lsf.config' }
yoda {
params.cloudProcess = true
params.cloudDatabase = "/hps/nobackup2/metagenomics/$USER/nextflow-databases/"
params.cachedir = "/hps/nobackup2/metagenomics/$USER/singularity"
includeConfig 'configs/lsf.config' }
}