-
Notifications
You must be signed in to change notification settings - Fork 16
/
nextflow.config
executable file
·193 lines (164 loc) · 4.87 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
manifest {
mainScript = 'virify.nf'
nextflowVersion = '>=20.00.0'
}
params {
max_cores = Runtime.runtime.availableProcessors()
cores = Runtime.runtime.availableProcessors().intdiv(4)
memory = '12'
help = false
profile = false
// inputs
illumina = ''
fasta = ''
list = false
// databases
virsorter = false
virfinder = false
viphog = false
ncbi = false
checkv = false
rvdb = false
pvogs = false
vogdb = false
vpf = false
imgvr = false
pprmeta = false
meta = false
virome = false
hmmextend = false
blastextend = false
chromomap = false
balloon = false
onlyannotate = false
mashmap_len = '2000'
mashmap = ''
evalue = 0.01
prop = 0.1
taxthres = 0.6
factor = "$projectDir/references/viphogs_cds_per_taxon_cummulative.csv"
sankey = 25
chunk = 10
length = 1.5 // in kb, so 0.5 filters all contigs shorter 500 nt
// development
viphog_version = 'v3'
meta_version = 'v4'
// folder structure
output = 'results'
assemblydir = '00-assembly'
virusdir = '01-viruses'
prodigaldir = '02-prodigal'
phanotatedir = '02-phanotate'
hmmerdir = '03-hmmer'
blastdir = '04-blast'
plotdir = '05-plots'
taxdir = '06-taxonomy'
checkvdir = '07-checkv'
finaldir = '08-final'
// location for autodownload data like databases
dbs = 'nextflow-autodownload-databases'
// optional profile configurations, mostly necessary for HPC execution [lsf, slurm]
workdir = 'work'
singularity_cachedir = 'singularity'
}
profiles {
//executors
local {
executor {
name = "local"
cpus = params.max_cores
}
workDir = params.workdir
params.databases = params.dbs
params.cloudProcess = false
includeConfig 'nextflow/configs/local.config'
}
lsf {
workDir = params.workdir
params.databases = params.dbs
executor {
name = "lsf"
queueSize = 200
}
params.cloudProcess = true
process.cache = "lenient"
includeConfig 'nextflow/configs/node.config'
}
slurm {
workDir = params.workdir
params.databases = params.dbs
executor {
name = "slurm"
queueSize = 200
}
params.cloudProcess = true
process.cache = "lenient"
includeConfig 'nextflow/configs/node.config'
}
//engines
docker {
docker { enabled = true }
includeConfig 'nextflow/configs/container.config'
}
singularity {
singularity {
enabled = true
autoMounts = true
cacheDir = params.singularity_cachedir
}
includeConfig 'nextflow/configs/container.config'
}
conda {
// not working right now due to missing conda package for PPR-Meta!
includeConfig 'nextflow/configs/conda.config'
}
//pre-merged profiles for direct usage
standard {
executor {
name = "local"
cpus = params.max_cores
}
workDir = params.workdir
params.databases = params.dbs
params.cloudProcess = false
includeConfig 'nextflow/configs/local.config'
docker { enabled = true }
includeConfig 'nextflow/configs/container.config'
}
ebi {
params.workdir = "/hps/nobackup/rdf/metagenomics/service-team/nextflow-workdir/virify/"
params.databases = "/hps/nobackup/rdf/metagenomics/service-team/ref-dbs/virify/"
params.singularity_cachedir = "/hps/nobackup/rdf/metagenomics/service-team/singularity-cache/"
workDir = params.workdir
params.cloudProcess = true
process.cache = "lenient"
includeConfig 'nextflow/configs/node.config'
singularity {
enabled = true
autoMounts = true
cacheDir = params.singularity_cachedir
}
includeConfig 'nextflow/configs/container.config'
}
// CONFIGURE YOUR PRIVATE CLOUD
gcloud {
workDir = params.workdir
params.databases = 'gs://databases-matrice/virify/'
bucketDir = 'gs://matrice/virify-work'
process.executor = 'google-lifesciences'
google {
project = 'nextflow-auto-255816'
zone = 'europe-west1-b'
lifeSciences.preemptible = false
lifeSciences.bootDiskSize = 20.GB
}
params.cloudProcess = true
includeConfig 'nextflow/configs/node.config'
docker { enabled = true }
includeConfig 'nextflow/configs/container.config'
// we need a docker also for basic functionalities in the cloud
process {
withLabel: noDocker { cpus = 4; memory = '8.0 GB'; container = 'nanozoo/template:3.8--ccd0653' }
}
}
}