[Bioperl-l] Bio::TreeIO::svggraph problems

Vamsi vamsi at warta.bio.psu.edu
Thu Mar 18 13:05:54 EST 2004


I am trying to use the Bio::TreeIO::svggraph module to
display a newick format tree. Here is the tree:


and the code:

use Bio::TreeIO;

my $in = new Bio::TreeIO(-file => $ARGV[0], -format => 'newick');
my $out = new Bio::TreeIO(-file => ">$ARGV[1]", -format => 'svggraph');

while( my $tree = $in->next_tree ) {
    my $svg_xml = $out->write_tree($tree);

(which is from the documentation for Bio::TreeIO::svggraph)

I have all the required SVG modules installed. But, I get the error

Can't locate object method "new" via package "SVG::Graph::Glyph::tree" at 
/usr/perl5/site_perl/5.005/SVG/Graph/Frame.pm line 117, <GEN0> chunk 1.

Any suggestions?


More information about the Bioperl-l mailing list