-
Notifications
You must be signed in to change notification settings - Fork 48
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
CL has KeyError: 'CARO:0000000' #156
Comments
This is an problem on the CL side, I'll get in touch with the developers. It is not expected for an OBO ontology to contain dangling clauses (referencing undeclared entities), so they should fix it. In the meantime, you can try using the >>> import pronto
>>> cl = pronto.Ontology("http://purl.obolibrary.org/obo/cl-basic.obo") |
Thank you, that is very helpful! Interestingly, I get the following error, when using Do you have an idea on how to solve this? UPDATE: |
You need to specify the extension with cl = pronto.Ontology.from_obo_library("cl-basic.obo") and there is also a basic uberon (it will raise some warnings): uberon = pronto.Ontology.from_obo_library("uberon/basic.obo") |
I agree these ontologies should be fixed as its confusing to have these dangling classes - but it's not a violation of the spec, and it can be useful to be able to parse these |
Hi,
Overall, I find this package pretty useful.
I tried to load the Cell Ontology as described in the Examples:
cl = Ontology("http://purl.obolibrary.org/obo/cl.obo")
Unfortunately, I get the following error:
It looks like
is_a
relationships are only expected from the same ontology.Any help would be appreciated.
Best,
Quirin
The text was updated successfully, but these errors were encountered: