Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError in QueryMyGene #111

Closed
saramsey opened this issue May 6, 2018 · 0 comments
Closed

KeyError in QueryMyGene #111

saramsey opened this issue May 6, 2018 · 0 comments
Assignees
Labels

Comments

@saramsey
Copy link
Member

saramsey commented May 6, 2018

Traceback (most recent call last):
File "BuildMasterKG.py", line 151, in
running_time = timeit.timeit(lambda: run_function(), number=1)
File "/usr/lib/python3.5/timeit.py", line 213, in timeit
return Timer(stmt, setup, timer, globals).timeit(number)
File "/usr/lib/python3.5/timeit.py", line 178, in timeit
timing = self.inner(it, self.timer)
File "", line 6, in inner
File "BuildMasterKG.py", line 151, in
running_time = timeit.timeit(lambda: run_function(), number=1)
File "BuildMasterKG.py", line 131, in make_master_kg
bne.expand_all_nodes()
File "/mnt/data/orangeboard/RTX/code/reasoningtool/kg-construction/BioNetExpander.py", line 457, in expand_all_nodes
self.expand_node(node)
File "/mnt/data/orangeboard/RTX/code/reasoningtool/kg-construction/BioNetExpander.py", line 445, in expand_node
expand_method(self)
File "/mnt/data/orangeboard/RTX/code/reasoningtool/kg-construction/BioNetExpander.py", line 198, in expand_microRNA
int(ncbi_gene_id.replace('NCBIGene:', '')))
File "/mnt/data/orangeboard/RTX/code/reasoningtool/kg-construction/QueryMyGene.py", line 118, in convert_entrez_gene_ID_to_mirbase_ID
mirbase_id = set([hit['miRBase'] for hit in res['hits']])
File "/mnt/data/orangeboard/RTX/code/reasoningtool/kg-construction/QueryMyGene.py", line 118, in
mirbase_id = set([hit['miRBase'] for hit in res['hits']])
KeyError: 'miRBase'

@saramsey saramsey added the bug label May 6, 2018
@saramsey saramsey self-assigned this May 6, 2018
saramsey added a commit that referenced this issue May 6, 2018
saramsey added a commit that referenced this issue May 6, 2018
@saramsey saramsey closed this as completed May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant