DrawTree

Drawtree is a program for visualisation of trees. It reads in trees in the Newick format and outputs them in a graphic format. Currently the only supported output format is Encapsulated PostScript, but other formats are planned.

Usage

The simplest usage is the following:

drawtree.py < mytree.tree > mytree.eps

which pipes mytree.tree through drawtree to generate an eps drawing.

DrawTree can currently draw trees in two formats: either with edges as direct lines between nodes (linear), or as a vertical and a horizontal line (box). For example, on the input hominoid.tre:

(
  ('Chimp':0.052625,
   'Human':0.042375):0.007875,
  'Gorilla':0.060125,
  ('Gibbon':0.124833,
   'Orangutan':0.0971667):0.038875
);

running drawtree.py < hominoid.tre will produce the tree

while running drawtree.py -b < hominoid.tre will produce the tree

Installation

Download the source code and unpack it (tar xzf drawtree-a.b.c.tar.gz, where a.b.c is the version number of drawtree). Then run the setup script:

python setup.py install 

See python setup.py --help for more details.

Contact

Thomas Mailund, <mailund@birc.au.dk>, Bioinformatics Research Center, University of Aarhus.

Time-stamp: "2006-01-26 21:57:42 mailund"