Open remerjohnson opened 2 years ago
Following along with this notebook for rendering subgraphs using GraphRenderer, when running:
nodes = ont.traverse_nodes(qids, up=False, down=True) from ontobio.io.ontol_renderers import GraphRenderer w = GraphRenderer.create('tree') w.write_subgraph(ont, nodes, query_ids=qids)
I receive the error:
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_24716/3071084711.py in <module> 1 from ontobio.io.ontol_renderers import GraphRenderer 2 w = GraphRenderer.create('tree') ----> 3 w.write_subgraph(ont, nodes, query_ids=qids) C:\Anaconda3\envs\ontobio-env\lib\site-packages\ontobio\io\ontol_renderers.py in write_subgraph(self, ontol, nodes, **args) 75 Write a `ontology` object after inducing a subgraph 76 """ ---> 77 subont = ontol.subontology(nodes, **args) 78 self.write(subont, **args) 79 TypeError: subontology() got an unexpected keyword argument 'query_ids'
If I remove query_ids argument, the error is thrown as: AttributeError: 'EagerWikidataOntology' object has no attribute 'xref_graph'
query_ids
AttributeError: 'EagerWikidataOntology' object has no attribute 'xref_graph'
Thanks for any help you can provide.
Following along with this notebook for rendering subgraphs using GraphRenderer, when running:
I receive the error:
If I remove
query_ids
argument, the error is thrown as:AttributeError: 'EagerWikidataOntology' object has no attribute 'xref_graph'
Thanks for any help you can provide.