set_a3m_alignments#

biotite.sequence.io.fasta.set_a3m_alignments(a3m_file, alignments, query_label, target_labels)[source]#

Fill a FastaFile with A3M-formatted alignments.

Parameters:
a3m_fileFastaFile

The A3M file to fill.

alignmentslist of Alignment, length=n

The pairwise alignments to fill the file with. The first sequence of each alignment must always be the same and will become the first sequence (the query) in the file.

query_labelstr

The label for the query sequence.

target_labelsiterable object of str, length=n

The labels for the target sequences in the alignment.