6 May 11:32
BioPerl and NHX tree
Laurence Amilhat <Laurence.Amilhat <at> toulouse.inra.fr>
2008-05-06 09:32:53 GMT
2008-05-06 09:32:53 GMT
Hello,
I am trying to convert a newick treefile to a NHX file with specie tags
in order to visualize it with the ATV viewer.
The script is working but I think there is an error because the ATV
return this error message:
" Failed to read gene tree from
"BX881913.1.p.om.4.tfa_prot.tfa.taxid.alltree.cons_outtree.rooted.long.nhx"
[Error in NHX format: More than one distance to parent:"0.0"]"
When comparing the intree and outtree, they seem to be different, for
example the intree file begins with (((((( and the outtree begins with (((
Do you have an idea of what I am doing wrong?
Here is my code:
use strict;
use Bio::TreeIO;
use Bio::Tree::NodeNHX;
use Getopt::Long;
my $tree_file;
my $outfile;
my $codefile;
my %corresp;
GetOptions('f|file:s' =>\$tree_file, 'o|out:s' =>\$outfile, 'c|code:s'
=>\$codefile);
(Continue reading)
RSS Feed