| Maintainer: | Brian O'Meara |
| Contact: | omeara.brian at gmail.com |
| Version: | 2010-07-07 |
The history of life unfolds within a phylogenetic context. Comparative phylogenetic methods are statistical approaches for analyzing historical patterns along phylogenetic trees. This task view describes R packages that implement a variety of different comparative phylogenetic methods. This is an active research area and much of the information is subject to change.
Ancestral state reconstruction : Continuous characters can be reconstructed using maximum likelihood, generalised least squares or independent contrasts in ape. Root ancestral character states under Brownian motion or Ornstein-Uhlenbeck models can be reconstructed in ouch, though ancestral states at the internal nodes are not. Discrete characters can be reconstructed using a variety of Markovian models that parameterize the transition rates among states using ape.
Diversification Analysis: Lineage through time plots can be done in ape and laser. A simple birth-death model for when you have extant species only (sensu Nee et al. 1994) can be fitted in ape as can survival models and goodness-of-fit tests (as applied to testing of models of diversification). laser implements likelihood methods using a model testing approach for inferring temporal shifts in diversification rates based on a birth-death or pure-birth process. The gamma statistic (Pybus and Harvey 2000) is also available in laser. Net rates of diversification (sensu Magellon and Sanderson) can be calculated in geiger. diversitree implements the BiSSE method (Maddison et al. 1997) and later improvements (FitzJohn et al. 2009). apTreeshape also has tests for differential diversification (see description ).
Divergence Times: Non-parametric rate smoothing (NPRS) and penalized likelihood can be implemented in ape.
Phylogenetic Inference: Maximum likelihood, UPGMA, neighbour joining, bio-nj and fast ME methods of phylogenetic reconstruction are all implemented in the package ape. phangorn can estimate trees using distance, parsimony, and likelihood. phyclust can cluster sequences. scaleboot can perform the Shimodaira-Hasegawa test for comparing trees.For more information on importing sequence data, see the Genetics task view.
Time series: Paleontological time series data can be analyzed using a likelihood-based framework for fitting and comparing models (using a model testing approach) of phyletic evolution (based on the random walk or stasis model) using paleoTS.
Tree Simulations: Trees can be simulated using constant-rate birth-death with various constraints in TreeSim, a birth-death process in geiger, and PhySim. Random trees can be generated in ape by random splitting of edges (for non-parametric trees) or random clustering of tips (for coalescent trees). phybase can simulate coalescent trees as well.
Trait evolution: Independent contrasts for continuous characters can be calculated using ape or picante. Analyses of discrete trait evolution, including models of unequal rates or rates changing at a given instant of time, as well as Pagel's transformations, can be performed in Geiger. geiger. Brownian motion models can be fit in geiger and ape. Ornstein-Uhlenbeck (OU) models can be fitted in geiger, ape and ouch. matticce uses ouch to search for where a regime transition occurs. In its current implementation, geiger fits only single-optimum models. Other continuous models, including Pagel's transforms and models with trends, can be fit with geiger. ANOVA's and MANOVA's in a phylogenetic context can also be implemented in geiger. A GLS linear model (sensu Garland and Ives 2000) can be fitted using PHYLOGR; the more traditional GLS methods (senu Grafen or Martins) can be implemented in ape. Phylogenetic autoregression (sensu Cheverud et al) and Phylogenetic autocorrelation (Moran's I) can be implemented in ape or--if you wish the significance test of Moran's I to be calculated via a randomization procedure--in ade4 or adephylo (ade4 has been deprecated in favor of adephylo). Correlation between traits using a GLMM can also be investigated using MCMCglmm.
Trait Simulations : Continuous traits can be simulated using brownian motion in ouch, geiger, ape, and picante, the Hansen model (a form of the OU) in ouch and a speciational model in geiger. Discrete traits can be simulated using a continuous time Markov model in geiger. phangorn can also simulate discrete traits, especially DNA or AA. Both discrete and continuous traits can be simulated under models where rates change through time in geiger.
Tree Manipulation : Branch length scaling using ACDC; Pagel's (1999) lambda, delta and kappa parameters; and the Ornstein-Uhlenbeck alpha parameter (for ultrametric trees only) are available in geiger. Rooting, resolving polytomies, dropping of tips, setting of branch lengths including Grafen's method can all be done using ape. Extinct taxa can be pruned using geiger. phylobase offers numerous functions for querying and using trees (S4), as does phybase. Tree rearrangements (NNI and SPR) can be performed with phangorn.
Community Ecology : picante and vegan integrate several tools for using phylogenetics with community ecology.
Phyloclimatic Modeling : phyloclim integrates several new tools in this area.
Tree Plotting and Visualization: User inputted trees can be plotted using ape, ade4, adephylo, phylobase and ouch. paleoPhylo is specialized for drawing paleobiological phylogenies. Trees can also be examined (zoomed) and viewed as correlograms using ape. Ancestral state reconstructions can be visualized along branches using ape.
Miscellaneous: rmesquite offers a way to call headless Mesquite from R, useful for many kinds of analyses. To do the reverse, use R.Mesquite .
References