-
Notifications
You must be signed in to change notification settings - Fork 38
/
conf.py
131 lines (112 loc) · 3.99 KB
/
conf.py
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
import yaml
with open("beacon/api_version.yml") as api_version_file:
api_version_yaml = yaml.safe_load(api_version_file)
"""Beacon Configuration."""
#
# Beacon general info
#
#
beacon_id = 'org.ega-archive.beacon-ri-demo' # ID of the Beacon
beacon_name = 'Beacon Reference Implementation demo' # Name of the Beacon service
api_version = 'v2.0.0' # Version of the Beacon implementation
uri = 'https://beacon-ri-demo.ega-archive.org/api/'
#
# Beacon granularity
#
default_beacon_granularity = "record"
max_beacon_granularity = "record"
#
# Organization info
#
org_id = 'EGA' # Id of the organization
org_name = 'European Genome-Phenome Archive (EGA)' # Full name
org_description = ('The European Genome-phenome Archive (EGA) '
'is a service for permanent archiving and sharing '
'of all types of personally identifiable genetic '
'and phenotypic data resulting from biomedical research projects.')
org_adress = ('C/ Dr. Aiguader, 88'
'PRBB Building'
'08003 Barcelona, Spain')
org_welcome_url = 'https://ega-archive.org/'
org_contact_url = 'mailto:[email protected]'
org_logo_url = 'https://legacy.ega-archive.org/images/logo.png'
org_info = ''
#
# Project info
#
#description = (r"This <a href='https://beacon-project.io/'>Beacon</a> "
# r"is based on the GA4GH Beacon "
# r"<a href='https://github.com/ga4gh-beacon/specification-v2/blob/master/beacon.yaml'>v2.0</a>")
description = r"This Beacon is based on synthetic data hosted at the <a href='https://ega-archive.org/datasets/EGAD00001003338'>EGA</a>. The dataset contains 2504 samples including genetic data based on 1K Genomes data, and 76 individual attributes and phenotypic data derived from UKBiobank."
version = api_version_yaml['api_version']
welcome_url = 'https://beacon.ega-archive.org/'
alternative_url = 'https://beacon.ega-archive.org/api'
create_datetime = '2021-11-29T12:00:00.000000'
update_datetime = ''
# update_datetime will be created when initializing the beacon, using the ISO 8601 format
#
# Service
#
service_type = 'org.ga4gh:beacon:1.0.0' # service type
service_url = 'https://beacon.ega-archive.org/api/services'
entry_point = False
is_open = True
documentation_url = 'https://github.com/EGA-archive/beacon-2.x/' # Documentation of the service
environment = 'test' # Environment (production, development or testing/staging deployments)
# GA4GH
ga4gh_service_type_group = 'org.ga4gh'
ga4gh_service_type_artifact = 'beacon'
ga4gh_service_type_version = '1.0'
# Beacon handovers
beacon_handovers ={
'handoverType': {
'id': 'CUSTOM:000001',
'label': 'Project description'
},
'note': 'Project description',
'url': 'https://www.nist.gov/programs-projects/genome-bottle'
}
#
# Database connection
#
database_host = 'mongo'#'host.docker.internal'
database_port = 27017
database_user = 'root'
database_password = 'example'
database_name = 'beacon'
database_auth_source = 'admin'
# database_schema = 'public' # comma-separated list of schemas
# database_app_name = 'beacon-appname' # Useful to track connections
#
# Web server configuration
# Note: a Unix Socket path is used when behind a server, not host:port
#
beacon_host = '0.0.0.0'
beacon_port = 5050
beacon_tls_enabled = False
beacon_tls_client = False
beacon_cert = '/etc/ega/server.cert'
beacon_key = '/etc/ega/server.key'
CA_cert = '/etc/ega/CA.cert'
#
# Permissions server configuration
#
permissions_url = 'http://beacon-permissions:5051/'
#
# IdP endpoints (OpenID Connect/Oauth2)
#
# or use Elixir AAI (see https://elixir-europe.org/services/compute/aai)
#
idp_url = 'http://idp:8080/'
#idp_url = 'http://localhost:8080/'
#
# UI
#
autocomplete_limit = 16
autocomplete_ellipsis = '...'
#
# Ontologies
#
ontologies_folder = "ontologies"
alphanumeric_terms = ['libraryStrategy', 'molecularAttributes.geneIds', 'diseases.ageOfOnset.iso8601duration', 'molecularAttributes.aminoacidChanges']
ontology_files={"NCIT": "http://purl.obolibrary.org/obo/NCIT.obo"}