/TreeSAP

TreeSAP: Tree SAmpling under Phylogenetic models

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

TreeSAP   Build Status

TreeSAP: Tree SAmpling under Phylogenetic models

Installation

TreeSAP depends on SciPy and TreeSwift and can be installed via pip:

sudo pip install treesap

If you are using a machine on which you lack administrative powers, TreeSAP can be installed locally using pip:

pip install --user treesap

Usage

from treesap import nonhomogeneous_yule_tree
tree = nonhomogeneous_yule_tree(lambda x: 2*x, end_num_leaves=100)
print(tree.newick())

Full documentation can be found at https://niemasd.github.io/TreeSAP/.