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

Paulo Almeida paulo.david at netvisao.pt
Thu Mar 18 13:40:37 EST 2004


Your code works for me, cut and pasted frome the e-mail, with the same 
tree. This is a long shot, but try enclosing '-file' and '-format' with 
single quotes, when you create $in and $out. I have perl 5.6.1, but I 
think earlier versions may have a problem with that.

-Paulo

Vamsi wrote:

>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.
>



More information about the Bioperl-l mailing list