Package: TreePar 3.3

Tanja Stadler

TreePar: Estimating Birth and Death Rates Based on Phylogenies

(i) For a given species phylogeny on present day data which is calibrated to calendar-time, a method for estimating maximum likelihood speciation and extinction processes is provided. The method allows for non-constant rates. Rates may change (1) as a function of time, i.e. rate shifts at specified times or mass extinction events (likelihood implemented as LikShifts(), optimization as bd.shifts.optim() and visualized as bd.shifts.plot()) or (2) as a function of the number of species, i.e. density-dependence (likelihood implemented as LikDD() and optimization as bd.densdep.optim()) or (3) extinction rate may be a function of species age (likelihood implemented as LikAge() and optimization as bd.age.optim.matlab()). Note that the methods take into account the whole phylogeny, in particular it accounts for the "pull of the present" effect. (1-3) can take into account incomplete species sampling, as long as each species has the same probability of being sampled. For a given phylogeny on higher taxa (i.e. all but one species per taxa are missing), where the number of species is known within each higher taxa, speciation and extinction rates can be estimated under model (1) (implemented within LikShifts() and bd.shifts.optim() with groups !=0). (ii) For a given phylogeny with sequentially sampled tips, e.g. a virus phylogeny, rates can be estimated under a model where rates vary across time using bdsky.stt.optim() based on likelihood LikShiftsSTT() (extending LikShifts() and bd.shifts.optim()). Furthermore, rates may vary as a function of host types using LikTypesSTT() (multitype branching process extending functions in R package diversitree). This function can furthermore calculate the likelihood under an epidemiological model where infected individuals are first exposed and then infectious.

Authors:Tanja Stadler

TreePar_3.3.tar.gz
TreePar_3.3.zip(r-4.5)TreePar_3.3.zip(r-4.4)TreePar_3.3.zip(r-4.3)
TreePar_3.3.tgz(r-4.4-any)TreePar_3.3.tgz(r-4.3-any)
TreePar_3.3.tar.gz(r-4.5-noble)TreePar_3.3.tar.gz(r-4.4-noble)
TreePar_3.3.tgz(r-4.4-emscripten)TreePar_3.3.tgz(r-4.3-emscripten)
TreePar.pdf |TreePar.html
TreePar/json (API)

# Install 'TreePar' in R:
install.packages('TreePar', repos = c('https://phylotastic.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/tanja819/treepar/issues

On CRAN:

16 exports 0.00 score 59 dependencies 33 scripts 164 downloads

Last updated 8 years agofrom:77d33da3f3. Checks:OK: 1 ERROR: 6. Indexed: no.

TargetResultDate
Doc / VignettesOKAug 10 2024
R-4.5-winERRORAug 10 2024
R-4.5-linuxERRORAug 10 2024
R-4.4-winERRORAug 10 2024
R-4.4-macERRORAug 10 2024
R-4.3-winERRORAug 10 2024
R-4.3-macERRORAug 10 2024

Exports:addrootbd.age.optim.matlabbd.densdep.optimbd.shifts.optimbd.shifts.plotbdsky.stt.optimcreate.matget.groupsLikAgeLikConstantLikConstantnLikDDLikShiftsLikShiftsPPLikShiftsSTTLikTypesSTT

Dependencies:apecliclusterGenerationcodacodetoolscolorspacecombinatcpp11DEoptimdeSolvedigestdoParallelexpmfansifarverfastmatchforeachgeigergenericsggplot2ggseqlogogluegtableigraphisobanditeratorslabelinglatticelifecyclemagrittrmapsMASSMatrixmgcvmnormtmunsellmvtnormncbitnlmenumDerivoptimParallelphangornphytoolspillarpkgconfigquadprogR6RColorBrewerRcpprlangscalesscatterplot3dsubplextibbleTreeSimutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Estimating Birth and Death Rates Based on PhylogeniesTreePar-package TreePar
addroot: Adds a root edge ancestral to the first branching event.addroot
bd.age.optim.matlab: Estimating speciation rate and age-dependent extinction rate in phylogenies.bd.age.optim.matlab
bd.densdep.optim: Estimating maximum likelihood speciation and extinction rates in phylogenies under a density-dependent speciation model.bd.densdep.optim
bd.shifts.optim: Estimating speciation and extinction rate changes and mass extinction events in phylogenies.bd.shifts.optim
bd.shifts.plot: Plots the diversification rate estimates obtained with the function bd.shifts.optim.bd.shifts.plot
bdsky.stt.optim: Estimating piecewise constant birth and death rates in phylogenies with sequentially sampled tips.bdsky.stt.optim
create.mat: Generates input for LikAge and bd.age.optim.matlab.create.mat
get.groups: Generates input for bd.shifts.optim when groups!=0.get.groups
LikAge: Calculates the likelihood of speciation and extinction rates for an ultrametric phylogeny under an age-dependent extinction model conditioning on the age of the tree.LikAge
LikConstant: Calculates the likelihood of constant birth and death rates for a given phylogenetic tree.LikConstant
LikConstantn: Calculates the likelihood of constant birth and death rates for a given phylogenetic tree.LikConstantn
LikDD: Calculates the likelihood of speciation and extinction rates for an ultrametric phylogeny under a density-dependent speciation model conditioning on the age of the tree.LikDD
LikShifts: Calculates the likelihood of time-dependent birth and death rates given a phylogenetic tree.LikShifts
LikShiftsPP: Calculates the likelihood of time-dependent birth and death rates given a phylogenetic tree.LikShiftsPP
LikShiftsSTT: Calculates likelihood of piecewise constant birth and death rates for a given phylogenetic tree with sequentially sampled tips.LikShiftsSTT
LikTypesSTT: Calculates the likelihood of the 2-type birth-death model parameters for a given tree.LikTypesSTT