Bio.Align.clustal module

Bio.Align support for “clustal” output from CLUSTAL W and other tools.

You are expected to use this module via the Bio.Align functions (or the Bio.SeqIO functions if you are interested in the sequences only).

class Bio.Align.clustal.AlignmentWriter(target)

Bases: AlignmentWriter

Clustalw alignment writer.

fmt: str | None = 'Clustal'
write_header(stream, alignments)

Use this to write the file header.

format_alignment(alignment)

Return a string with a single alignment in the Clustal format.

__abstractmethods__ = frozenset({})
class Bio.Align.clustal.AlignmentIterator(source)

Bases: AlignmentIterator

Clustalw alignment iterator.

fmt: str | None = 'Clustal'
__abstractmethods__ = frozenset({})