Table 3.
The IBD process under SMC′
| 1: | Initialize |
| 2: | As in Table 1 |
| 3: | while x < L |
| 4: | ℓ ← 0 ▹ The current total segment length |
| 5: | repeat |
| 6: | ▹ Draw distance to next recombination; not necessarily a new segment |
| 7: | Draw ℓ0 ~ Exp(2Nt) |
| 8: | ℓ ← ℓ + ℓ0 |
| 9: | s ← t |
| 10: | Draw new TMRCA t with PDF qSMC′(t|s) (Eq. (6)) |
| 11: | until t ≠ s |
| 12: | if (x + ℓ) > L |
| 13: | ℓ ← (L − x) |
| 14: | if ℓ > m |
| 15: | nm ← nm + 1 |
| 16: | fm ← fm + ℓ/L |
| 17: | x ← x + ℓ |