|
If this is not the right place to ask this question, I apologize.
I installed the Bio::Phylo module and tried running the sample program from the Treedrawer webpage:
use Bio::Phylo::IO 'parse';
use Bio::Phylo::Treedrawer;
my $string = '((A:1,B:2)n1:3,C:4)n2:0;';
my $tree = parse( -format => 'newick', -string => $string )->first;
my $treedrawer = Bio::Phylo::Treedrawer->new(
-width => 800,
-height => 600,
-shape => 'CURVY', # curvogram
-mode => 'PHYLO', # cladogram
-format => 'SVG'
);
$treedrawer->set_scale_options(
-width => '100%',
-major => '10%', # major cross hatch interval
-minor => '2%', # minor cross hatch interval
-label => 'MYA',
);
$treedrawer->set_tree($tree);
print $treedrawer->draw;
It ran without any problems, but I am having a hard time figuring out how to display the tree.
I saved the output in a file called "out.svg" and tried opening it using Firefox 2.0 and Safari 2.0 on a G4 PPC Mac.
Any ideas?
Thanks in advance,
eleysanne |