# 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({})
  __annotate_func__ = <function AlignmentWriter.__annotate__>
  __annotations_cache__ = {'fmt': 'str | None'}
  __firstlineno__ = 20
  __static_attributes__ = ()

class Bio.Align.clustal.AlignmentIterator(source)

  Bases: `AlignmentIterator`

  Clustalw alignment iterator.

  fmt: str | None = 'Clustal'
  __abstractmethods__ = frozenset({})
  __annotate_func__ = <function AlignmentIterator.__annotate__>
  __annotations_cache__ = {'fmt': 'str | None'}
  __firstlineno__ = 95
  __static_attributes__ = ('metadata',)

Biopython v: 1.86

Versions
  Previous
  Latest
  Develop

Biopython Project
  Homepage
  On GitHub