Hello,
I have an msa file in a2m format, I want to convert this file to fasta. Is there any solution?
Hello,
I have an msa file in a2m format, I want to convert this file to fasta. Is there any solution?
you can convert Multiple Sequence Alignment file from A2M format to FASTA by;
sed to replace dots
grep -v "^#" input.a2m | sed '/^>/! s/.//g' > output.fasta
In HHsuite ( https://github.com/soedinglab/hh-suite ), there is a Perl script ( https://github.com/soedinglab/hh-suite/blob/master/scripts/reformat.pl ). It can convert between most common alignment formats, including A2M -> aligned FASTA. I am assuming you mean aligned FASTA, but it has an option to convert to plain FASTA as well by removing gap characters.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.