MPIIComputationalEpigenetics / DeepBlue

DeepBlue Epigenomic Data Server
Other
2 stars 0 forks source link

server.info(request_id, userkey) should return details of the request type #94

Closed edeas123 closed 8 years ago

felipealbrecht commented 8 years ago

The field "command" contains the command used.

examples:

server.info("r186", user_key) ['okay', [{'user_id': 'get_regions', 'finish_time': '2015-Sep-01 13:09:31.878000', 'state': 'done', 'create_time': '2015-Sep-01 13:09:12.583000', 'command': 'get_regions', 'query_id': 'q330', 'message': '', '_id': 'r186', 'type': 'request'}]] server.info("r35", user_key) ['okay', [{'user_id': 'count_regions', 'finish_time': '2015-Sep-01 01:02:49.012000', 'state': 'done', 'create_time': '2015-Sep-01 01:02:48.693000', 'command': 'count_regions', 'query_id': 'q119', 'message': '', '_id': 'r35', 'type': 'request'}]]

The actual accepted values for the command is "get_regions", "count_regions", "score_matrix", "get_experiments_by_query"

where "get_regions" and "score_matrix" returns an string/file. "count_regions" returns an key/value with one key, named "count" and the value.

"get_experiments_by_query" returns a list of lists.

felipealbrecht commented 8 years ago

It is ready for https://github.com/MPIIComputationalEpigenetics/DeepBlue-Web/issues/68