Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Local Genealogies and Introgressed Segments

Near the red wing-pattern locus, the butterfly study found that nearby positions can support different trees. Use twelve phased sequences from the simulated founder population to see how recombination changes genealogies and how haplotype matching recovers them. Then trace the population paths in the ancient-DNA example and distinguish the three dates in the BRCA1 case.

Source

Observe the final DNA

The simulation starts at size 100. It goes through 20 generations at size 20 and expands to 1,000 over the next 40 generations. The full sample contains 64 diploid people and eight 10,000-base chromosomes. Each chromosome has a 0.2-Morgan map and the mutation rate is 2.5 × 10⁻⁵ per base per generation.

Use the first six people on chromosome 1. H1–H12 identify their paired haplotypes. The copying model uses sites that vary among the twelve copies. The mutation clock uses the full sequence span, including invariant sites.

sampled_haplotypes     variable_sites     analyzed_bases 
                12                276              10000 

Can one tree explain both sites?

At site A, copies 1 and 3 carry the derived allele. At site B, copies 1 and 2 carry the derived allele. Under infinite sites, the descendants of the two mutations must be disjoint or nested on a single tree. These carrier groups overlap without nesting, producing all four two-site haplotypes. The sites require different trees under the model. Looking backward from a breakpoint bb, the segments [0,b)[0,b) and [b,L)[b,L) follow their respective parents.

Read two recorded trees

The forward simulation stores ancestry at fixed positions. At base 2,500, H1 groups with H10. At base 7,500, H1 groups with H2. The leaves are the same twelve haplotypes in both trees.

Plot with title “Recorded tree: base 7500”

Store trees as intervals

A tree sequence stores each node once. Each edge identifies a parent, a child, and the interval over which they are connected. At one position, read the local tree from the edges whose intervals contain that position. If copy cc inherits [a,b)[a,b) from uu and [b,d)[b,d) from vv, one edge stores each interval. Read cc’s parent at bb from the second edge. This representation shares edges across adjacent trees (Kelleher et al., 2016).

Infer the local genealogies

Shared derived variants identify candidate ancestors. The source ancestor builder groups focal sites by their carrier patterns and derived frequencies, then extends each ancestor using consensus among those carriers.

Match older ancestors first with the Li–Stephens copying HMM. Then match the observed copies against the ancestral sequences. The hidden state is the copied ancestor. The fitted copying paths give parent–child edges over genomic intervals. Initial node times give an ordering of ancestors. The matcher probabilities control copying and mismatch.

For example, a sample carrying 110 | 011 matches candidate 110 | 100 on the left and 011 | 011 on the right. This copying path matches the six alleles with one switch.

          inferred_local_trees observed_alleles_reconstructed 
                            62                           3312 

Check the fitted trees against recorded ancestry

Use the mutation rate and the full panel’s diversity-based size to put the inferred branches on the same time axis as the recorded branches. Simulate and Date Local Genealogies gives the mutation model and age intervals.

 position cladePrecision cladeRecall   pairMAE   rootMAE
      125      0.3333333         0.3  62.15125  32.51499
     2500      0.2857143         0.2  89.17248  65.48501
     5000      0.3750000         0.3  41.22187 127.48501
     7500      0.4285714         0.3 108.80156 142.33179
     9875      0.5714286         0.4  57.40081  70.51499
cladePrecision    cladeRecall        pairMAE        rootMAE 
     0.3988095      0.3000000     71.7495935     87.6663576 
Plot with title “Inferred tree: base 7500”

Interpret the comparison

Matching every input allele is a check of sequence reconstruction. Clade precision gives the fraction of inferred clades found in the recorded tree. Clade recall gives the fraction of recorded clades recovered by the fit. Both exclude trivial clades consisting of one sample or all samples. Across the five recorded positions, average precision is about 0.40 and recall is about 0.30, as shown in the lecture.

Trace a segment to its source

The simulated trees describe one breeding population. For ancient genomes, specify a history HH of sizes, splits and migration. Under HH and recombination rate rr, the graph G\mathcal G includes the population of each lineage. Mutations at rate μ\mu generate the linked sequences DD. The two rates are per base per generation.

Pr⁡(G∣D,H,r,μ)∝Pr⁡(D∣G,μ)Pr⁡(G∣H,r).\Pr(\mathcal G\mid D,H,r,\mu) \propto \Pr(D\mid\mathcal G,\mu)\Pr(\mathcal G\mid H,r).

The earlier f4f_4 ratio estimated Neanderthal ancestry in living humans. Here the target is early-human ancestry in Neanderthals. For one position, count the fraction of posterior graphs in which a sampled copy followed the specified migrant path. Hubisz et al. applied this to both copies in each of two Neanderthals. At the 0.5 cutoff, light green and dark green mark segments with one and two early-human copies, respectively. Gray marks the deeper archaic source. The paper checks recovery in simulations with known migrant segments and false calls in simulations without migration. Hubisz et al. (2020), Figs. 5 and 7.

Posterior probabilities and ancient-human ancestry calls on chromosome X

At EPAS1, the shared 32.7-kb haplotype and excess derived-allele sharing support a Denisovan-related source in Tibetan highlanders. The study tested ancestral sharing with no introgression as a competing explanation. Huerta-Sánchez et al. (2014), Fig. 2 and Extended Data Fig. 9.

Date a mutation and its arrival

Under a single origin, a mutation arose on the edge above the sampled carriers’ common ancestor. The child’s age is a lower bound on mutation age, and the parent’s age is an upper bound.

Let (c) be the recombination fraction between a marker and the variant. Along a lineage of (g) independent meioses, the number of recombinant transmissions obeys (J\mid g,c\sim\operatorname{Binomial}(g,c)). The probability of zero such transmissions is ((1-c)^g), which falls with (g). The published entry model compares haplotypes across populations and also allows marker mutation. In the BRCA1 example, shared microsatellite alleles supported a single origin about 1,800 years ago and later entry into the Ashkenazi Jewish gene pool about 400–500 years ago. Both dates are model-based estimates (Hamel et al., 2011).

With a single introduction, the sampled recipient copies can coalesce at the incoming chromosome or a later descendant. With multiple introductions, their shared ancestor can lie in the source population. The mutation date, entry date, and sample’s carrier MRCA have different interpretations.