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

Accelerate inference queries #32

Open
jakebeal opened this issue Sep 11, 2021 · 1 comment
Open

Accelerate inference queries #32

jakebeal opened this issue Sep 11, 2021 · 1 comment
Milestone

Comments

@jakebeal
Copy link
Contributor

Inference queries like is_ancestor_of are really useful, but right now they are quite slow, requiring on the order of seconds per query. I believe this is because they are always resolved with a query over the network. This isn't a big problem for interactive mode, but it severely limits their use in automation.

Can they be accelerated by running queries locally and/or caching?

@jakebeal
Copy link
Contributor Author

Example of use case:

def has_plasmid_role(x):
    return any(r for r in x.roles if tyto.SO.plasmid.is_ancestor_of(r) or tyto.SO.vector_replicon.is_ancestor_of(r))

This is used as part of a system for detecting potential circularity for use in calculating sequences, but it's causing even a very small library to take over a minute to run.

jakebeal added a commit to SynBioDex/SBOL-utilities that referenced this issue Sep 11, 2021
…g for plasmid roles

This kludge will be removed when after resolution of SynBioDex/tyto#32
@jakebeal jakebeal added this to the beta-2 milestone Sep 21, 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