-
Notifications
You must be signed in to change notification settings - Fork 15
/
template.nextflow.config
329 lines (262 loc) · 9.09 KB
/
template.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
/*
================================================================================================
Config File TransPi
================================================================================================
Transcriptome Analysis Pipeline
Author: Ramón E. Rivera-Vicéns
GitHub: rivera10
----------------------------------------------------------------------------------------
*/
params {
// ------------------------- EDIT below variables (mandatory) ------------------------- //
// --------------------- Can also be specified in the command line ---------------------- //
// Modify this accordingly (if needed)
// kmers list (depends on read length!)
k=""
// SOAP config file generator
//#maximal read length
maxReadLen=""
//[LIB]
//#maximal read length in this lib
rd_len_cutof="${params.maxReadLen}"
// Other options if needed. Leave defaults if unsure.
//#average insert size
//avg_ins="200"
//#if sequence needs to be reversed
reverse_seq="0"
//#in which part(s) the reads are used
asm_flags="3"
//#minimum aligned length to contigs for a reliable read location (at least 32 for short insert size)
map_len="32"
// -------------------------- EDIT below variables if needed -------------------------- //
// Directory for results
outdir="results"
// Directory for trace files
tracedir="pipeline_info"
// PATH for rnammer, tmhmm, signalp programs. Requires licenses. See CBS-DTU tools for information.
// RNAmmer
rnam = ""
// Tmhmm
tmhmm = ""
// SignalP
signalp = ""
/*
// ------------------------------------------------ STOP ------------------------------------------------ //
Most of these values below are filled by the precheck script (e.g. PATH to databases or conda installation).
However, if you run the precheck for a container you will not have all these PATHs assigned (e.g. conda PATH).
Run the precehck again but selecting conda instead of containers if that is the case.
For other options (e.g. filtering, buscoDist, etc.) is recommended to call them from the command line.
Proceed to the end of this config file to modify the processes CPUs and RAM with the specs of your system.
Also to modify the profiles if you use a scheduler manager like SLURM or PBS.
More info at the TransPi repository (https://github.com/PalMuc/TransPi) and
manual (https://palmuc.github.io/TransPi/).
// -------------------------------------------------------------------------------------------------------------- //
*/
// PATH to TransPi DBs installation
pipeInstall
// Uniprot database PATH
uniprot
uniname
//BUSCO database
busco4db
//PFAM file location
pfloc
//name of pfam file
pfname
//Trinotate sqlite created when installing Trinotate
Tsql
// Directory for reads
reads=""
// Pipeline options
help = false
fullHelp = false
// Full analysis
all = false
// Only Evidential Gene run (one sample per run)
onlyEvi = false
// Only annotation analysis
onlyAnn = false
// Only Assemblies and Evidential Gene
onlyAsm = false
// Skip quality control
skipQC = false
// Skip fastp quality filter step
skipFilter = false
// Minimum reads quality for filtering in fastp
minQual="5"
// Filter rRNA
rRNAfilter = false
// rRNA database
rRNAdb = ""
// Skip normalization of reads
skipNormalization = false
// Normalization parameters
normMaxCov=100
normMinCov=1
// Save reads from filtering and normalization
saveReads = false
// Save bam file from mapping step
saveBam = false
// Filter Species using psytrans
filterSpecies = false
// Psytrans value to train model
psyval=160
// Host Sequence
host=""
// Symbiont Sequence
symbiont=""
// Run BUSCO in all assemblies
allBuscos = false
// BUSCO distribution analysis (this option needs to be run together with the allBuscos option)
// Generate the analysis
buscoDist = false
// Mininmum percentage of assemblers require to rescue a BUSCO sequence
minPerc="0.7"
//short Transdecoder, no homlogy search (PFAM and UniProt)
shortTransdecoder = false
//Transdecoder genetic code
genCode="Universal"
// Annotation options
// SignalP
withSignalP = false
// tmHMM
withTMHMM = false
// rnammer
withRnammer = false
// Add annotation to file
addAnnotation = false
//Test data
readsTest = false
// Skip Evidential Gene for onlyAsm option
skipEvi = false
// Kegg pathway search
withKegg = false
// Skip Report
skipReport = false
// These options will change how the profiles work.
// Run with conda installed by the precheck
//next 2 parameters are outdated
myConda = false
myCondaInstall=""
condaActivate = false
// TransPi container with all programs
oneContainer = false
// Cache directory for conda and singularity files. Leave in blank if not sure
envCacheDir = ""
// Singularity
// Use singularity image created after pulling from docker and not from Galaxy depot (singularity image ready to use).
singularity_pull_docker_container = false
// Get software versions - only works with local conda installation and TransPi container.
skipGetRunInfo = false
}
/*
// ------------------------------------------------ NOTE ------------------------------------------------ //
Proceed to modify the processes CPUs and RAM with the specs of your system.
Also to modify the profiles if you use a scheduler manager like SLURM or PBS.
More info at the TransPi repository (https://github.com/PalMuc/TransPi) and
manual (https://palmuc.github.io/TransPi/).
Also see Nextflow documentation (https://www.nextflow.io/docs/latest/index.html).
// -------------------------------------------------------------------------------------------------------------- //
*/
process {
cpus='1'
memory='5 GB'
withLabel: big_cpus {
cpus='20'
memory='15 GB'
}
withLabel: med_cpus {
cpus='8'
memory='15 GB'
}
withLabel: low_cpus {
cpus='4'
memory='15 GB'
}
withLabel: exlow_cpus {
cpus='1'
memory='2 GB'
}
withLabel: big_mem {
cpus='20'
memory='350 GB'
}
withLabel: med_mem {
cpus='15'
memory={ 100.Gb + (task.attempt * 50.Gb)}
errorStrategy={ task.exitStatus in 137..140 ? 'retry' : 'finish' }
maxRetries = 2
}
withLabel: low_mem {
cpus='20'
memory='80 GB'
}
errorStrategy='finish'
}
// env Evidential Gene variable (only for nextflow)
env.evi="${projectDir}/scripts/evigene"
// Get PATH for cache environments
params.localCacheDir = (params.envCacheDir ? "${params.envCacheDir}" : "${launchDir}")
profiles {
conda {
params.condaActivate = true
params.localConda="${params.myCondaInstall}"
// cache for condaEnv created individually
conda.cacheDir = "${params.localCacheDir}/condaEnv/"
}
docker {
docker.enabled = true
docker.runOptions = "-u \$(id -u):\$(id -g) -v ${params.pipeInstall}:${params.pipeInstall}"
// --mount type=bind,src=${params.pipeInstall},dst=/dockerDB"
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
// cache for images from docker pull
singularity.cacheDir="${params.localCacheDir}/singularityCache/"
}
test {
includeConfig 'conf/test.config'
}
TransPiContainer {
process {
params.oneContainer = true
params.TPcontainer="rerv/transpi:v1.0.0"
}
}
palmuc {
process {
executor='slurm'
clusterOptions='-p lemmium --qos=low'
}
}
}
executor {
$slurm {
queueSize=100
}
}
timeline {
enabled = true
file = "${params.outdir}/${params.tracedir}/transpi_timeline.html"
}
report {
enabled = true
file = "${params.outdir}/${params.tracedir}/transpi_report.html"
}
trace {
enabled = true
file = "${params.outdir}/${params.tracedir}/transpi_trace.txt"
}
dag {
enabled = true
file = "${params.outdir}/${params.tracedir}/transpi_dag.html"
}
manifest {
name = 'TransPi'
author = 'Ramón E. Rivera-Vicéns'
description = 'Transcriptome Analysis Pipeline'
mainScript = 'TransPi.nf'
nextflowVersion = '>=21.04.1'
version = '1.3.0-rc'
}