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

Vamsi vamsi at warta.bio.psu.edu
Thu Mar 18 12:54:35 EST 2004


Hi,

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

(a,b);

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?

Thanks,
Vamsi







More information about the Bioperl-l mailing list