If you are a developer, we would be grateful if you could use our Web API from your softwares and services.
A sample query is:
This API receives three parameters, thres (optional), options (optional), and trees (mandatory, of course!).
thres is for a threshold support in building a consensus tree. If not given, it is set to 75.
options is for a string containing one-charactor option flags. The flags are: [r] Use rooted trees, [c] Use color representation (ignored if [d] is specified), [t] Output only topologies, [x] Produce a star-like wheel tree, [s] Show strict supports, [d] Show average distances.
trees is for a set of Newick-formatted trees, where each tree ends with a semicolon. A real number before each tree separated by a white space is regarded as a weight of the tree.
In case this section becomes too long to be written in URLs, requests can also be sent by the HTTP POST method.
We recommend to perform URL-encoding on URLs, particularly on semicolons ("%3b") as above. They will be regarded as ends of requests and invoke errors.
Responses will be sent in the JSON format. A sample response is:
It contains the three fields cwt, psfile, and pngfile.
cwt is for the wheel tree in the NHX format (read NHX Format for details), and psfile and pngfile are for the URLs of the vector image file and the rastor image file, respectively.
In case an error occurs, the response will contain one field error with an error message:
You can also run the program locally by Downloading Software.