Definitioncore
Site frequency spectrum
Also called allele frequency spectrum.
The counts of segregating sites at which the derived allele appears in 1, 2, up to n - 1 of n sampled sequences.
The site frequency spectrum (SFS) of a sample of aligned DNA sequences is the vector , where is the number of segregating sites at which exactly of the sequences carry the derived allele. It is a histogram of the allele frequencies in the sample, one entry per site. Under the neutral infinite sites model with constant size, (Fu 1995). Most summary statistics of DNA polymorphism, among them Watterson's estimator, nucleotide diversity and Tajima's D, are linear functions of the SFS.
Definition
Let be an matrix over , one row per sampled sequence and one column per segregating site, with 1 for the derived allele and 0 for the ancestral allele. Let be the derived count of site . Because the site segregates, .
The unfolded site frequency spectrum is the vector with
So , the number of segregating sites.
When the ancestral allele is not known, only the minor allele count is defined. The folded spectrum is with for and when is even.
Expectation (Fu 1995). Under the neutral infinite sites model with a constant population size and with time in units of generations,
Proof. Look at the Kingman coalescent tree of the sample during the time when lineages exist. The tree shape is independent of the times. The leaves split among the lineages, and by the Pólya urn argument of the root split result on the Kingman coalescent page, run with colours instead of two, the vector of their sizes is uniform over the ordered ways to write as a sum of positive parts. So a fixed one of the lineages has exactly leaves below it with probability , the number of ways to split the other leaves into positive parts over the total. A mutation on that lineage during gives a site with derived count . Mutations fall at rate per lineage, and . Summing over the lineages and over ,
Expand the factorials: . By the hockey stick identity, . So the sum is .
The proof uses the tree of one site at a time, and the expectation of a sum over sites is the sum of the expectations. So the result also holds with recombination, where each site has its own tree. The variances and covariances of the do depend on recombination. The sum over gives with , which is Watterson's result. For the folded spectrum, for , and .
Examples and non-examples
A sample of five. The matrix
| copy | s1 | s2 | s3 | s4 | s5 | s6 |
|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 0 | 0 | 1 |
| 2 | 1 | 0 | 0 | 0 | 0 | 0 |
| 3 | 0 | 1 | 0 | 1 | 0 | 0 |
| 4 | 0 | 0 | 1 | 1 | 0 | 0 |
| 5 | 0 | 0 | 1 | 1 | 1 | 0 |
has the derived counts . So : three singletons, two doubletons, one tripleton and no site with four derived copies. The folded spectrum is .
With , Watterson's estimate is . The neutral expectation with this is . The observed spectrum is close to it at frequencies 1 and 3, has more sites at frequency 2 (2 against 1.44) and none at frequency 4 (against 0.72). With six sites, such differences are well inside the random variation of one genealogy.
Linear statistics. Each estimator of below is for weights with , so each is unbiased under the neutral model:
- Watterson's estimator: . In the example, .
- Nucleotide diversity (mean pairwise difference): . In the example, .
- The singleton count alone: , otherwise.
Tajima's D is a scaled difference of the first two. A model that does not fit the neutral expectation (growth, a sweep, structure) changes the shape of the spectrum, and such statistics measure the change in different directions.
Non-examples.
- A site where all sequences carry the derived allele is a fixed difference from the outgroup, not a segregating site. It has no entry . The McDonald-Kreitman test counts such sites separately.
- A site with three alleles has no place in . It cannot occur under the infinite sites model; real data sets drop such sites or split them.
- A vector of allele frequencies in the whole population is not the SFS of a sample: the SFS depends on , and for and for are different quantities.
- A spectrum from data with unknown ancestral states must not be read as unfolded. Polarizing by an outgroup that has its own mutations flips some sites from to and creates false high-frequency derived variants.
Related definitions
- Segregating sites ; see infinite sites model.
- Joint SFS. For samples from two or more populations, the array of counts of sites with derived copies in the first sample and in the second. It carries information about divergence times and migration that the SFS of one population does not.
- Allele frequency. The population frequency of the derived allele at one site; see allele frequency. The SFS is the distribution of the sample version over sites.
- Expected SFS under other models. Population growth adds singletons ( grows relative to ), a bottleneck can remove them, and a selective sweep adds both rare and high-frequency derived variants. Many demographic inference programs fit the expected spectrum of a model to the observed one. Coalescent simulation gives the expected spectrum of a model when no formula is known.
References
- Yun-Xin Fu, Statistical properties of segregating sites, Theoretical Population Biology 48(2), 1995, pp. 172-197 (the expected number of segregating sites of each frequency class, theta / i, and their covariances)
- John Wakeley, Coalescent Theory, An Introduction, Roberts and Company, 2009, Chapter 4 (the site frequency spectrum under the infinite-sites model)
- Fumio Tajima, Statistical method for testing the neutral mutation hypothesis by DNA polymorphism, Genetics 123(3), 1989, pp. 585-595 (a test that compares two estimators of theta, both linear in the spectrum)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag D8B6H3 Edit this page History Report an error Markdown