Commit febdcc70 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Add aspect to gene ontology retrieval

parent bb706739
......@@ -47,6 +47,8 @@ def retrieve(dbxrefs, basic=True, relations=False):
def read_basic(d):
out = {'definition': d['results'][0]['definition']['text'], 'synonyms': []}
out['name'] = d['results'][0]['name']
if 'aspect' in d['results'][0]:
out['aspect'] = d['results'][0]['aspect']
if 'synonyms' in d['results'][0]:
out['synonyms'] = d['results'][0]['synonyms']
return (out)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment