forked from hoelzer-lab/rnaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
executable file
·200 lines (170 loc) · 5.15 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
194
195
196
197
198
199
200
manifest {
mainScript = 'main.nf'
}
tower {
accessToken = ''
enabled = false
}
// default parameters
params {
max_cores = Runtime.runtime.availableProcessors()
cores = "1"
memory = 8.GB
profile = false
help = false
// input
reads = ''
genome = ''
annotation = ''
deg = ''
autodownload = ''
pathway = ''
species = '' // deprecated reminder
include_species = false // deprecated reminder
// parameters
strand = '0'
mode = 'single'
tpm = 1
fastp_additional_params = '-5 -3 -W 4 -M 20 -l 15 -x -n 5 -z 6'
hisat2_additional_params = ''
featurecounts_additional_params = '-t exon -g gene_id' // default values
feature_id_type = 'ensembl_gene_id'
busco_db = 'euarchontoglires_odb9'
dammit_uniref90 = false
skip_sortmerna = false
assembly = false
// folder structure
output = 'results'
fastp_dir = '01-Trimming/fastp'
sortmerna_dir = '02-rRNARemoval/SortMeRNA'
hisat2_dir = '03-Mapping/HISAT2'
featurecounts_dir = '04-Counting/featureCounts'
tpm_filter_dir = '05-CountingFilter/TPM'
annotation_dir = '06-Annotation'
deseq2_dir = '07-DifferentialExpression/DESeq2'
assembly_dir = '08-Assembly/de_novo'
rnaseq_annotation_dir = '09-RNA-Seq_Annotation/'
// if the UniRef90 option for dammit is activated via --dammit_uniref90, this parameter will be set to 'uniref90' for the dammit output
uniref90_dir = ''
multiqc_dir = 'Summary'
nf_runinfo_dir = 'Logs'
// location for autodownload data like databases
permanentCacheDir = 'nextflow-autodownload-databases'
// location for storing the conda environments
condaCacheDir = 'conda'
// location for storing the singularity images
singularityCacheDir = 'singularity'
// softlink results instead of copying
softlink_results = false
cloudProcess = false
}
timeline {
enabled = true
file = "${params.output}/${params.nf_runinfo_dir}/execution_timeline.html"
}
report {
enabled = true
file = "${params.output}/${params.nf_runinfo_dir}/execution_report.html"
}
profiles {
////////////////////////////////////////////////////
// executors
local {
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}
params.cloudProcess = false
includeConfig 'configs/local.config'
}
slurm {
executor {
name = "slurm"
queueSize = 100
// exitReadTimeout = "360 sec"
// submitRateLimit = '1 / 2 s'
// pollInterval = '30 sec'
}
params.cloudProcess = true
process.cache = "lenient"
includeConfig 'configs/nodes.config'
}
lsf {
executor {
name = "lsf"
queueSize = 100
// exitReadTimeout = "360 sec"
// submitRateLimit = '1 / 2 s'
// pollInterval = '30 sec'
}
params.cloudProcess = true
process.cache = "lenient"
includeConfig 'configs/nodes.config'
}
////////////////////////////////////////////////////
// engines
conda {
// can be removed if we have working conda envs for all tools!
docker { enabled = true }
conda{
cacheDir = params.condaCacheDir
timeout = '45 min'
}
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'
}
////////////////////////////////////////////////////
// predefined combinations
// local execution with conda
standard {
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}
params.cloudProcess = false
conda { cacheDir = params.condaCacheDir }
includeConfig 'configs/local.config'
includeConfig 'configs/conda.config'
}
test {
params.reads = "$baseDir/test-data/input.se.hsa_small.csv"
params.autodownload = 'hsa'
params.pathway = 'hsa'
params.species = 'hsa' // deprecated reminder
params.include_species = false // deprecated reminder
params.max_cores = '4'
params.cores = '2'
}
// ARA specific profile
ara {
params.cloudProcess = true
workDir = "/beegfs/rna-hta/$USER/work"
params.permanentCacheDir = "/beegfs/rna-hta/nextflow-rnaflow-autodownload/"
conda { cacheDir = "/beegfs/rna-hta/$USER/nextflow-conda-cache" }
process {
clusterOptions = '--partition=s_standard,s_fat,b_standard,b_fat'
withLabel: smallTask { executor = 'local' }
}
executor {
name = "slurm"
queueSize = 100
}
process.cache = "lenient"
includeConfig 'configs/nodes.config'
includeConfig 'configs/conda.config' }
}