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

bug in QueryMyGeneExtended #82

Closed
saramsey opened this issue Apr 20, 2018 · 1 comment
Closed

bug in QueryMyGeneExtended #82

saramsey opened this issue Apr 20, 2018 · 1 comment
Assignees

Comments

@saramsey
Copy link
Member

Running latest version of UpdateNodesInfo.py on rtxdev.saramsey.org inside container "rtxsteve" as user "rt" in directory /mnt/data/sramsey/RTX/code/reasoningtool/kg-construction

Traceback (most recent call last):
File "UpdateNodesInfo.py", line 138, in
UpdateNodesInfo.update_protein_nodes()
File "UpdateNodesInfo.py", line 118, in update_protein_nodes
UpdateNodesInfo.__update_nodes('protein')
File "UpdateNodesInfo.py", line 80, in __update_nodes
node['extended_info_json'] = get_entity_mtd(node_id)
File "/mnt/data/sramsey/RTX/code/reasoningtool/kg-construction/QueryMyGeneExtended.py", line 31, in get_protein_entity
results = str(mg.query(protein_id, fields='all', return_raw='True'))
File "/usr/local/lib/python3.5/dist-packages/mygene/init.py", line 450, in query
from_cache, out = self._get(_url, kwargs, verbose=verbose)
File "/usr/local/lib/python3.5/dist-packages/mygene/init.py", line 145, in _get
res.raise_for_status()
File "/home/rt/.local/lib/python3.5/site-packages/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://mygene.info/v3/query?fields=all

@saramsey saramsey assigned DeqingQu and saramsey and unassigned DeqingQu Apr 20, 2018
@saramsey
Copy link
Member Author

saramsey commented Apr 20, 2018

@DeqingQu I have figured out how to fix this. Implementing the fix now.... (this is not a bug in your code; but when I fixed issue requests #80 and #79, it broke Neo4jConnection.py)

saramsey added a commit that referenced this issue Apr 20, 2018
saramsey added a commit that referenced this issue Apr 20, 2018
saramsey added a commit that referenced this issue Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants