# Bio.Phylo.PAML.baseml module

Classes for the support of baseml.

Maximum likelihood analysis of nucleotide sequences.

exception Bio.Phylo.PAML.baseml.BasemlError

  Bases: `OSError`

  BASEML failed. Run with verbose=True to view BASEML’s error message.

  __firstlineno__ = 20
  __static_attributes__ = ()

class Bio.Phylo.PAML.baseml.Baseml(alignment=None, tree=None, working_dir=None, out_file=None)

  Bases: `Paml`

  An interface to BASEML, part of the PAML package.

  __init__(alignment=None, tree=None, working_dir=None, out_file=None)

    Initialize the Baseml instance.

    The user may optionally pass in strings specifying the locations of the input alignment and tree files, the working directory and the final output file.

  write_ctl_file()

    Dynamically build a BASEML control file from the options.

    The control file is written to the location specified by the ctl_file property of the baseml class.

  read_ctl_file(ctl_file)

    Parse a control file and load the options into the Baseml instance.

  run(ctl_file=None, verbose=False, command='baseml', parse=True)

    Run baseml using the current configuration.

    Check that the tree attribute is specified and exists, and then run baseml. If parse is True then read and return the result, otherwise return none.

    The arguments may be passed as either absolute or relative paths, despite the fact that BASEML requires relative paths.

  __firstlineno__ = 24
  __static_attributes__ = ('_options', '_rel_tree', 'alignment', 'ctl_file', 'out_file', 'tree')

Bio.Phylo.PAML.baseml.read(results_file)

  Parse a BASEML results file.

Biopython v: 1.85

Versions
  Previous
  Latest
  Develop

Biopython Project
  Homepage
  On GitHub