I'm following the tutorial, and diverged a bit to try searches in other OBO ontologies.
$ runoak -i obolibrary:cl.obo search 'epithelial cell of lung'
/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/parsers/_fastobo.py:84: SyntaxWarning: source document contains incomplete creation date: 2021-11-08
process_clause_typedef(clause, data, self.ont)
/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/parsers/_fastobo.py:84: NotImplementedWarning: cannot process `equivalent_to_chain: attaches_to part_of` macro
process_clause_typedef(clause, data, self.ont)
Traceback (most recent call last):
File "/home/harry/oak-tutorial/oak-env/bin/runoak", line 8, in <module>
sys.exit(main())
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1654, in invoke
super().invoke(ctx)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/oaklib/cli.py", line 140, in main
settings.impl = impl_class(resource)
File "<string>", line 6, in __init__
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/oaklib/implementations/pronto/pronto_implementation.py", line 73, in __post_init__
ontology = Ontology.from_obo_library(resource.slug)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/ontology.py", line 206, in from_obo_library
return cls(
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/ontology.py", line 283, in __init__
cls(self).parse_from(_handle) # type: ignore
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/parsers/obo.py", line 48, in parse_from
self.symmetrize_lineage()
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/parsers/base.py", line 84, in symmetrize_lineage
graphdata.lineage[superentity].sub.add(subentity)
KeyError: 'CARO:0000000'
$ runoak -i obolibrary:uberon.obo search 'epithelial cell'
Traceback (most recent call last):
File "/home/harry/oak-tutorial/oak-env/bin/runoak", line 8, in <module>
sys.exit(main())
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1654, in invoke
super().invoke(ctx)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/oaklib/cli.py", line 140, in main
settings.impl = impl_class(resource)
File "<string>", line 6, in __init__
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/oaklib/implementations/pronto/pronto_implementation.py", line 73, in __post_init__
ontology = Ontology.from_obo_library(resource.slug)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/ontology.py", line 206, in from_obo_library
return cls(
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/ontology.py", line 283, in __init__
cls(self).parse_from(_handle) # type: ignore
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/parsers/rdfxml.py", line 115, in parse_from
self._extract_annotation_property(prop, curies)
File "/home/harry/oak-tutorial/oak-env/lib/python3.9/site-packages/pronto/parsers/rdfxml.py", line 668, in _extract_annotation_property
label = elem.find(_NS["rdfs"]["label"]).text
AttributeError: 'NoneType' object has no attribute 'text'