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

IndexError: list index out of range in utility.get_context_using_spoke_api #42

Open
hyunwhanjoe opened this issue Nov 20, 2024 · 0 comments

Comments

@hyunwhanjoe
Copy link

Hi, for the question "Neurofibromatosis 2 is not associated with Gene NF2" in the True/False dataset, the json result for the matched SPOKE entity 'neurofibromatosis 2' results in an empty list at line 75 node_context = result.json(). This results in an IndexError when you call node_context[0] in line 128.

My guess is that 'neurofibromatosis 2' got removed from the SPOKE KG during an update.

Currently I'm using data/context_of_disease_which_has_relation_to_genes.csv while passing api=False to the function utility.retrieve_context. It seems this csv file has the old KG information that was used in the publication.

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

1 participant