Hybridization detection using phylogenetic invariants
Project description
HyDe: hybridization detection using phylogenetic invariants
Read the Docs
Installation
Requirements:
Python 2.7
Cython
Numpy
Scipy
Pandas
Matplotlib
Seaborn
C++ compiler (g++ >= v4.8 preferred)
HyDe is a Python package that wraps a primary C++ program for running a hybridization detection analysis. We have provided a Makefile that will compile the C++ executable (hyde_cpp) and will then install the HyDe Python package using the setup.py file. To ensure that the necessary dependencies are available, we suggest using a Python distribution such as Miniconda.
# To install dependencies
pip install cython numpy scipy pandas matplotlib seaborn
# Clone HyDe repository from GitHub
git clone https://github.com/pblischak/HyDe.git
cd HyDe
# Compile hyde_cpp using `make`
make
# Now install HyDe Python package
python setup.py install
# Test the installation
make test
Running HyDe from the Command Line
Type run_hyde.py -h for options.
run_hyde.py -i <infile> -m <map-file> -o <outgroup> \
-n <num-ind> -t <num-taxa> -s <num-sites> \
--prefix <prefix>
Running HyDe in Python
import hyde as hd
# Run a hyde analysis
hd.run_hyde(...)
# import a data set for testing particular triples
data = hd.HydeData("data.txt", "map.txt", "out", 16, 4, 250000)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phyde-0.1.0.tar.gz
(206.9 kB
view hashes)
Built Distribution
Close
Hashes for phyde-0.1.0-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3684208129f532d6255a07a86413d962efd73c90504aad92320a007ac641c3 |
|
MD5 | 37f35b36f37d73f9593bbb7e4b5b2243 |
|
BLAKE2b-256 | 6aeb9aab39a62aefa1b08233c2d08aeea85b56b9304ba5bfef5976fd7f46bc08 |