ontobio icon indicating copy to clipboard operation
ontobio copied to clipboard

get_minimal_subgraph gives "RecursionError: maximum recursion depth exceeded"

Open realmarcin opened this issue 2 years ago • 0 comments

When trying to obtain the GO subgraph for 800 input terms, as here: https://github.com/kbaseIncubator/KE_KG/blob/main/src/embeddings/GO_ontobio.ipynb

I am running into the recursion limit RecursionError: maximum recursion depth exceeded.

I can set the limit all the way up to 30000 using the python sys command, however that still chokes on the above use case. Increasing this limit higher crashes the notebook …

An initial guess was that get_minimal_subgraph is not cycle safe hence will cause problems for ontologies with cycles.

realmarcin avatar Oct 20 '21 19:10 realmarcin