File conversion: a2m To fasta
Hello,
I have an msa file in a2m format, I want to convert this file to fasta. Is there any solution?
• 1,844 views
•
link
2 answers
you can convert Multiple Sequence Alignment file from A2M format to FASTA by;
- seqmagick
- biopython
sed to replace dots
grep -v "^#" input.a2m | sed '/^>/! s/.//g' > output.fasta
• 0 views
•
link
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.
• 0 views
•
link
Log in to answer this question.