Skip to content
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

Allow relation checks via ontology object #46

Open
jakebeal opened this issue Oct 27, 2021 · 1 comment
Open

Allow relation checks via ontology object #46

jakebeal opened this issue Oct 27, 2021 · 1 comment
Assignees
Milestone

Comments

@jakebeal
Copy link
Contributor

Right now, one can do relationship checks (e.g. is_ancestor_of via either a term or an endpoint.
For example:

# By term:
SO.promoter.is_ancestor_of(SO.RNApol_III_promoter)
# By endpoint:
ancestors = EBIOntologyLookupService.get_ancestors(NCBITaxon, NCBITaxon.Escherichia_coli)
self.assertIn(NCBITaxon.Bacteria, ancestors)

It would be good to allow the intermediate as well, in which one checks against an ontology, which would allow things like this:

NCBITaxon.is_ancestor_of(taxon_uri_X, taxon_uri_Y)
@jakebeal
Copy link
Contributor Author

May be related to #26

@jakebeal jakebeal added this to the beta-2 milestone Oct 28, 2021
@bbartley bbartley modified the milestones: beta-2, 1.0 Nov 22, 2021
@jakebeal jakebeal modified the milestones: 1.0, 1.1 Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants