Skip to content
Snippets Groups Projects
Commit 858ce847 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add GO information retrieval web service

parent 18262245
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,12 @@ def get_uniprot_info(uniprot_id): ...@@ -55,6 +55,12 @@ def get_uniprot_info(uniprot_id):
'molecular_functions': molecular_functions 'molecular_functions': molecular_functions
} }
def get_go_info(go_id):
resp = requests.get('https://www.ebi.ac.uk/ols/api/ontologies/go/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252F{}'.format(go_id))
data = resp.json()
label = data['label']
return {'label': label}
def get_taxonomy_info(taxonomy_id): def get_taxonomy_info(taxonomy_id):
eu = EUtils() eu = EUtils()
r = eu.EFetch('taxonomy', taxonomy_id, retmode='dict') r = eu.EFetch('taxonomy', taxonomy_id, retmode='dict')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment