Hello there,
I hope someone might have some insight into a problem I am having using the BioPerl module Bio::AlignIO in a perl script to convert a fasta formatted alignment into MAF format. I would appreciate any help you could offer in terms of getting the conversion script to work OR information about other tools to convert files into MAF format. Thank you and here is the script:
use Bio::AlignIO;
$inputfilename = $ARGV[0];
$in = Bio::AlignIO->newFh(-file => $inputfilename ,
'-format' => 'fasta');
$out = Bio::AlignIO->newFh('-format' => 'maf');
print $out $_ while <$in>;
When I run it here is the output:
------------- EXCEPTION: Bio::Root::NotImplemented -------------
MSG: Abstract method "Bio::AlignIO::maf::write_aln" is not implemented by package Bio::AlignIO::maf.
This is not your fault - author of Bio::AlignIO::maf should be blamed!
STACK Bio::Root::RootI::throw_not_implemented /opt/local/lib/perl5/site_perl/5.12.4/Bio/Root/RootI.pm:748
STACK Bio::AlignIO::maf::write_aln /opt/local/lib/perl5/site_perl/5.12.4/Bio/AlignIO/maf.pm:189
STACK Bio::AlignIO::PRINT /opt/local/lib/perl5/site_perl/5.12.4/Bio/AlignIO.pm:503
STACK toplevel test.pl:10
----------------------------------------------------------------
How would one even be able to convert FASTA to MAF?