-
Notifications
You must be signed in to change notification settings - Fork 7
Release notes for web API v3
Joe DeCapo edited this page Jul 3, 2016
·
37 revisions
Release date: April 7, 2016
This page gives information for users of the Open Tree of Life v2 web API regarding the transition to v3.
Full documentation for the v3 web API is here: Open Tree of Life Web APIs
- new base URL for all v3 services is
https://api.opentreeoflife.org/v3/ - for all
tree_of_lifemethods that return a node ID for a node in the synthetic tree, the result is a string (not a long). These IDs will either transfer well or fail gracefully for future versions of the tree (previously, some node IDs were re-minted for new versions of the tree and may have transferred poorly). - all
graph/methods are discontinued, not available even under their v2/ URLs, with no replacement (with the exception ofgraph/node_infowhich is nowtree_of_life/node_info) - we are making public the method used to construct the visualization on the tree-of-life browser. This is
tree_of_life/subtreewithformat=arguson - support and conflict:
tree_of_life/node_infoandtree_of_life/subtreenow return information about the sources underlying a node - where method return information about a taxon, these fields are grouped into a dictionary with fields standardized across methods
- the
tnrs/match_namesmethod does not use fuzzy matching by default (previously, the default was fuzzy_matching = true). This is to increase efficiency of large queries.
Here is a summary of the other changes. Please see the documetation of each method for details.
tree_of_life methods
-
tree_of_life/about- renamed input parameter
study_listtoinclude_source_listand changed default to false - output parameter
study_listnow a combination ofsource_listplussource_id_map - now bundles all information about the root node into a standardized taxon dict
- new output parameters
synth-id,num_source_treesandfiltered_flags
- renamed input parameter
-
tree_of_life/node_info- replaces
graph_of_life/node_info - input parameter
node_idis now a string, not a long int (and method returns a canonicalnode_idstring) - now returns information about source that support / conflict with the node
- output parameter
lineageis now a list of standardized node dicts, not a list of strings - if node is a taxon, all taxon fields grouped into a
taxondict - output parameter
num_synth_tipsrenamed tonum_tips
- replaces
-
tree_of_life/mrca- input parameter
node_idsis now a list of strings, not long ints - information about the mrca node collected into a
mrcadict with standardized node fields - information about nearest taxon (if mrca is not a taxon) collected into a
nearest_taxondict - invalid
ott_idsornode_idsnow return a 400 response
- input parameter
-
tree_of_life/induced_subtree- input parameter
node_idsis now a list of strings, not long ints - can control format of labels in newick string using input parameter
label_format
- input parameter
-
tree_of_life/subtree- input parameter
node_idsis now a list of strings, not long ints - method now returns either a newick string or the custom 'arguson' format (controlled by the new input parameter
format) - can control format of labels in newick string using input parameter
label_format
- input parameter
taxonomy methods
-
taxonomy/taxon_info:- renamed method from
taxonomy/taxonfor consistency withtree_of_life/node_info - renamed output parameter
ot:ottIdtoott_id - renamed output parameter
ot:ottTaxonNametoname - the
synonymslist no longer includes the name of the taxon itself
- renamed method from
-
taxonomy/mrca:- renamed method from
taxonomy/licafor consistency withtree_of_life/mrca - renamed return parameter
licatomrcaand returned as standardized dict of taxon fields - removed input parameter
include_lineage. to get the lineage, use thetaxonomy/taxon_infomethod.
- renamed method from
-
taxonomy/subtreereturn parametersubtreechanged tonewickfor consistency withtree_of_life/subtree
tnrs methods
-
match_names:- renamed input parameter
include_dubioustoinclude_suppressed - renamed output parameters
*_name_idsto*_names -
idin results is nowname - the
matcheslist groups all of the taxon fields into a standardizedtaxondict, with some parameter name changes and also the addition of information about taxonomy sources - the
synonymslist no longer includes the name of the taxon itself
- renamed input parameter
-
autocomplete_name- renamed input parameter
include_dubioustoinclude_suppressed - renamed output parameter
ot:ottIdtoott_id - renamed output parameter
is_dubioustois_suppressed
- renamed input parameter
study methods
- removed some fields from
find_treesandfind_studiesresult set
collection methods
- these methods, for finding and getting tree collections, are now public. They have not changed from the (undocumented) v2 format.
This list is just FYI, and should not be considered final. Feedback welcome, though!
- use GET instead of POST where possible (for example,
studymethods) - new service for generating a conflict report (we have one, but name and calling conventions are unsettled)
- new study/tree index (OTI replacement; will allow searching over more properties)
- Change phylesystem-api methods to underscored_names from camelCase for consistency
- new service to translate between various taxonomy identifers (i.e. NCBI ID to GBIF ID)