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