[Bioperl-l] How to display newick tree in graphics?

Josh Lauricha laurichj at bioinfo.ucr.edu
Fri Mar 12 12:41:50 EST 2004


On Fri 03/12/04 10:49, Yuhui wrote:
> hi,
> a newbie to perl here, can someone teach me how to
> output a newick file in the form of a image on a
> webpage.

The sort version is, right now you can't, but I've got some code that
will let you, its not to well documented now and is probably buggy, but
seems to be working for me.

The problem is, Bio::Graphics is geared towards sequence objects, so
drawing a tree won't work to well. Since there was some interest in
generalizing Bio::Graphics, I've added Bio::Graphics::Image (basically
just a wraper around GD::Image (contains one, not inherits)) and
Bio::Graphics::Widget{.pm,::Tree.pm} which aims to be a generic "here's
a chunk of space, draw something" object. But neither of these have been
added to bioperl, but I've been planning on making them availible for
critique for a while, just been a little to busy to get around to it.

-- 

------------------------------------------------------
| Josh Lauricha            | Ford, your turning into |
| laurichj at bioinfo.ucr.edu | a penguin. Stop it.     |
| Bioinformatics, UCR      |                         |
|----------------------------------------------------|


More information about the Bioperl-l mailing list