Two-layer Hidden Markov Model that:
MCMC can learn HMM parameters $\bar{\theta}$: transition and emission probabilities
Transition matrix inspired by Galimberti et al. (2020):
$$Q(d_l) = \exp(d_l \cdot \Lambda),$$
$$ \text{where } \Lambda = \K \cdot \overset{\displaystyle \begin{array}{ccccccc} \mcell{\matindex{s_0=0}} & \mcell{\matindex{s_1}} & \mcell{\matindex{s_2}} & \mcell{\ldots} & \mcell{\matindex{s_{M-2}}} & \mcell{\matindex{s_{M-1}}} & \mcell{\matindex{s_{M}}} \end{array}}{ \left(\begin{array}{ccccccc} -\Nu \Mu & \Nu \Mu & 0 & \ldots & 0 & 0 & 0 \\ 1 & -1-\Mu & \Mu & \ldots & 0 & 0 & 0 \\ \mcell{\vdots} & \mcell{\vdots} & \mcell{\vdots} & \mcell{\ddots} & \mcell{\vdots} & \mcell{\vdots} & \mcell{\vdots} \\ 0 & 0 & 0 & \ldots & 1 & -1-\Mu & \Mu \\ 0 & 0 & 0 & \ldots & 0 & 1 & -1 \\ \end{array}\right)} \begin{array}{l} \matindex{s_0=0} \\ \matindex{s_1} \\ \vdots \\ \matindex{s_{M-1}} \\ \matindex{s_{M}} \\ \end{array} $$Transition density $p(\Delta t, x, y)$ is defined by demographic parameters
Transition density $p(\Delta t, x, y)$ is defined by demographic parameters
$p(\Delta t, x, y)$ is the solution of the diffusion equation:
$$\frac{\partial}{\partial \tau}p(\tau, x, y) = \frac{1}{2}\sum_{i=1}^P \frac{\partial^2}{\partial y_i^2} \left[b_{ii}(y)p(\tau, x, y)\right] - \sum_{i=1}^P \frac{\partial}{\partial y_i} \left[a_i(y) p(\tau, x, y)\right]$$where $a_i(y)$ (infinitesimal mean) and $b_{ii}(y)$ (infinitesimal variance) are defined by population sizes $\mathbf{N}$, migration rates $\mathbf{m}$ and selection $\mathbf{S}_l$
Forward variable: probability of frequency $y$ and all data up to $t_k$
$$\alpha_k(\tau,y) := P\left[ X(t_k+\tau)=y, C(t_0)=c_0, \ldots, C(t_k)=c_k \right]$$Layer 1: Spatial
Layer 2: Temporal
Inference: Metropolis–Hastings MCMC samples all parameters $\theta$ jointly from
$$P(\theta \mid \mathbf{C}) \propto \underbrace{\textstyle\prod_{l} P(\mathbf{C}_l \mid \mpar{\mathbf{S}_l}, \mpar{\mathbf{N}}, \mpar{\mathbf{m}})}_{\text{Layer 2: emissions}} \cdot \underbrace{P(\mpar{\mathbf{S}} \mid \K, \Nu, \Mu)}_{\text{Layer 1: transitions}} \cdot \underbrace{P(\K, \Nu, \Mu, \mpar{\mathbf{N}}, \mpar{\mathbf{m}})}_{\text{priors}}$$All results are for a single population
Scored on genomic windows, so linked false positives count once
A locus is called selected when all 100,000 MCMC samples agree on the sign of $s$
Red line: all 100,000 MCMC samples agree on the sign of $s$
| Locus | Target SNP | bmws $|\bar{s}|$ | SweepLink $|\hat{s}|$ | Selected SNPs | Favoured allele associated with |
|---|---|---|---|---|---|
| LCT | rs4988235 | 0.064 | 0.039 | 202 | more milk |
| SLC45A2 | rs16891982 | 0.043 | 0.031 | 15 | lighter skin |
| HLA | rs204994 | 0.042 | 0.024 | 31 | – |
| DHCR7 | rs7944926 | 0.051 | 0.025 | 20 | more vitamin D |
| HERC2 | rs12913832 | 0.017 | 0.022 | 12 | lighter skin |
| Below their cutoff | OAS1 ($P = 2.5\times10^{-7}$) and FADS1 ($P = 1.5\times10^{-5}$) — both detected here | ||||
| New targets | 57 more regions, 17 of them colocalise with a trait | ||||
Their cutoff: $P < 10^{-7}$. $|\hat{s}|$ at the paper’s target SNP
QC removed 16 of 80 regions with frequency jumps between sequencing strategies 12 of 37 unsupported regions change steadily within the capture era (p < 0.05)
No colocalising trait or regulatory evidence
The six strongest regions without trait support: some look like real sweeps, others like artefacts
SweepLink:
bioRxiv