Classes for the support of baseml.
Maximum likelihood analysis of nucleotide sequences.
BASEML failed. Run with verbose=True to view BASEML’s error message.
Baseml(alignment=None, tree=None, working_dir=None, out_file=None)¶
An interface to BASEML, part of the PAML package.
__init__(self, 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.
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.
Parse a control file and load the options into the Baseml instance.
run(self, 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.
Parse a BASEML results file.