.. _installation: ************** Installation ************** tapir_ has several dependencies. At a minimum you will need to install: - `hyphy 2 `_ (must be single-threaded) - `numpy 1.3.x `_ - `scipy 0.9.0 `_ - `dendropy 3.9.0 `_ Installing hyphy ================ tapir_ uses hyphy_ for substitution model selection and site rate estimation. Additionally, hyphy needs to be compiled as a single-threaded binary. We provide appropriate binaries for: - `os x 10.7 `_ - linux You need to download these and place them within your `$PATH`. If this statement confuses you, then you should `read this article on UNIX paths `_. Installing numpy ================ You first need to install numpy_. Barring platform-specific options, you can accomplish this by running:: easy_install numpy Sometimes on OSX, this is problematic. There is a `numpy binary installer `_ that you can use in this case. Installing scipy ================ You also need to install scipy_. Barring platform-specific options, you can accomplish this by running:: easy_install scipy Sometimes on OSX, this is problematic. There is a `scipy binary installer `_ that you can use in this case. Installing dendropy =================== Installing dendropy_ is easy using easy_install:: easy_install dendropy rpy2 [optional] ======================= To produce pretty and relatively pain-free graphics, you will need to install rpy2_. This is generally easily done using:: easy_install rpy2 Although this is currently not working on OSX Lion (see `here `_ for temporary workaround). matplotlib [optional] ============================= To produce more basic figures, you can use matplotlib which is installed using:: easy_install matplotlib .. _hyphy: http://www.datam0nk3y.org/hyphy/ .. _rpy2: http://rpy.sourceforge.net/rpy2.html .. _scipy: http://scipy.org .. _numpy: http://numpy.scipy.org .. _dendropy: http://packages.python.org/DendroPy .. _tapir: https://github.com/faircloth-lab/tapir