forked from Ensembl/ensembl-rest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ensembl_rest.conf
267 lines (207 loc) · 8.12 KB
/
ensembl_rest.conf
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# This is the default configuration for Ensembl REST applications. Take your own copy
# and make it available to Catalyst via the ENSEMBL_REST_CONFIG or CATALYST_CONFIG ENV vars.
name = EnsEMBL::REST
default_view = HTML
service_name = Ensembl REST API
service_logo = /static/img/e-ensembl.png
service_parent_url = http://www.ensembl.org
copyright_footer = <a href='http://www.sanger.ac.uk'>WTSI</a> & <a href='http://www.ebi.ac.uk'>EBI</a>
jsonp=1
<Model::Registry>
###### Database settings. Use if you want to connect to a single database instance. Common options are given below
# host = useastdb.ensembl.org
# port = 5306
# user = anonymous
host = ensembldb.ensembl.org
port = 5306
user = anonymous
# host = mysql.ebi.ac.uk
# port = 4157
# user = anonymous
version = 77
# verbose = 0
###### Registry file settings
# The file to use as a registry file passed into Bio::EnsEMBL::Registry::load_all()
# file = reg.pm
###### Bio::EnsEMBL::LookUp settings. Used for the bacteira databases provided by Ensembl Genomes
# Load lookup from a local file
# lookup_file = file.json
# Load lookup from a remote URL. Most common option
# lookup_url = http://bacteria.ensembl.org/registry.json
# Store the local loookup cache in a location other than the default (lookup_cache.json)
# lookup_cache_file = lookup_cache.json
# Turn off the local lookup cache storage.
# lookup_no_cache = 1
# Turns on per-process connection sharing; experimental feature but is stable.
# Results in 1 connection per db per process rather than 1 connection per DBAdaptor instance per process
connection_sharing = 1
# Control the reconnection timeout (example is set to 10 mintues in ms). Only works when connection_sharing is on
reconnect_interval = 600000
# Control if we close DB connections down once finished with them. If you are not using the
# connection_sharing it is recommened to turn this on to avoid DOS attacks from your web processes
disconnect_if_idle = 0
# Control if we attempt pings and re-connections before queries. Useful for long running connections
# if you are using connection_sharing
reconnect_when_lost = 1
# Set to control internal Ensembl API caching. Turn this off if your application is persistent (internal
# caches are not shared, will rarely hit and increase your PSGI processes memory footprint)
no_caching = 1
</Model::Registry>
<Model::Lookup>
# Model to use for ID lookups. Currently defaults to the DatabaseIDLookup which can be stable_ids schema
# or a simple DBAdaptor loop lookup
# lookup_model = DatabaseIDLookup
</Model::Lookup>
<Model::Documentation>
#Must be an array reference; if you specify only 1 then surround with [] brackets; if you specify more then remove them
paths=[root/documentation]
#How long examples stay in the backend caches before being expired; default is 1hr in seconds.
#Expire depends on the type of CHI cache configured in Plugin::Cache section
# example_expire_time=3600
#Used to control the parameters used in examples. Please edit as you see fit for your infrastructure
<replacements>
gene_stable_id=ENSG00000157764
gene_stable_id_2=ENSG00000248378
transcript_stable_id=ENST00000288602
exon_stable_id=ENSE00001154485
translation_stable_id=ENSP00000288602
vcf=21 26960070 rs116645811 G A . . .
vcf2=21 26965148 rs1135638 G A . . .
gene_symbol=BRCA2
gene_symbol2=BRAF
gene_symbol_db=HGNC
transcript_symbol_db=PDB
prediction_transcript_stable_id=GENSCAN00000000001
other_features_transcript_stable_id=CCDS5863.1
sequence_region_name=X
sequence_region=X:1000000..1000100:1
sequence_region_negative=X:1000000..1000100:-1
sequence_region_strandless=X:1000000..1000100
contig_sequence_region=ABBA01004489.1:1..100
contig_coord_system=seqlevel
species=homo_sapiens
species_common=human
taxon=9606
taxon_name=Homo sapiens
taxon_nameish=Homo%25
target_taxon=10090
target_species=cow
ontology=GO
ontology_term_id=GO:0005667
ontology_term_name=transcription factor complex
compara=multi
compara_method=EPO
compara_method_type=GenomicAlign
genetree_stable_id=ENSGT00390000003602
from_coord_system=GRCh37
to_coord_system=GRCh38
cdna_coordinates=100..300
cds_coordinates=1..1000
translation_coordinates=100..300
variation_region=9:22125503-22125502:1
variation_allele=C
variation_region_two=1:6524705:6524705
variation_allele_two=T
variation_region_three=7:100318423-100321323:1
variation_allele_three=DUP
variation_id=rs116035550
variation_id_two=COSM476
vep_hgvs=AGT:c.803T>C
vep_hgvs_two=9:g.22125504G>C
vep_hgvs_three=ENST00000003084:c.1431_1433delTTC
genomic_alignment_species=taeniopygia_guttata
genomic_alignment_region=2:106040050-106040100:1
genomic_alignment_group=sauropsids
info_division=ensembl
</replacements>
</Model::Documentation>
<Controller::Archive>
max_post_size = 1000
</Controller::Archive>
<Controller::Lookup>
max_post_size = 1000
</Controller::Lookup>
<Controller::Taxonomy>
# specify the registry alias for the database containing ncbi_taxa_node tables (normally a compara schema)
# taxonomy = plants
</Controller::Taxonomy>
<Controller::Ontology>
# specify the registry alias for the database containing ontology tables (normally called ontology)
# ontology = ontology
</Controller::Ontology>
<Controller::Sequence>
# Set to limit the maximum allowed size of sequence to return from the service.
# This will impact on memory footprint so tread carefully
max_slice_length = 1e7
max_post_size = 50
</Controller::Sequence>
<Controller::Overlap>
# Set to limit the maximum allowed size of feature slices to return from the service.
# This will impact on memory footprint so tread carefully
max_slice_length = 5e6
</Controller::Overlap>
<Controller::Homology>
# Sets the default compara to use when finding the best compara fails. Defaults to multi
# default_compara=multi
</Controller::Homology>
<Controller::Regulatory>
# Sets the default regulation to use when finding the best regulation fails. Defaults to multi
# default_regulation=multi
</Controller::Regulatory>
<Controller::GenomicAlignment>
# Sets the default compara to use when finding the best compara fails. Defaults to multi
# default_compara=multi
</Controller::GenomicAlignment>
<Controller::Variaton>
max_post_size = 1000
</Controller::Variaton>
<Controller::VEP>
# Supply a fasta path for Human in order to allow VEP to work locally
fasta = Homo_sapiens.GRCh37.75.dna.toplevel.fa # path to Human toplevel fasta file
dir = # path to vep cache directory
# Default parameters for running vep
cache_region_size = 1000000
chunk_size = 50000
whole_genome = 1
compress = gzip -dc
terms = SO
cache = 1
failed = 0
core_type = core
quiet = 1
sift = b
polyphen = b
symbol = 1
regulatory = 1
biotype = 1
rest = 1
check_existing = 1 # adds some performance penalty, mitigated by tabix-converting the cache (http://www.ensembl.org/info/docs/tools/vep/script/vep_cache.html#convert)
max_post_size = 1000
warning_file = STDERR # controls VEP logging, not Catalyst
</Controller::VEP>
<View::GFF3>
# Set the default source of a GFF3 record
# default_source=.
</View::GFF3>
<Plugin::Cache>
<backend>
#Default
class = CHI
driver = Memory
global = 1
</backend>
</Plugin::Cache>
<Model::GAcallSet>
ga_config = __path_to(t/test-genome-DBs/testdata/ga_data/ga_vcf_config.json)__
</Model::GAcallSet>
<Model::GAvariant>
ga_config = __path_to(ga_vcf_config.json)__
dir = __path_to(t/test-genome-DBs/testdata/ga_data/)__
</Model::GAvariant>
<Model::GAvariantSet>
ga_config = __path_to(t/test-genome-DBs/testdata/ga_data/ga_vcf_config.json)__
</Model::GAvariantSet>
<Model::Variation>
use_vcf = 0
vcf_config = __path_to(vcf_config.json)__
</Model::Variation>