How to convert .XFMA file to .nexus file
0
0
Entering edit mode
8.7 years ago
jeccy.J ▴ 60

Hi Everyone.

I have generated an .xfam alignment file using Parsnp (harvest suite)

For phylogenetical analysis, I want to usie BEAST program which requires the input file to be in NEXUS format.

I use bioperl but somehow its not converting properly which need input for BEAUti.

use Bio::AlignIO;

$in  = Bio::AlignIO->new(-file => "parsnp.xmfa" ,
                         -format => 'xmfa');
$out = Bio::AlignIO->new(-file => ">parsnp_alignment.nexus",
                         -format => 'nexus');

while ( my $aln = $in->next_aln ) {
  $out->write_aln($aln);
}

Can anyone please help me out.

XFMA nexus • 4.0k views
ADD COMMENT
0
Entering edit mode

Did you figure out how to do it? I am the same spot.

ADD REPLY

Login before adding your answer.

Traffic: 2235 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6