bioperl / bioperl-live-redmine

Legacy tickets migrated from the OBF Redmine issue tracker: http://redmine.open-bio.org
0 stars 0 forks source link

Error with TreeIO for NHX format #89

Open cjfields opened 8 years ago

cjfields commented 8 years ago

Author Name: Ameet Talwalkar (Ameet Talwalkar) Original Redmine Issue: 3149, https://redmine.open-bio.org/issues/3149 Original Date: 2010-10-27 Original Assignee: Chris Fields


I would like to use BIOPerl to convert a tree in PhyloXML format to NHX format, and I have tried the following code:

use Bio::TreeIO;

my $input = new Bio::TreeIO(-file => “reconciled_test.xml”, -format => “phyloxml”); my $treeout = new Bio::TreeIO(-fh => *STDOUT, -format => ‘nhx’);

while (my $tree = $input->next_tree) { $treeout->write_tree($tree); }

The output is indeed in NHX format, but the tags (in particular I have a duplication / speciation tag) do not appear in the output. I sent an email to bioperl-l@bioperl.org to ask for help, and was contacted by Chris Fields, who suggested that I file a bug report, as he suggested that “it’s possible the tags are parsed but the NHX writer is not finding the data somehow.”

cjfields commented 8 years ago

Original Redmine Comment Author Name: Ameet Talwalkar Original Date: 2010-10-27T00:11:24Z


Created an attachment (id=1547) perl script using bioperl that incorrectly converts phyloxml to nhx

cjfields commented 8 years ago

Original Redmine Comment Author Name: Ameet Talwalkar Original Date: 2010-10-27T00:12:44Z


Created an attachment (id=1548) intial phyloxml tree

cjfields commented 8 years ago

Original Redmine Comment Author Name: Ameet Talwalkar Original Date: 2010-10-27T00:15:59Z


Created an attachment (id=1549) Desired tree in NHX format created via Archaeopteryx (GUI for Forester)

cjfields commented 8 years ago

Original Redmine Comment Author Name: Ameet Talwalkar Original Date: 2010-10-27T00:17:14Z


Created an attachment (id=1550) Output of perl script, containing nhx tree WITHOUT relevant tags.

cjfields commented 8 years ago

Original Redmine Comment Author Name: Chris Fields Original Date: 2011-03-05T22:24:06Z


Strangely, this was reported as a FeatureIO bug. Moving back.

cjfields commented 8 years ago

Original Redmine Comment Author Name: Chris Fields Original Date: 2011-03-11T20:45:25Z


wubba (test commit for guts)