Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: supertree construction in perl

by pvaldes (Chaplain)
on Oct 09, 2012 at 09:00 UTC ( #997955=note: print w/ replies, xml ) Need Help??


in reply to supertree construction in perl

If you want to play with the nodes, calculate bootstrap values etc, start with bioperl

But if you want only to plot a nice tree with few nodes and non interactive, you have at least two superb options outside perl. Each time I see the plot that you want to make, something in my mind is whispering at me: this is clearly either a graphviz job...

use graphviz; my $plot = GraphViz->new( layout => 'dot', directed => 0, rankdir => 'TB' ); # dot = directed plot as output, # better than 'neato' for drawing trees

... or either a work for the ever elegant latex

use LaTeX::Driver;

(\usepackage{tikz}). Both can produce the plot that you want, after perl massage and pass the data in an accurate way. Of these, Latex is probably the only that can plot _exactly_ what you show in the picture, but don't underestimate graphviz, it is a solid and very powerful program

And if you have a big structure with many thousands or millions of nodes to plot, R is your man. Graphviz is not designed for this kind of situation.


Comment on Re: supertree construction in perl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997955]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2014-10-26 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls