5.13 thetaRatio
Estimate the ratio in heterozygosity (theta) between genomic regions
thetaRatio uses an MCMC (Metropolis-Hastings Algorithm) to estimate the ratio of the expected heterozygosity from sites in two different regions.
\[\Phi = log(\frac{\theta_1}{\theta_2})\]
5.13.1 Parameters
5.13.4 Method
The likelihood function is:
\[ {P}(\boldsymbol{d}_1,\boldsymbol{d}_2|\theta_1,\theta_2, \boldsymbol{\pi}_1, \boldsymbol{\pi}_2) = \dfrac{\prod\limits_{i=1}^I \sum\limits_g \prod\limits_{j=1}^{n_i} \mathbb{P}(d_{1_{ij}}|g_i=g)\mathbb{P}(g_i=g|\theta_1,\boldsymbol{\pi}_1)}{\prod\limits_{i=1}^I \sum\limits_{g} \prod\limits_{j=1}^{n_i} \mathbb{P}(d_{2_{ij}}|g_i=g)\mathbb{P}(g_i=g|\theta_2,\boldsymbol{\pi}_2)} \] An MCMC is used to infer the posterior distribution for all parameters. Updates are performed for all: \((\boldsymbol{\pi})\) and \((\log(\theta_1))\) and \((\log(\theta_2))\).
\(U[0,1]\) prior is used for \((\log(\theta_1))\) and \((\log(\theta_1))\) and \(N(0, 1)\). is used for \((\boldsymbol{\pi})\).