KG_RAG icon indicating copy to clipboard operation
KG_RAG copied to clipboard

IndexError: list index out of range in utility.get_context_using_spoke_api

Open hyunwhanjoe opened this issue 11 months ago • 0 comments

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.

hyunwhanjoe avatar Nov 20 '24 21:11 hyunwhanjoe