TreeSAP: Tree SAmpling under Phylogenetic models
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
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/.