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