Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Bio-Phylo CPAN distribution.

Report information
The Basics
Id: 41070
Status: resolved
Priority: 0/
Queue: Bio-Phylo

People
Owner: Nobody in particular
Requestors: florent.angly [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Cannot import a BioPerl tree
An error is thrown when trying to convert a BioPerl tree object into a Phylo tree object using Bio::Phylo v0.17_RC6: Can't locate object method "Tree" via package "Bio::Phylo::Forest" at /usr/local/share/perl/5.10.0/Bio/Phylo.pm line 198, <DATA> line 1. A test script to reproduce the bug is attached.
Subject: phylo_bp_import_bug.pl
# Read tree in BioPerl use Bio::TreeIO; my $bptreeio = Bio::TreeIO->new(-format => 'newick', -fh => \*DATA); my $bptree = $bptreeio->next_tree; # Convert BioPerl tree object to Phylo tree object use Bio::Phylo::Forest::Tree; my $phylo_tree = Bio::Phylo::Forest::Tree->new_from_bioperl($bptree); # Some tree data __DATA__ (((A:5,B:5)z:2,(C:4,D:4)y:1)x:3,E:10);
Dear Florent Angly, I believe I have resolved your issue. I added a regression test file (t/regress_41070.t) that does the following to ensure the issue doesn't happen again: * it runs the script you pasted into your bug report, and checks that no exception is thrown * it then compares the converted tree from bioperl with one parsed directly by Bio::Phylo from the newick string. The symmetric difference metric should be zero - as indeed it is, so the trees are topologically identical Please don't hesitate to contact me again if anything doesn't work. Thank you for your help in improving Bio::Phylo. Best wishes, Rutger Vos