# Bio.Align.phylip module

Bio.Align support for the alignment format for input files for PHYLIP tools.

You are expected to use this module via the Bio.Align functions.

class Bio.Align.phylip.AlignmentWriter(target)

  Bases: `AlignmentWriter`

  Clustalw alignment writer.

  fmt: str | None = 'PHYLIP'
  format_alignment(alignment)

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

  __abstractmethods__ = frozenset({})
  __annotate_func__ = None
  __annotations_cache__ = {'fmt': 'str | None'}
  __firstlineno__ = 20
  __static_attributes__ = ()

class Bio.Align.phylip.AlignmentIterator(source)

  Bases: `AlignmentIterator`

  Reads a Phylip alignment file and returns an Alignment iterator.

  Record names are limited to at most 10 characters.

  The parser determines from the file contents if the file format is sequential or interleaved, and parses the file accordingly.

  For more information on the file format, please see: http://evolution.genetics.washington.edu/phylip/doc/sequence.html http://evolution.genetics.washington.edu/phylip/doc/main.html#inputfiles

  fmt: str | None = 'PHYLIP'
  __abstractmethods__ = frozenset({})
  __annotate_func__ = None
  __annotations_cache__ = {'fmt': 'str | None'}
  __firstlineno__ = 63
  __static_attributes__ = ('_length_of_seqs', '_number_of_seqs')

Biopython v: 1.86

Versions
  Previous
  Latest
  Develop

Biopython Project
  Homepage
  On GitHub