Skip to content

Instantly share code, notes, and snippets.

@carlosp420
carlosp420 / TNT_treefile_to_NEXUS
Created September 18, 2013 20:18
convert a TNT treefile to NEXUS
#!/usr/bin/perl -w
#this script converts a tree ouput from TNT to NEXUS (1 tree per file)
# Carlos Peña 2011-03-16
use strict;
use Bio::TreeIO;
my $usage = "script.pl INFILE OUTFILE\n";
my $infile = shift or die $usage;
my $outfile = shift or die $usage;