-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
157 lines (133 loc) · 3.63 KB
/
nextflow.config
File metadata and controls
157 lines (133 loc) · 3.63 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
/*
* =============================================================
* EPMC Ontology Annotator – Nextflow Configuration
* =============================================================
*/
// --------------- Default parameters ---------------
params {
input_dir = null
tagger_db = null
outdir = 'results'
ontologies = null // e.g. 'ecto,hpo,mondo' — null keeps all
min_label_len = 6
delimiters = " ,.;:!?()[]{}\"'/\\\t\n-+="
progress = 100000
db_name = 'epmc_tags.sqlite'
}
// --------------- Execution profiles ---------------
profiles {
standard {
process.executor = 'local'
}
docker {
docker.enabled = true
process.executor = 'local'
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
singularity.cacheDir = "${projectDir}/singularity_cache"
process.executor = 'local'
}
slurm {
process {
executor = 'slurm'
queue = 'standard'
clusterOptions = ''
withName: 'TAG_CHUNK' {
memory = '6 GB'
cpus = 1
time = '6h'
}
withName: 'LOAD_SQLITE' {
memory = '16 GB'
cpus = 1
time = '2h'
}
withName: 'SUMMARISE' {
memory = '4 GB'
cpus = 1
time = '30m'
}
}
}
lsf {
process {
executor = 'lsf'
withName: 'TAG_CHUNK' {
memory = '6 GB'
cpus = 1
time = '6h'
}
withName: 'LOAD_SQLITE' {
memory = '16 GB'
cpus = 1
time = '2h'
}
withName: 'SUMMARISE' {
memory = '4 GB'
cpus = 1
time = '30m'
}
}
}
// Codon / EBI cluster specifics
codon {
process {
executor = 'slurm'
queue = 'standard'
withName: 'TAG_CHUNK' {
memory = '6 GB'
cpus = 1
time = '6h'
}
withName: 'LOAD_SQLITE' {
memory = '16 GB'
cpus = 1
time = '2h'
}
withName: 'SUMMARISE' {
memory = '4 GB'
cpus = 1
time = '30m'
}
}
}
}
// --------------- Process defaults ---------------
process {
errorStrategy = 'retry'
maxRetries = 2
container = 'ghcr.io/ebispot/epmc_ontology_annotator:dev'
}
// --------------- Manifest ---------------
manifest {
name = 'epmc-ontology-annotator'
author = 'James McLaughlin'
description = 'Annotate EuropePMC abstracts with ontology terms using ols_text_tagger'
mainScript = 'main.nf'
nextflowVersion = '>=23.04'
version = '1.0.0'
}
// --------------- Reports and tracing ---------------
report {
enabled = true
file = "${params.outdir}/pipeline_report.html"
overwrite = true
}
timeline {
enabled = true
file = "${params.outdir}/timeline.html"
overwrite = true
}
trace {
enabled = true
file = "${params.outdir}/trace.txt"
overwrite = true
fields = 'task_id,hash,native_id,name,status,exit,realtime,cpus,memory,%cpu,%mem,rss,peak_rss'
}
dag {
enabled = true
file = "${params.outdir}/dag.html"
overwrite = true
}