[BioRuby] newick tree

K. Patil kpatil at science.uva.nl
Wed Jan 21 23:11:53 UTC 2009


Hi,

I was trying some simple methods for the Newick tree. I did the following,

>t = Bio::Newick.new("(A,(B,C),D)")
>t.tree.nodes
=>[(Node:43c98a8), (Node:"A"), (Node:"B"), (Node:"D"), (Node:43c91f0),
(Node:"C")]
> t.tree.number_of_nodes
=> 6

Am I doing something wrong? I am using bioruby version 1.2.1 in ruby 1.8.
Any suggestions are welcome.

Cheers,
Kaustubh






More information about the BioRuby mailing list