I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-10-16 18:55:25-07 by eleysanne
svg


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
Direct Responses: 6274 | Write a response