Misplaced Pages

Felsenstein's tree-pruning algorithm

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Technique in statistical genetics

In statistical genetics, Felsenstein's tree-pruning algorithm (or Felsenstein's tree-peeling algorithm), attributed to Joseph Felsenstein, is an algorithm for efficiently computing the likelihood of an evolutionary tree from nucleic acid sequence data.

The algorithm is often used as a subroutine in a search for a maximum likelihood estimate for an evolutionary tree. Further, it can be used in a hypothesis test for whether evolutionary rates are constant (by using likelihood ratio tests). It can also be used to provide error estimates for the parameters describing an evolutionary tree.

Details

A simple phylogenetic tree example made from arbitrary data D

The likelihood of a tree T {\displaystyle T} is, by definition, the probability of observing certain data D {\displaystyle D} ( D {\displaystyle D} being a nucleotide sequence alignment for example i.e. a succession of n {\displaystyle n} DNA site s {\displaystyle s} ) given the tree. It is often written : P ( D | T ) {\displaystyle P(D|T)} .

Here is an example of an evolutionary tree on arbitrary sequence data D {\displaystyle D} :


This is a key value and is often quite complicated to compute. To ease the computations, Felsenstein and his colleagues used several assumptions that are still widely used today. The main assumption is that mutations between DNA sites are independent of each other. This permits to compute the likelihood as a simple product of probabilities. Now you can divide the data D {\displaystyle D} between several D s {\displaystyle D_{s}} for each nucleotide site s {\displaystyle s} inside of D {\displaystyle D} . The global likelihood of the tree will be the product of the likelihoods of each site:

Same tree but made from D1, which consists in the first DNA sites from D

P ( D | T ) = s = 1 n P ( D s | T ) {\displaystyle P(D|T)=\prod _{s=1}^{n}{P(D_{s}|T)}}

If I reuse the example above, D 1 {\displaystyle D_{1}} tree would be:


The second assumption concerns the models of DNA sequence evolution. The computation of the likelihood needs the nucleotide frequencies as well as the transition probabilities (when a mutation occurs, probability of going from a nucleotide to another). The simplest model is the Jukes-Cantor model, assuming equal nucleotide frequencies ( π A = π G = π C = π T = 1 4 ) {\displaystyle \left(\pi _{A}=\pi _{G}=\pi _{C}=\pi _{T}={1 \over 4}\right)} and equal transition probabilities from X {\displaystyle X} to Y {\displaystyle Y} ( p A T = p A C = p A G = 1 4 ( 1 e μ l ) {\displaystyle p_{A\rightarrow T}=p_{A\rightarrow C}=p_{A\rightarrow G}={\frac {1}{4}}(1-e^{-\mu l})} and p A A = e μ l + 1 4 ( 1 e μ l ) {\displaystyle p_{A\rightarrow A}=e^{-\mu l}+{\frac {1}{4}}(1-e^{-\mu l})} ) and idem for the other bases. Here μ {\displaystyle \mu } is the global mutation rate of the model.

Felsenstein proposed to decomposed computations even more by using "partial likelihoods" in the computation of P ( D s | T ) {\displaystyle P(D_{s}|T)} . Here is how it works.

Assume we are on a node k {\displaystyle k} on the tree T {\displaystyle T} . k {\displaystyle k} has two daughter nodes i {\displaystyle i} and j {\displaystyle j} and, for each DNA base X = { A , T , C , G } {\displaystyle X=\{A,T,C,G\}} present on k {\displaystyle k} , we can define a partial likelihood w k ( X ) {\displaystyle w_{k}(X)} such as:

w k ( X ) = ( Y p X Y w i ( Y ) ) ( Z p X Z w j ( Z ) ) {\displaystyle w_{k}(X)=(\sum _{Y}p_{X\rightarrow Y}\centerdot w_{i}(Y))\centerdot (\sum _{Z}p_{X\rightarrow Z}\centerdot w_{j}(Z))}

where Y {\displaystyle Y} and Z {\displaystyle Z} are also DNA bases. p X Y {\displaystyle p_{X\rightarrow Y}} is the transition probability from nucleotide X {\displaystyle X} to nucleotide Y {\displaystyle Y} (idem for p X Z {\displaystyle p_{X\rightarrow Z}} ). w i ( Y ) {\displaystyle w_{i}(Y)} is the partial likelihood of the daughter node i {\displaystyle i} , evaluated on nucleotide Y {\displaystyle Y} (idem for w j ( Z ) {\displaystyle w_{j}(Z)} ).

Using this formula, one has to start from the tips of the tree T {\displaystyle T} , then move towards the root and compute the partial likelihoods of each necessary node on the way (4 partial likelihoods per node). Having finished at the root of the tree, the likelihood of the tree (for this particular site) is then the sum of the partial likelihoods of the root times the appropriated nucleotide frequency.

P ( D s | T ) = X p X w r ( X ) {\displaystyle P(D_{s}|T)=\sum _{X}p_{X}\centerdot w_{r}(X)}

After doing so for every site s {\displaystyle s} , one can finally obtain the likelihood of the global evolutionary tree by multiplying each "sublikelihood".

Algorithm

Simple Example

References

  1. Felsenstein, J. (1973). "Maximum Likelihood and Minimum-Steps Methods for Estimating Evolutionary Trees from Data on Discrete Characters". Systematic Biology. 22 (3): 240–249. doi:10.1093/sysbio/22.3.240.
  2. Felsenstein, J. (1981). "Evolutionary trees from DNA sequences: A maximum likelihood approach". Journal of Molecular Evolution. 17 (6): 368–376. Bibcode:1981JMolE..17..368F. doi:10.1007/BF01734359. PMID 7288891. S2CID 8024924.
Stub icon

This genetics article is a stub. You can help Misplaced Pages by expanding it.

Stub icon

This statistics-related article is a stub. You can help Misplaced Pages by expanding it.

Categories: