Comments (9)
Seems like an OpenTree problem:
curl -X POST http://devapi.opentreeoflife.org/v2/tree_of_life/induced_subtree -H "Content-Type:application/json" -d '{"ott_ids":[357968,867416,939325,462102]}'
{
"message" : "Index: 32, Size: 32",
"exception" : "IndexOutOfBoundsException",
"fullname" : "java.lang.IndexOutOfBoundsException",
"stacktrace" : [ "java.util.ArrayList.rangeCheck(ArrayList.java:635)", "java.util.ArrayList.get(ArrayList.java:411)", "opentree.GraphExplorer.getDraftTreeMRCAForNodes(GraphExplorer.java:360)", "opentree.GraphExplorer.extractDraftSubtreeForTipNodes(GraphExplorer.java:468)", "opentree.plugins.tree_of_life.induced_subtree(tree_of_life.java:315)", "java.lang.reflect.Method.invoke(Method.java:606)", "org.neo4j.server.plugins.PluginMethod.invoke(PluginMethod.java:57)", "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:168)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:300)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:122)", "java.lang.reflect.Method.invoke(Method.java:606)", "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)" ]
}
I hope to get this fixed today.
from rotl.
Thanks!
from rotl.
I've attempted to reproduce the issue, hoping to close this issue. Here's what I got:
> rotl::tol_induced_subtree(ott_ids = c(357968, 867416, 939325))
Phylogenetic tree with 3 tips and 1 internal nodes.
Tip labels:
[1] "Blastophaga_nipponica_ott939325" "Blastophaga_psenes_ott357968"
[3] "Blastophaga_quadrupes_ott867416"
Node labels:
[1] "Blastophaga_ott462102"
Unrooted; no branch lengths.
Similar to previous result.
However:
> rotl::tol_induced_subtree(ott_ids = c(357968, 867416, 939325, 462102))
Error: HTTP failure: 500
The node Node[1846303] does not seem to be in the draft tree.
@josephwb Is this expected behavior? I was hoping that asking for subtree /w missing ott id would create subtree and perhaps indicate that some ott id was ignored because it wasn't in the draft tree.
from rotl.
@jhpoelen No, this is not expected behaviour. A subtree should be returned, together with warnings if ids were 1) not in the synthetic tree or 2) altogether invalid ids. e.g. [edited, as there was a paste error in the curl call]:
curl -X POST http://api.opentreeoflife.org/v2/tree_of_life/induced_subtree -H "content-type:application/json" -d '{"ott_ids":[357968, 867416, 939325, 9999999]}'
{
"subtree" : "(Blastophaga_nipponica_ott939325,Blastophaga_psenes_ott357968,Blastophaga_quadrupes_ott867416)Blastophaga_ott462102;",
"ott_ids_not_in_tree" : [ ],
"ott_ids_not_in_graph" : [ 9999999 ],
"node_ids_not_in_graph" : [ ],
"node_ids_not_in_tree" : [ ]
}
I believe what you are getting stems from an ongoing issue where one query node is the ancestor of another (can you confirm this? I can check, of course, but you probably know).
Anyway, definitely not an rOTL issue.
from rotl.
@josephwb from earlier example in this thread, the first three ott ids are tips (i.e. 357968, 867416, 939325) and the last one is a node (i.e. 462102) and wasp genus Blastophaga . Hope this helps.
from rotl.
Ok, thanks. I have fixed this bug (not yet deployed), but am working on fixing another.
from rotl.
hi @josephwb
Did your fix get deployed? This still seems to fail on the OTL side (i.e., no subtree is being returned).
curl -X POST http://devapi.opentreeoflife.org/v2/tree_of_life/induced_subtree -H "Content-Type:application/json" -d '{"ott_ids":[357968,867416,939325,462102]}'
{
"message" : "The node Node[1992344] does not seem to be in the draft tree.",
"exception" : "UnsupportedOperationException",
"fullname" : "java.lang.UnsupportedOperationException",
"stacktrace" : [ "opentree.GraphExplorer.getTreeTipRootPathMap(GraphExplorer.java:326)", "opentree.GraphExplorer.extractDraftSubtreeForTipNodes(GraphExplorer.java:530)", "opentree.plugins.tree_of_life.induced_subtree(tree_of_life.java:333)", "java.lang.reflect.Method.invoke(Method.java:497)", "org.neo4j.server.plugins.PluginMethod.invoke(PluginMethod.java:57)", "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:168)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:300)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:122)", "java.lang.reflect.Method.invoke(Method.java:497)", "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)" ]
}
from rotl.
This works.
from rotl.
from rotl.
Related Issues (20)
- Adding annotation to trees is not possible because of the lack of edge lengths HOT 4
- tol_induced_subtree drops supporting studies information
- Tips not ordered alphabetically for polytomies HOT 2
- tnrs_match_names bug HOT 8
- use score from tnrs match names
- Error when a species not matched with `tnrs_match_names()` HOT 1
- Error in tnrs_match_names() for unmatched names HOT 3
- Linux install HOT 2
- do_approximate_matching= TRUE not working on tnrs_match_names using multiple inputs HOT 2
- SSL certificate error HOT 2
- studies_find_trees returning NULL match_tree_ids HOT 1
- "The requested subtree is too large" -- possible to read in downloaded xml? HOT 2
- error with tnrs_match_names names list
- HTTP failure to connect to localhost HOT 1
- SSL certificate problem: certificate has expired HOT 1
- optimize dependencies
- `tnrs_match_names` does not return the best match in some cases HOT 4
- New bulk node_info and taxon_info api call options HOT 2
- [CRAN] package documentation issue
- SSL Certificate Issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rotl.