-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathnextflow.config
205 lines (177 loc) · 4.96 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
201
202
203
204
205
params {
// Pipeline metadata
version = false
// Input options
help = false
input = false
metadata = false
// Processing options
skip_primer_trim = false
skip_nb = false
run_picrust2 = false
download_db = false
skip_phylotree = false
// QC parameters
filterQ = 20
downsample = 0
// DADA2 parameters
min_len = 1000
max_len = 1600
omegac = "1e-40"
max_ee = 2
minQ = 0
learn_error_sample = false
pooling_method = 'pseudo'
// ASV filtering parameters
min_asv_totalfreq = 5 // Will be set to 0 for single sample
min_asv_sample = 1 // Will be set to 0 for single sample
// VSEARCH parameters
maxreject = 100
maxaccept = 100
vsearch_identity = 0.97
// Primer sequences (V1-V9 adapter by default)
front_p = 'AGRGTTYGATYMTGGCTCAG'
adapter_p = 'AAGTCGTAACAAGGTARCY'
// Resource allocation
dada2_cpu = 8
vsearch_cpu = 8
cutadapt_cpu = 16
// Database paths
vsearch_db = "${projectDir}/databases/GTDB_ssu_all_r220.qza"
vsearch_tax = "${projectDir}/databases/GTDB_ssu_all_r220.taxonomy.qza"
silva_db = "${projectDir}/databases/silva_nr99_v138.2_toSpecies_trainset.fa.gz"
gg2_db = "${projectDir}/databases/gg2_2024_09_toSpecies_trainset.fa.gz"
gtdb_db = "${projectDir}/databases/GTDB_bac120_arc53_ssu_r220_fullTaxo.fa.gz"
// Database to prioritize, can be GG2, GTDB, or Silva
db_to_prioritize = "GG2"
// Script locations
rmd_vis_biom_script = "${projectDir}/scripts/visualize_biom.Rmd"
rmd_helper = "${projectDir}/scripts/import_biom.R"
primer_fasta = "${projectDir}/scripts/16S_primers.fasta"
dadaCCS_script = "${projectDir}/scripts/run_dada_2023.2.R"
dadaAssign_script = "${projectDir}/scripts/dada2_assign_tax.R"
learnError_script = "${projectDir}/scripts/learnError.R"
// Output options
outdir = "results"
publish_dir_mode = "symlink"
colorby = "condition"
rarefaction_depth = null
// Container options
enable_conda = false
enable_container = false
}
// Docker/Singularity configuration
docker {
enabled = params.enable_container
}
singularity {
enabled = params.enable_container
autoMounts = true
}
// Execution reports
report {
enabled = true
overwrite = true
file = "${params.outdir}/execution_report.html"
}
timeline {
enabled = true
file = "${params.outdir}/execution_timeline.html"
overwrite = true
}
trace {
enabled = true
file = "${params.outdir}/execution_trace.txt"
overwrite = true
}
// Execution profiles
profiles {
standard {
conda {
useMamba = false
conda.enabled = true
// Allow longer conda creation timeout
createTimeout = '2 h'
cacheDir = "$HOME/nf_conda/"
}
params.enable_conda = true
singularity.enabled = false
singularity.automounts = false
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
conda {
conda {
useMamba = false
conda.enabled = true
// Allow longer conda creation timeout
createTimeout = '2 h'
cacheDir = "$HOME/nf_conda/"
}
params.enable_conda = true
singularity.enabled = false
singularity.automounts = false
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
singularity.cacheDir = "$HOME/nf_conda/singularity"
singularity.runOptions = "--bind $HOME/nf_conda:/home/qiime2"
params.enable_container = true
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
docker {
singularity.enabled = false
singularity.autoMounts = false
docker.enabled = true
params.enable_container = true
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
}
}
// Also add back the CPU and memory configurations
process {
withLabel: cpu_def {
cpus = 4
memory = 16.GB
}
withLabel: cpu8 {
cpus = 8
memory = 32.GB
}
withLabel: cpu32 {
cpus = 32
memory = 128.GB
}
}
// Local executor configuration
executor {
// Change to slurm and uncomment queue if using Slurm scheduler
name = 'Local'
max_retries = 3
// queue = 'QUEUE'
}
// Default if using local
process {
// Default cpu if not specified
cpus = 8
// Set tmpdir before every process
beforeScript = 'mkdir -p ./tmp/'
}
// env for qiime
env {
TMPDIR = './tmp/'
MPLCONFIGDIR = './tmp/mplconfigdir'
NUMBA_CACHE_DIR = './tmp/numbacache'
MAFFT_TMPDIR = './tmp/mafft_tmpdir'
}