-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathConfig.groovy
459 lines (413 loc) · 19 KB
/
Config.groovy
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
// locations to search for config files that get merged into the main config;
// config files can be ConfigSlurper scripts, Java properties files, or classes
// in the classpath in ConfigSlurper format
// if (System.properties["${appName}.config.location"]) {
// grails.config.locations << "file:" + System.properties["${appName}.config.location"]
// }
extraSrcDirs = "$basedir/src/gwt/org.bbop.apollo.gwt.shared"
eventCompileStart = {
projectCompiler.srcDirectories << extraSrcDirs
}
grails.config.locations = [
"file:./${appName}-config.groovy" // dev only
, "classpath:${appName}-config.groovy" // for production deployment
, "classpath:${appName}-config.properties"
]
// if (System.properties["${appName}.config.location"]) {
// grails.config.locations << "file:" + System.properties["${appName}.config.location"]
// }
grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
// The ACCEPT header will not be used for content negotiation for user agents containing the following strings (defaults to the 4 major rendering engines)
grails.mime.disable.accept.header.userAgents = ['Gecko', 'WebKit', 'Presto', 'Trident']
grails.mime.types = [ // the first one is the default format
all : '*/*', // 'all' maps to '*' or the first available format in withFormat
atom : 'application/atom+xml',
css : 'text/css',
csv : 'text/csv',
pdf : 'application/pdf',
rtf : 'application/rtf',
excel : 'application/vnd.ms-excel',
ods : 'application/vnd.oasis.opendocument.spreadsheet',
form : 'application/x-www-form-urlencoded',
html : ['text/html', 'application/xhtml+xml'],
js : 'text/javascript',
json : ['application/json', 'text/json'],
multipartForm: 'multipart/form-data',
rss : 'application/rss+xml',
text : 'text/plain',
hal : ['application/hal+json', 'application/hal+xml'],
xml : ['text/xml', 'application/xml']
]
// URL Mapping Cache Max Size, defaults to 5000
//grails.urlmapping.cache.maxsize = 1000
// Legacy setting for codec used to encode data with ${}
grails.views.default.codec = "html"
// The default scope for controllers. May be prototype, session or singleton.
// If unspecified, controllers are prototype scoped.
grails.controllers.defaultScope = 'singleton'
// GSP settings
grails {
views {
gsp {
encoding = 'UTF-8'
htmlcodec = 'xml' // use xml escaping instead of HTML4 escaping
codecs {
expression = 'html' // escapes values inside ${}
scriptlet = 'html' // escapes output from scriptlets in GSPs
taglib = 'none' // escapes output from taglibs
staticparts = 'none' // escapes output from static template parts
}
}
// escapes all not-encoded output at final stage of outputting
// filteringCodecForContentType.'text/html' = 'html'
}
}
grails.converters.encoding = "UTF-8"
// scaffolding templates configuration
grails.scaffolding.templates.domainSuffix = 'Instance'
// Set to false to use the new Grails 1.2 JSONBuilder in the render method
grails.json.legacy.builder = false
// enabled native2ascii conversion of i18n properties files
grails.enable.native2ascii = false
// packages to include in Spring bean scanning
grails.spring.bean.packages = []
// whether to disable processing of multi part requests
grails.web.disable.multipart = false
// request parameters to mask when logging exceptions
grails.exceptionresolver.params.exclude = ['password']
// configure auto-caching of queries by default (if false you can cache individual queries with 'cache: true')
grails.hibernate.cache.queries = false
// configure passing transaction's read-only attribute to Hibernate session, queries and criterias
// set "singleSession = false" OSIV mode in hibernate configuration after enabling
grails.hibernate.pass.readonly = false
// configure passing read-only to OSIV session by default, requires "singleSession = false" OSIV mode
grails.hibernate.osiv.readonly = false
grails.cache.config = {
// avoid ehcache naming conflict to run multiple WA instances
provider {
name "ehcache-apollo-" + (new Date().format("yyyyMMddHHmmss"))
}
cache {
enabled = true
name 'globalcache'
eternal false
overflowToDisk true
maxElementsInMemory 10000
maxElementsOnDisk 10000000
}
defaultCache {
maxElementsInMemory 10000
eternal false
timeToIdleSeconds 120
timeToLiveSeconds 120
overflowToDisk true
maxElementsOnDisk 10000000
diskPersistent false
diskExpiryThreadIntervalSeconds 120
memoryStoreEvictionPolicy 'LRU'
}
}
environments {
development {
grails.logging.jul.usebridge = true
grails.assets.minifyJs = false
grails.assets.minifyCss = false
grails.assets.enableSourceMaps = true
grails.assets.bundle = false
}
test {
grails.assets.minifyJs = false
grails.assets.minifyCss = false
grails.assets.enableSourceMaps = true
grails.assets.bundle = false
}
production {
grails.logging.jul.usebridge = false
grails.assets.minifyJs = false
grails.assets.minifyCss = false
grails.assets.enableSourceMaps = true
grails.assets.bundle = false
}
}
// log4j configuration
log4j.main = {
// log errors from dependencies
error 'org.codehaus.groovy.grails.web.servlet', // controllers
'org.codehaus.groovy.grails.web.pages', // GSP
'org.codehaus.groovy.grails.web.sitemesh', // layouts
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
'org.codehaus.groovy.grails.web.mapping', // URL mapping
'org.codehaus.groovy.grails.commons', // core / classloading
'org.codehaus.groovy.grails.plugins', // plugins
'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
'org.springframework',
'org.hibernate',
'net.sf.ehcache.hibernate'
// enable logging of our webapollo instance (uncomment debug for extensive output)
warn 'grails.app'
// debug 'grails.app'
// debug 'liquibase'
// debug 'org.bbop.apollo'
// more find grained logging
//trace 'org.hibernate.type'
//debug 'org.hibernate.SQL'
//debug 'grails.app'
//debug 'grails.app.controllers.org.bbop.apollo'
//debug 'grails.app.controllers.org.bbop.apollo.JbrowseController'
//debug 'grails.app.services.org.bbop.apollo.FeatureService'
// debug 'grails.app.services.org.bbop.apollo.SecurityFilters'
// debug 'grails.app.controllers'
// info 'grails.app.controllers.org.bbop.apollo.GroupController'
// info 'grails.app.controllers.org.bbop.apollo.UserController'
// debug 'grails.app.controllers.org.bbop.apollo.AvailableStatusController'
//info 'grails.app.services'
//debug 'grails.app.jobs'
//debug 'grails.app.taglib'
//debug 'grails.app.controllers'
//debug 'grails.app.services'
}
//grails.gorm.default.constraints = {
// '*'(nullable: true)
//}
//grails.datastore.gorm.GormInstanceApi.copy = cloneForDomains ;
grails.gorm.failOnError = true
grails.tomcat.nio = true
grails.tomcat.scan.enabled = true
// start CORS
cors.url.pattern = '*'
cors.enable.logging = true
cors.enabled = true
cors.headers = ['Access-Control-Allow-Origin': '*']
// end CORS
// default apollo settings
apollo {
default_minimum_intron_size = 1
history_size = 0
overlapper_class = "org.bbop.apollo.sequence.OrfOverlapper"
track_name_comparator = "/config/track_name_comparator.js"
use_cds_for_new_transcripts = false
count_annotations = true
add_merged_comment = true
transcript_overlapper = "CDS"
feature_has_dbxrefs = true
feature_has_attributes = true
feature_has_pubmed_ids = true
feature_has_go_ids = true
feature_has_comments = true
feature_has_status = true
export_subfeatures_attr = false
user_pure_memory_store = true
is_partial_translation_allowed = false // unused so far
export_subfeature_attrs = false
store_orig_id = true // sets the orig_id to the original evidence id when first created
calculate_non_canonical_splice_sites = true
// used for uploading
// common_data_directory = "/opt/apollo"
common_data_directory = "apollo_data"
// settings for Chado export
// set chado_export_fasta_for_sequence if you want the reference sequence FASTA to be exported into the database
// Note: Enabling this feature can be memory intensive
chado_export_fasta_for_sequence = false
// set chado_export_fasta_for_cds if you want the CDS FASTA to be exported into the database
chado_export_fasta_for_cds = false
only_owners_delete = false
// this is the default
// other translation codes are of the form ncbi_KEY_translation_table.txt
// under the web-app/translation_tables directory
// to add your own add them to that directory and over-ride the translation code here
get_translation_code = 1
proxies = [
[
referenceUrl : 'http://golr.geneontology.org/select',
targetUrl : 'http://golr.geneontology.org/solr/select',
active : true,
fallbackOrder: 0,
replace : true
]
,
[
referenceUrl : 'http://golr.geneontology.org/select',
targetUrl : 'http://golr.berkeleybop.org/solr/select',
active : false,
fallbackOrder: 1,
replace : false
]
]
fa_to_twobit_exe = "/usr/local/bin/faToTwoBit" // get from https://genome.ucsc.edu/goldenPath/help/blatSpec.html
sequence_search_tools = [
blat_nuc : [
search_exe : "/usr/local/bin/blat",
search_class: "org.bbop.apollo.sequence.search.blat.BlatCommandLineNucleotideToNucleotide",
name : "Blat nucleotide",
params : ""
],
blat_prot: [
search_exe : "/usr/local/bin/blat",
search_class: "org.bbop.apollo.sequence.search.blat.BlatCommandLineProteinToNucleotide",
name : "Blat protein",
params : ""
//tmp_dir: "/opt/apollo/tmp" optional param
]
]
data_adapters = [[
permission : 1,
key : "GFF3",
data_adapters: [[
permission: 1,
key : "Only GFF3",
options : "output=file&format=gzip&type=GFF3&exportGff3Fasta=false"
],
[
permission: 1,
key : "GFF3 with FASTA",
options : "output=file&format=gzip&type=GFF3&exportGff3Fasta=true"
]]
],
[
permission : 1,
key : "VCF",
data_adapters: [[
permission: 1,
key : "VCF",
options : "output=file&format=gzip&type=VCF"
]
]
],
[
permission : 1,
key : "FASTA",
data_adapters: [[
permission: 1,
key : "peptide",
options : "output=file&format=gzip&type=FASTA&seqType=peptide"
],
[
permission: 1,
key : "cDNA",
options : "output=file&format=gzip&type=FASTA&seqType=cdna"
]
,
[
permission: 1,
key : "CDS",
options : "output=file&format=gzip&type=FASTA&seqType=cds"
]
,
[
permission: 1,
key : "highlighted region",
options : "output=file&format=gzip&type=FASTA&seqType=genomic"
]
]
]]
// TODO: should come from config or via preferences database
splice_donor_sites = ["GT"]
splice_acceptor_sites = ["AG"]
gff3.source = "."
bootstrap = false
info_editor = {
feature_types = "default"
attributes = true
dbxrefs = true
pubmed_ids = true
go_ids = true
comments = true
}
// customize admin tab on annotator panel with these links
administrativePanel = [
['label': "Canned Comments", 'link': "/cannedComment/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Canned Key", 'link': "/cannedKey/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Canned Values", 'link': "/cannedValue/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Statuses", 'link': "/availableStatus/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Feature Types", 'link': "/featureType/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Suggested Feature Names", 'link': "/suggestedName/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Gene Product Names", 'link': "/geneProductName/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Proxies", 'link': "/proxy/",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Report::Organisms", 'link': "/organism/report/", 'type': "report"]
, ['label': "Report::Sequences", 'link': "/sequence/report/", 'type': "report"]
, ['label': "Report::Users", 'link': "/annotator/report/", 'type':'report','globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Report::Instructor", 'link': "/annotator/instructorReport/", 'type': "report"]
, ['label': "Report::Changes", 'link': "/featureEvent/report/", 'type': "report"]
, ['label': "System Info", 'link': "/home/systemInfo/", 'type': "report",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "Performance Metrics", 'link': "/home/metrics/", 'type': "report",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
, ['label': "WebServices", 'link': "/WebServices/", 'type': "report",'globalRank':org.bbop.apollo.gwt.shared.GlobalPermissionEnum.ADMIN]
]
// over-ride in apollo-config.groovy to add extra tabs
extraTabs = [
// ['title': 'extra1', 'url': 'http://localhost:8080/apollo/annotator/report/'],
// ['title': 'extra2', 'content': '<b>Some content</b><a href="http://google.com" target="_blank">Google</a>']
// ['title': 'GGA', 'url': 'https://gitter.im/galaxy-genome-annotation/Lobby/~embed']
// ['title': 'JBrowse', 'url': 'https://gitter.im/GMOD/jbrowse/~embed']
]
authentications = [
["name" : "Username Password Authenticator",
"className": "usernamePasswordAuthenticatorService",
"active" : true,
]
,
["name" : "Remote User Authenticator",
"className": "remoteUserAuthenticatorService",
"active" : false,
]
]
// comment out if you don't want this to be reported
google_analytics = ["UA-62921593-1"]
native_track_selector_default_on = false
}
grails.plugin.databasemigration.updateOnStart = true
grails.plugin.databasemigration.updateOnStartFileNames = ['changelog.groovy']
grails.plugin.springwebsocket.useCustomConfig = true
// from: http://grails.org/plugin/audit-logging
auditLog {
//note, this disables the audit log
disabled = true
//verbose = true // verbosely log all changed values to db
logIds = true // log db-ids of associated objects.
}
// Default JBrowse configuration
jbrowse {
git {
url = "https://github.com/gmod/jbrowse"
branch = "1.16.11-release"
// branch = "dev"
// tag = "15dfd2309f2d508d8bed782d0f68b38dd9927bb4"
alwaysPull = true
alwaysRecheck = true
}
// url {
// // always use dev for apollo
// url = "http://jbrowse.org/wordpress/wp-content/plugins/download-monitor/download.php?id=102"
// type ="zip"
// fileName = "JBrowse-1.12.0-dev"
// }
//
plugins {
WebApollo {
included = true
}
NeatHTMLFeatures{
included = true
linearGradient = 0
}
NeatCanvasFeatures{
included = true
}
RegexSequenceSearch {
included = true
}
HideTrackLabels {
included = true
}
// MyVariantInfo {
// git = 'https://github.com/GMOD/myvariantviewer'
// branch = 'master'
// alwaysRecheck = "true"
// alwaysPull = "true"
// }
// SashimiPlot {
// git = 'https://github.com/cmdcolin/sashimiplot'
// branch = 'master'
// alwaysPull = "true"
// }
}
}