Skip to content

Commit

Permalink
Addec ACpop to beacon TODO move to config
Browse files Browse the repository at this point in the history
  • Loading branch information
viklund committed Jun 1, 2018
1 parent ff1e8c6 commit d893e9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/beacon.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ class Query(handlers.UnsafeHandler):
def make_error_response(self):
ret_str = ""

datasets = ['SweGen', 'ACpop']

checks = {
'dataset': lambda x: "" if x == 'SweGen' else "dataset has to be SweGen\n",
'dataset': lambda x: "" if x in datasets else "dataset has to be SweGen\n",
'ref': lambda x: "" if x == 'hg19' else "ref has to be hg19\n",
'pos': lambda x: "" if x.isdigit() else "pos has to be digit\n",
}
Expand Down Expand Up @@ -80,6 +82,10 @@ def get(self):
# 'data_uses': [] # Data use limitations
'reference': 'hg19'
},
{
'id': 'ACpop',
'reference': 'hg19'
},
],
'homepage': "%s://%s" % ('https', self.request.host),
#'email': u'swefreq-beacon@nbis.se',
Expand Down

0 comments on commit d893e9c

Please sign in to comment.