forked from replikation/poreCov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
172 lines (146 loc) · 4.1 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
manifest {
mainScript = 'poreCov.nf'
name = 'poreCov'
}
// default parameters
params {
max_cores = Runtime.runtime.availableProcessors()
cores = Runtime.runtime.availableProcessors().intdiv(4)
memory = '12'
help = false
profile = false
// inputs
fast5 = ''
fasta = ''
multifasta = ''
fastq = ''
fastq_pass = ''
list = false
samples = false
// consensus qc
reference_for_qc = ''
seq_threshold = '0.90'
n_threshold = '0.05'
min_depth = '20'
// settings
buildDB = false
cloudProcess = false
extended = false
guppy_cpu = false
guppy_model = 'dna_r9.4.1_450bps_hac.cfg'
krakendb = ''
localguppy = false
medaka_model = 'r941_min_hac_g507'
nanopolish = ''
one_end = false
single = false
update = false
defaultpangolin = 'nanozoo/pangolin:3.1.16--2021-11-25'
defaultnextclade = 'nanozoo/nextclade:1.5.0--2021-11-27'
// parameters
primerV = 'V3'
minLength = false
maxLength = false
rapid = false
// folder structure
cachedir = "singularity_images"
databases = "databases"
output = 'results'
readsdir = "0.Fastq_reads"
readqcdir = "1.Read_quality"
genomedir = "2.Genomes"
lineagedir = "3.Lineages_Clades_Mutations"
rkidir = "4.RKI-summary"
seqrepair = "5.Genome-primer-repair"
jsondir = "6.json-summaries"
runinfodir = "X.Pipeline-runinfo"
}
// runinfo
timeline {
enabled = true
file = "${params.output}/${params.runinfodir}/execution_timeline.html"
}
report {
enabled = true
file = "${params.output}/${params.runinfodir}/execution_report.html"
}
profiles {
test_fastq {
params.primerV = 'V1200'
}
stub {
params.primerV = 'V1200'
}
test_fasta {
}
test_fast5 {
params.single = true
}
local {
workDir = "work/nextflow-poreCov-$USER"
includeConfig 'configs/local.config'
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}
process.errorStrategy = 'ignore'
}
slurm {
executor {
name = "slurm"
queueSize = 100
// exitReadTimeout = "360 sec"
// submitRateLimit = '1 / 2 s'
// pollInterval = '30 sec'
}
process.cache = "lenient"
includeConfig 'configs/nodes.config'
process.errorStrategy = 'ignore'
}
docker {
docker { enabled = true }
includeConfig 'configs/container.config'
}
singularity {
singularity {
enabled = true
autoMounts = true
cacheDir = params.cachedir
//runOptions = "-B /tmp/nextflow-nCov-$USER"
}
includeConfig 'configs/container.config'
}
nanozoo {
timeline { enabled = false }
report { enabled = false }
docker { enabled = true }
google {
lifeSciences.preemptible = true
lifeSciences.bootDiskSize = 20.GB
}
includeConfig 'configs/nodes.config'
includeConfig 'configs/container.config'
// cloud error strategy
process.errorStrategy = { task.exitStatus in [14,143,137,104,134,139] ? 'retry' : 'ignore' }
process.maxRetries = 3
}
ukj_cloud {
workDir = "/tmp/nextflow-poreCov-$USER"
docker { enabled = true }
process.executor = 'google-lifesciences'
params.databases = 'gs://persistant-storage/poreCov/'
bucketDir = 'gs://case-tmp-dir/poreCov/'
google {
project = 'case-dev-302214'
zone = 'europe-west1-b,europe-west1-c,europe-west3-b,europe-west3-a,europe-west4-b,europe-west4-a'
lifeSciences.preemptible = true
lifeSciences.bootDiskSize = 20.GB
}
includeConfig 'configs/container.config'
includeConfig 'configs/nodes.config'
// cloud error strategy
process.errorStrategy = { task.exitStatus in [10,14,143,137,104,134,139] ? 'retry' : 'ignore' }
process.maxRetries = 3
}
}