phyphy
documentation¶
phyphy is a Python package for facilitating HyPhy (http://hyphy.org/) analysis execution and parsing. phyphy
is compatible with HyPhy version >= 2.3.7.
The current version is 0.4.2. Please ensure you are using the most up-to-date version.
Overview¶
phyphy
can automate the execution and output parsing for the following standard analyses:
- FEL (Fixed Effects Likelihood)
- MEME (Mixed Effects Model of Evolution)
- SLAC (Single-Likelihood Ancestor Counting)
- FUBAR (Fast, Unconstrained Bayesian AppRoximation)
- aBSREL (adaptive Branch-Site Random Effects Likelihood)
- BUSTED (Branch-Site Unrestricted Statistical Test for Episodic Diversification)
- RELAX (Test for selection RELAXation)
- LEISR (Likelihood Estimation of Individual Site Rates)
phyphy
usage relies on three primary modules:
Hyphy
- This module can be optionally used to specify that a non-canonical (i.e. not installed to
/usr/local/
) installation or a local build of HyPhy. This module can additionally be used to specify that HyPhy be run quietly and/or without outputting its standard log files,messages.log
anderrors.log
.
- This module can be optionally used to specify that a non-canonical (i.e. not installed to
Analysis
- This module contains the analysis methods to execute, named according to the analysis. For example, the
FEL
class within theAnalysis
module would be used to execute an FEL analysis.
- This module contains the analysis methods to execute, named according to the analysis. For example, the
Extractor
- This module contains functionality to parse a given analysis output.
Extractor
makes it simple to extract information from a given analysis JSON output, including: - Fitted model parameters
- Fitted phylogenies
- Newick-extended format phylogenies with branch features for downstream visualization
- CSV files, for methods FEL, MEME, SLAC, FUBAR, LEISR, aBSREL
- This module contains functionality to parse a given analysis output.
API Documentation¶
Download/Installation¶
phyphy
is freely available under a FreeBSD license. The easiest way to install phyphy
is using pip
(or pip3
, for use with Python3 instead of Python2.7).
sudo pip install phyphy
Alternatively, the most recent release of Phyphy is available for download from https://github.com/sjspielman/phyphy/releases. Once Pyvolve has been downloaded, navigate to the directory in the terminal. To install for all users, enter this command:
sudo python setup.py install
Alternatively, to install locally for a specific user (or if you do not have root privileges), enter this command:
python setup.py install --user
Optional tests (Python2.7 compatible only!) may be run with the command (which may or may not require sudo
, depending on your install choice),
python setup.py test
Further note that phyphy
has the following dependencies which must be installed (pip
should take care of these for you):
Issues and Questions¶
Please file all bugs, issues, feature requests, and/or questions in the Issues section of the phyphy
github repository: https://github.com/sjspielman/phyphy/issues. Note that you will need a github account to file.
Citation¶
Forthcoming