diff --git a/backend/beacon.py b/backend/beacon.py index a8d89f073..f6b5754fc 100644 --- a/backend/beacon.py +++ b/backend/beacon.py @@ -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", } @@ -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',