kopperud / Pesto.jl

Phylogenetic Estimation of Shifts in the Tempo of Origination
MIT License
4 stars 0 forks source link

Pesto.jl: Phylogenetic Estimation of Shifts in the Tempo of Origination

The program can fit state-dependent speciation and extinction (SSE, Maddison et al 2007) models on reconstructed phylogenetic trees. We use these models to make inferences about when, and on which branches, there were shifts in the tempo of the process of diversification. The method is equivalent to the one presented by Höhna et al (2019), however it is much faster. The runtime of Pesto scales linearly with the number of tips in the phylogeny, and can be run on huge phylogenies (> 30k taxa) without much trouble on a standard laptop computer.

Installation

import Pkg
Pkg.add("Pesto")

Example rate analysis

using Pesto

phy = readtree(Pesto.path("primates.tre"))
ρ = 0.635 ## taxon sampling fraction
primates = SSEdata(phy, ρ)
model, rates = pesto(primates)

The output if plotted using the ggtree R-package will look something like the following figure. In the primates phylogeny, it is clear that there was one large shift in speciation rate in the branch that led to the Old World Monkeys clade.

primatestree

See the website at https://kopperud.github.io/Pesto.jl/dev for the documentation, and for an explanation of how the model is set up.

References