Bio.Align.a2m module
Bio.Align support for A2M files.
A2M files are alignment files created by align2model or hmmscore in the SAM Sequence Alignment and Modeling Software System.
- class Bio.Align.a2m.AlignmentWriter(target)
Bases:
AlignmentWriter
Alignment file writer for the A2M file format.
- fmt: str | None = 'A2M'
- format_alignment(alignment)
Return a string with the alignment in the A2M file format.
- write_alignments(stream, alignments)
Write a single alignment to the output file, and return 1.
alignments - A list or iterator returning Alignment objects stream - Output file stream.
- __abstractmethods__ = frozenset({})
- class Bio.Align.a2m.AlignmentIterator(source)
Bases:
AlignmentIterator
Alignment iterator for files in the A2M file format.
An A2M file contains one multiple alignment. Matches are represented by upper case letters and deletions by dashes in alignment columns containing matches or deletions only. Insertions are represented by lower case letters, with gaps aligned to the insertion shown as periods. Header lines start with ‘>’ followed by the name of the sequence, and optionally a description.
- fmt: str | None = 'A2M'
- __abstractmethods__ = frozenset({})