treetime
Auf dieser Seite

Math

Inline and display math rendered with KaTeX at build time.

Diese Seite ist noch nicht übersetzt
Sie wird auf Englisch angezeigt. Einstellungstexte, Hilfetexte und die Befehlszeilenreferenz bleiben auf allen Seiten englisch.

This page demonstrates the features of the docs site. Its text is a placeholder.

Inline math sits in the text, such as the clock rate μ\mu or the coalescent time scale Tc\Tc, which uses a macro of the site.

Display math

Pii(t)=14+34e−4t/3,Pij(t)=14−14e−4t/3(1)P_{ii}(t) = \tfrac{1}{4} + \tfrac{3}{4} e^{-4t/3}, \qquad P_{ij}(t) = \tfrac{1}{4} - \tfrac{1}{4} e^{-4t/3} \tag{1}

where:

  • Pii(t)P_{ii}(t) is the probability that a site keeps its state over the branch length tt
  • Pij(t)P_{ij}(t) is the probability that a site changes to one other given state, for i≠ji \neq j
  • tt is the branch length in expected substitutions per site

Equation (1) gives the transition probabilities of the Jukes-Cantor model.

Aligned derivation

di=μ (ti−t0)+εiE[di]=μ ti−μ t0(2)\begin{aligned} d_i &= \mu \, (t_i - t_0) + \varepsilon_i \\ \expect{d_i} &= \mu \, t_i - \mu \, t_0 \end{aligned} \tag{2}

where:

  • did_i is the root-to-tip distance of tip ii
  • tit_i is the sampling date of tip ii, and t0t_0 is the date of the root
  • μ\mu is the clock rate, and εi\varepsilon_i is the residual of tip ii

The slope of the regression in equation (2) estimates the clock rate.

Matrix

Q=(⋅πCrACπGrAGπTrATπArAC⋅πGrCGπTrCTπArAGπCrCG⋅πTrGTπArATπCrCTπGrGT⋅)(3)Q = \begin{pmatrix} \cdot & \pi_C r_{AC} & \pi_G r_{AG} & \pi_T r_{AT} \\ \pi_A r_{AC} & \cdot & \pi_G r_{CG} & \pi_T r_{CT} \\ \pi_A r_{AG} & \pi_C r_{CG} & \cdot & \pi_T r_{GT} \\ \pi_A r_{AT} & \pi_C r_{CT} & \pi_G r_{GT} & \cdot \end{pmatrix} \tag{3}

where:

  • QQ is the rate matrix of the general time-reversible model, with each diagonal entry set so that its row sums to zero
  • πA,πC,πG,πT\pi_A, \pi_C, \pi_G, \pi_T are the equilibrium frequencies of the states
  • rXYr_{XY} is the exchangeability of the states XX and YY