Subject: | possible bug with prune_tips |
Date: | Mon, 21 Dec 2009 22:04:17 -0800 |
To: | bug-Bio-Phylo [...] rt.cpan.org |
From: | Sonal Singhal <singhal [...] berkeley.edu> |
using Bio-Phylo-0.17
on perl, v5.10.0
on Mac OSX Snow Leopard, 64bit
starting with this:
my $tree = (((cat:5,dog:5):10,cow:15):3,(human:6,chimp:6):12):4;
my $forest = Bio::Phylo::IO->parse(-format => 'newick',-string => $tree);
my $treeobj = $forest->first;
my @taxa = ('cat','dog',);
print $treeobj->prune_tips(\@taxa)->to_newick;
Gives me this: ((:10.000000,cow:15.000000):3.000000,(human:6.000000,chimp:6.000000):12.000000):4.000000;
Seems like the right taxa are being pruned, but their branches are not
being pruned ... this is not acceptable Newick format. Is this
user-error or something with the function?
Thanks!
Great set of modules...