File conversion: a2m To fasta
2
0
Entering edit mode
4 months ago
Meto • 0

Hello,

I have an msa file in a2m format, I want to convert this file to fasta. Is there any solution?

a2m fasta a3m • 453 views
ADD COMMENT
1
Entering edit mode
4 months ago

you can convert Multiple Sequence Alignment file from A2M format to FASTA by;

  1. seqmagick
  2. biopython
  3. sed to replace dots

    grep -v "^#" input.a2m | sed '/^>/! s/.//g' > output.fasta

ADD COMMENT
1
Entering edit mode
4 months ago
Mensur Dlakic ★ 28k

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.

ADD COMMENT

Login before adding your answer.

Traffic: 1621 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