5 nexus2nh - convert nexus format trees (from PAUP* and MrBayes) to new hampshire
9 nexus2nh file.nexus > file.nh
11 # OR pipe in through STDIN
13 cat file.nexus | nexus2nh > file.nh
15 # OR specify an output
17 nexus2nh -o file.nh file.nexus
21 Convert Nexus Tree files into Newick/New Hampshire format tree files.
32 GetOptions('o|out|outfile:s' => \$outfile);
34 my $in = Bio::TreeIO->new(-format => 'nexus', -fh => \*ARGV);
37 $out= Bio::TreeIO->new(-format => 'newick',
38 -file => ">$outfile");
41 $out= Bio::TreeIO->new(-format => 'newick');
44 while( my $t = $in->next_tree ) {