-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
216 lines (176 loc) · 5.52 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
206
207
208
209
210
211
212
213
214
215
216
manifest {
author = 'Trevor F. Freeman'
defaultBranch = 'main'
recurseSubmodules = true
description = 'A pipeline for ATAC-seq data analysis built on SRAlign.'
mainScript = 'main.nf'
name = 'trev-f/SRAtac'
nextflowVersion = '>=21.04'
version = 'v0.5.0'
}
params {
/*
---------------------------------------------------------------------
I/O
Input/Output parameters
---------------------------------------------------------------------
*/
baseDirGenome = "${PWD}/data/references"
baseDirReport = "${PWD}/results/reports"
baseDirData = "${PWD}/results/data"
/*
---------------------------------------------------------------------
Report QC
QC reporting parameters
---------------------------------------------------------------------
*/
multiqcConfig = "${projectDir}/configs/full_multiqc_config.yaml"
/*
---------------------------------------------------------------------
References
Reference parameters
---------------------------------------------------------------------
*/
contaminant = 'EB1'
/*
---------------------------------------------------------------------
Reads QC
Reads QC parameters
---------------------------------------------------------------------
*/
skipReadsQC = false
skipDedicatedReadsMultiQC = false
skipRawFastQC = false
/*
---------------------------------------------------------------------
Trim reads
Read-trimming parameters
---------------------------------------------------------------------
*/
trimTool = 'fastp'
adapterR1 = 'CTGTCTCTTATACACATCT'
adapterR2 = ''
skipTrimReads = false
skipTrimFastQC = false
/*
---------------------------------------------------------------------
Alignment
Alignment parameters
---------------------------------------------------------------------
*/
alignmentTool = 'bowtie2'
forceAlignRawReads = false
forceUseHisat2Index = true
buildSpliceAwareIndex = false
skipAlignGenome = false
skipAlignContam = false
/*
---------------------------------------------------------------------
Library QC
Library QC parameters
---------------------------------------------------------------------
*/
skipAlignmentStatsQC = false
/*
---------------------------------------------------------------------
Library complexity
Library complexity parameters
---------------------------------------------------------------------
*/
skipPreseq = false
// filtering
skipFilterBam = false
mappingQualityThreshold = 10
forceUnfilteredBam = false
// bamCoverage
skipBamCoverage = false
binSize = 50
normMethod = 'None'
// peak calling
skipPeakCalling = false
// merge peaks
skipMergePeaks = false
mergePeaksTool = 'homer'
/*
---------------------------------------------------------------------
Resources
Resources default parameters
---------------------------------------------------------------------
*/
maxCpus = 16
maxMemory = '24.GB'
maxTime = '24.h'
/*
---------------------------------------------------------------------
Miscellaneous
Mescellaneous parameters
---------------------------------------------------------------------
*/
seed = 40
help = null
dummyFile = "${projectDir}/bin/dummy.txt"
}
profiles {
docker {
docker.enabled = true
}
google {
process.executor = 'google-lifesciences'
workDir = 'gs://esctffno/scratch'
google.location = 'us-central1'
google.region = 'us-central1'
google.project = 'no-chr'
}
test {
docker.enabled = true
params.maxMemory = '4.GB'
params.input = 'https://github.com/trev-f/SRAlign-test/raw/main/inputs/ATAC-seq_Celegans_design_reads.csv'
params.genome = 'testWBcel235'
params.contaminant = 'testEB1'
}
testBam {
docker.enabled = true
params.maxMemory = '4.GB'
params.input = 'https://github.com/trev-f/SRAlign-test/raw/main/inputs/ATAC-seq_Celegans_design_bams.csv'
params.genome = 'testWBcel235'
params.contaminant = 'testEB1'
}
dryRun {
params.skipRawFastQC = true
params.skipTrimReads = true
params.skipTrimReadsQC = true
params.skipAlignGenome = true
params.skipSamStatsQC = true
params.skipAlignContam = true
params.skipPreseq = true
}
}
/*
Include other config files
*/
// Load genomes config file
includeConfig 'configs/genomes.config'
// Load modules config file
includeConfig 'configs/modules.config'
// Load resources config file
includeConfig 'configs/resources.config'
/*
Reporting
*/
timestamp = new java.util.Date().format('yyyy-MM-dd_HH-mm')
dag {
enabled = true
file = "${params.baseDirReport}/tracing/${timestamp}_dag.html"
}
report {
enabled = true
file = "${params.baseDirReport}/tracing/${timestamp}_report.html"
}
timeline{
enabled = true
file = "${params.baseDirReport}/tracing/${timestamp}_timeline.html"
}
trace {
enabled = true
file = "${params.baseDirReport}/tracing/${timestamp}_trace.html"
}