This module enables BioPython to parse the Soeding lab's custom HH-suite alignment formats A3M and A2M. The goal of the module is to replicate the results of the reformat.pl included in the HH-suite as faithfully as possible
pip install A3MIO
Simply import A3MIO
in addition to your BioPython modules. This creates support for the following new formats in both SeqIO
and AlignIO
packages:
a3m
- A3Ms with insertionsa3m-nogaps
A3Ms that ignore insertions w.r.t. query sequencea2m
- A2Ms with insertionsa2m-nogaps
A2Ms that ignore insertions w.r.t. query sequence
Example:
import Bio.SeqIO
import A3MIO
for record in Bio.SeqIO.parse("example.a3m", "a3m"):
print(record)
Not yet tested on larger sequence databases for accuracy or performance. Be sure to evaluate before you use it :)
GNU GPL v3