-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnextflow.config
More file actions
170 lines (139 loc) · 4.39 KB
/
nextflow.config
File metadata and controls
170 lines (139 loc) · 4.39 KB
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
/*
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nextflow config file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default config options for all compute environments
----------------------------------------------------------------------------------------
*/
// Set minimum required Nextflow version, stopping execution if current version does not match
//nextflowVersion = '!>=23.01'
// Global default params, used in configs
params {
// Running options
run_busco_core = false
run_busco_ncbi = false
run_omark = false
run_ensembl_stats = false
run_ensembl_beta_metakeys = false
apply_ensembl_stats = false
apply_ensembl_beta_metakeys = false
apply_busco_metakeys = false
copyToFtp = false
// db connection
dbname = null
host = null
port = null
user = null
user_r = null
password = null
busco_dataset = null
mysql_ensadmin = "/hps/software/users/ensembl/ensw/mysql-cmds/ensembl/ensadmin"
jdbcUrl = "jdbc:mysql://${params.host}:${params.port}/${params.dbname}"
ncbiBaseUrl="https://api.ncbi.nlm.nih.gov/datasets/v2alpha/genome/accession/"
readme="${projectDir}/../data/README.txt"
production_ftp_dir= "/nfs/production/flicek/ensembl/production/ensemblftp/rapid-release/species/"
project = 'ensembl'
team = ''
// Input options
csvFile = null
enscode = null
bioperl = "${params.enscode}/bioperl-1.6.924"
help = false
outDir = null
cacheDir = "${params.outDir}/cache"
files_latency = '60'
cleanCache = false // Default to false
}
env {
ENSCODE = "${params.enscode}"
PERL5LIB = "${params.enscode}/ensembl/modules:${params.enscode}/ensembl-analysis/modules:" +
"${params.enscode}/ensembl-io/modules:${params.enscode}/core_meta_updates/scripts/stats:${params.bioperl}:$PERL5LIB"
//PATH="/hps/software/users/ensembl/ensw/C8-MAR21-sandybridge/linuxbrew/bin/"
//BIOPERL_LIB="/hps/software/users/ensembl/ensw/C8-MAR21-sandybridge/linuxbrew/opt/bioperl-169/libexec"
}
scratch = ''
workDir = ''
includeConfig './pipelines/nextflow/conf/busco.config'
includeConfig './pipelines/nextflow/conf/omark.config'
singularity {
enabled = true
autoMounts = true
pullTimeout = '1 hour'
}
profiles {
standard {
executor {
name = 'lsf'
perJobMemLimit = true
queueSize = 2000
submitRateLimit = "10/1sec"
queueGlobalStatus = true
exitReadTimeout = "30 min"
}
process {
queue = 'production'
}
}
slurm {
executor {
name = 'slurm'
queueSize = 2000
submitRateLimit = "10/1sec"
queueGlobalStatus = true
exitReadTimeout = "30 min"
}
process {
clusterOptions = '-t 7-00:00:00 -e errlog.txt'
}
}
}
process {
errorStrategy = { task.exitStatus in [104, 137, 140, 143] ? 'retry' : 'terminate' }
maxRetries = 3
cache = 'lenient'
withLabel: 'default' {
cpus = 1
memory = { 3.GB * task.attempt }
time = { 1.h * task.attempt }
afterScript = { "sleep 60" }
}
withLabel: 'fetch_file' {
cpus = 2
memory = { 8.GB * task.attempt }
time = { 2.h * task.attempt }
}
withLabel: 'busco' {
cpus = 40
memory = { 40.GB * task.attempt }
time = { 4.h * task.attempt }
module = 'singularity-3.7.0-gcc-9.3.0-dp5ffrp'
container = "ezlabgva/busco:${params.busco_version}"
}
withLabel: 'omamer' {
cpus = 10
memory = { 50.GB * task.attempt }
time = { 4.h * task.attempt }
module = 'singularity-3.7.0-gcc-9.3.0-dp5ffrp'
container = "${params.omark_singularity_path}"
}
withLabel: 'python' {
maxForks = 10
memory = { 10.GB * task.attempt }
time = { 4.h * task.attempt }
module = 'singularity-3.7.0-gcc-9.3.0-dp5ffrp'
container = 'python:3.9.19'
}
}