-
Notifications
You must be signed in to change notification settings - Fork 1
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
getSyntheticTree params for whole tree? #26
Comments
It should already be hamstrung (by a limit on the number of nodes) to On Friday, September 5, 2014, Matt [email protected] wrote:
|
Hmm, I don't know what we have planned for this. @kcranston? @jar398? @blackrim? |
If you go to the developer resources page Jonathan On Fri, Sep 5, 2014 at 10:59 AM, Joseph W. Brown [email protected]
|
In theory, I guess you could use /v2/tree_of_life/about to get the root_node_id, and then feed that into /v2/tree_of_life/subtree (according to #26). In practice, it sounds like you'll never be able to download that large a tree from the database. |
@gaurav right: we currently limit this to trees <= 25,000 tips. Happy to entertain alternatives. |
You could do caching: if you want a tree of available angiosperms, the API returns info about where it will be. As resources permit, create that subtree and store it. The next time someone else requests that tree, the API looks in the cache and if it has that subtree already for that overall OToL snapshot, just returns it, and otherwise queues up the subtree extraction as before. Seems clunky, but you will already have different API behavior for trees of 24,999 vs 25,001 tips, and at least this clunkiness eventually serves all users. I expect there will be a few nodes that will keep getting requested (think of the uses of Phylomatic for plants) and this will let you serve those folks well. |
That's a good idea, but the implementation isn't immediately clear and On Monday, September 15, 2014, bomeara [email protected] wrote:
|
If I want the whole topology, every node and edge (an no other metadata). Is there a single call that can be used to return this? I see /treemachine/v1/getSyntheticTree
is the way to do this, but it looks like that will be hamstrung in the next version, and I don't see (perhaps for obvious reasons) a parameter set that gets me the whole thing?
Could this be perhaps be pre-computed on every build?
Use case: visualization, I'd like to play with software like cytoscape and others.
The text was updated successfully, but these errors were encountered: