Entering edit mode
9.3 years ago
jeccy.J
▴
60
Hi Everyone
I was trying to convert mugsy whole genome alignment (maf) file to phylip using bioperl. My code is bellow
use Bio::AlignIO;
$in = Bio::AlignIO->new(-file => "mygenome_test.maf" ,
-format => 'maf');
$out = Bio::AlignIO->new(-file => ">mygenome_test_out.phy",
-format => 'phylip');
while ( my $aln = $in->next_aln ) {
$out->write_aln($aln);
}
In next step when I run RaxMl for phylogeny
$ ./raxmlHPC -s mygenome_test_out.phy -m GTRCAT -n Test_dna2
RAxML correctly finished parsing your PHYLIP file,
but there seems to be garbage at the end of the file, i.e., non-whitespace characters!
RAxML will exit now
Can anyone please help me out?