Centroid Wheel Tree

Centroid Wheel Tree is an Intuitive, Informative, and Most Balanced representation of phylogenetic trees.

Menu

Top/Introduction
Execute on Web
Key Concept
Examples
Web API
Download
NHX Format
Theory
Reference
Extra

Languages

/

Contact

Wataru IWASAKI
Dept. Biological Sciences,
Grad. Sch. Science,
University of Tokyo, Japan
E-mail:
iwasaki AT bs.s.u-tokyo.ac.jp

Licenses

CWT Software:
GNU General Public License
The other content:
Creative Commons License

Web API

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:

http://cwt.cb.k.u-tokyo.ac.jp/webapi.cgi?thres=70&options=rc&trees=0.45%20((Human,Dog),(Mouse,Opossum))%3b0.40%20((Human,Mouse),(Dog,Opossum))%3b0.15%20((Mouse,Dog),(Human,Opossum))%3b

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:

{"cwt":"(Human,Dog,Root,Opossum,Mouse)[&&NHX:XN=45|45,0,0,45,40];", "psfile":"http://cwt.cb.k.u-tokyo.ac.jp/files/20100519215614_655.ps", "pngfile":"http://cwt.cb.k.u-tokyo.ac.jp/files/20100519215614_655.png"}

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:

{"error":"Loading treefile... Invalid treefile. java.lang.IllegalArgumentException: Non compatible trees at... [omitted] "}

You can also run the program locally by Downloading Software.