Posted on 2005-08-08 21:10:36-07 by stiffler
SVG Problem
Hello,
I am trying to use the following code to produce a SVG tree.
use Bio::Phylo::Parsers; use Bio::Phylo::Unparsers; my $newick = new Bio::Phylo::Parsers; my $trees = $newick->parse(-file => '/tmp/blasthits-3.dnd', '-format' => 'Newick'); my $svg = new Bio::Phylo::Unparsers; my $string = $svg->unparse(-phylo => $trees->first, -format => 'Svg', -mode => 'clado);
But the following error occurs:
Can't call method "calc_max_nodes_to_tips" on an undefined value at /usr/lib/perl5/site_perl/5.8.6/Bio/Phylo/Unparsers/Svg.pm line 320.

Nicholas
Direct Responses: 858 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.