Population genetics
Problems
- Genotype imputation
Predict genotypes at variants not assayed in a sample from a reference panel of haplotypes, usually with the Li-Stephens HMM.
core - Haplotype phasing
Infer the two haplotypes of each individual from unphased genotypes, using patterns shared across a population sample.
core - Population structure inference
From genotypes of many individuals, find the ancestral populations and the share of each individual's genome that comes from each.
core - Local ancestry inference
Label each segment of an admixed genome with the source population it descends from, usually with an HMM along the chromosome.
advanced
Algorithms
- Coalescent simulation
Simulate a neutral sample backward in time: draw exponential waiting times, merge random pairs of lineages, then drop mutations on the tree.
1 languagescore - EM haplotype frequency estimation
Estimate haplotype frequencies from unphased genotypes with EM. Split each genotype over its compatible haplotype pairs, then count again.
1 languagescore - Genomic control
Divides the association statistics of a scan by the inflation factor lambda, the median observed chi-squared over its null median 0.4549, to correct for stratification.
1 languagescore - Hardy-Weinberg exact test
Test departure from Hardy-Weinberg proportions by the exact probability of heterozygote counts given allele counts, computed by a recurrence.
1 languagescore - McDonald-Kreitman test
Compare the ratio of nonsynonymous to synonymous changes within species and between species in a 2 x 2 table to detect adaptive evolution.
1 languagescore - Nei-Gojobori method
Estimate dN and dS by counting synonymous and nonsynonymous sites and differences between two coding sequences, with a Jukes-Cantor correction.
1 languagescore - Principal components of genotypes
Standardize each site of the genotype matrix, then take the top eigenvectors of the individual by individual matrix to show structure and to correct association tests.
1 languagescore - Tajima's D
A neutrality test from the scaled difference between nucleotide diversity and Watterson's estimate. Selection or growth shifts its sign.
1 languagescore - Watterson estimator
Estimate theta = 4N mu as the number of segregating sites divided by the harmonic number a_n of the sample size minus one.
1 languagescore - ABBA-BABA test
Count ABBA and BABA site patterns across four taxa. An excess of one over the other signals gene flow, since incomplete sorting is symmetric.
1 languagesadvanced - Elston-Stewart algorithm
Computes the likelihood of the phenotypes of a pedigree by peeling one nuclear family at a time. The cost is linear in the pedigree size and cubic in the number of genotypes.
1 languagesadvanced - Extended haplotype homozygosity
Detect recent positive selection by how far haplotypes carrying an allele stay identical around it, compared with the other allele.
1 languagesadvanced - Lander-Green algorithm
Computes multipoint pedigree likelihoods with a hidden Markov model over inheritance vectors along the chromosome. Linear in the markers, exponential in the meioses.
1 languagesadvanced - Maximum likelihood admixture estimation
Fit ancestry proportions and population allele frequencies by maximum likelihood with block relaxation and quasi-Newton acceleration.
1 languagesadvanced - Mixed model association testing
Tests each variant in a linear mixed model whose random effect has the genetic relationship matrix as covariance, to control for structure and relatedness.
1 languagesadvanced - SNP heritability estimation
Estimates the fraction of trait variance explained by all genotyped SNPs, by REML in a mixed model whose random effect has the genomic relationship matrix as covariance.
1 languagesadvanced - LD score regression
Regresses GWAS chi-squared statistics on the LD scores of the SNPs, so that the slope estimates the SNP heritability and the intercept measures confounding such as stratification.
1 languagesresearch - Pairwise sequentially Markovian coalescent
Infer past effective population size from one diploid genome with an HMM whose hidden states are binned coalescence times along the sequence.
1 languagesresearch
Data structures
- Positional Burrows-Wheeler transform
Durbin's sorting of haplotypes at each site by their reversed prefixes. It finds all set-maximal matches in O(NM) time for M haplotypes and N sites, which is linear in the input size.
1 languagesadvanced
Techniques
- Genome-wide association study
Tests each of many variants across the genome for association with a trait, one at a time, and keeps the variants that pass a genome-wide significance threshold.
core - Patterson f-statistics
Moments of allele frequency differences among three or four populations that test for admixture and fit admixture graphs.
advanced - Wright-Fisher diffusion
Approximate allele frequency dynamics in a large population by a diffusion process, and solve its Kolmogorov equations for fixation and sojourn times.
1 languagesadvanced
Concepts
- Genetic drift
The random change of allele frequencies caused by sampling of parents in a finite population, which leads to loss or fixation of alleles.
intro
Definitions
- Allele frequency
The fraction of copies of a gene in a population that carry a given allele, the basic state variable of population genetics.
intro - Effective population size
The size of an ideal Wright-Fisher population with the same rate of drift or coalescence as the real population under study.
core - Fixation index
The fraction of genetic variance that lies between subpopulations, FST = (HT - HS) / HT, a measure of population differentiation.
core - Identity by descent
Two gene copies are identical by descent when both are copies of one ancestral gene copy, relative to a set of founders of a pedigree or to a reference time in the past.
core - Kinship coefficient
The probability that two gene copies drawn at random, one from each of two individuals at the same locus, are identical by descent.
core - Linkage disequilibrium
The non-random association of alleles at two loci, measured by D = p_AB - p_A p_B and its scaled forms D' and r^2.
core - Nucleotide diversity
The average number of differences per site between two sequences drawn from a sample, an estimator of theta under neutrality.
core - Site frequency spectrum
The counts of segregating sites at which the derived allele appears in 1, 2, up to n - 1 of n sampled sequences.
core - dN/dS ratio
The rate of nonsynonymous substitutions per nonsynonymous site over the synonymous rate. A value above 1 suggests positive selection.
core
Theorems
- Hardy-Weinberg principle
With random mating, an autosomal locus with equal allele frequencies in both sexes and no selection, mutation, migration or drift (a large population) reaches p^2, 2pq, q^2 in one generation.
intro - Kimura fixation probability
Under the diffusion approximation, a new additive mutant with advantage s in a diploid population of size N fixes with probability (1 - e^(-2s)) / (1 - e^(-4Ns)), and 1/(2N) if neutral.
core - Mutation-selection balance
A deleterious allele with recurrent mutation at rate u settles near frequency u/(hs) when partly dominant, u/s when dominant (h = 1) and sqrt(u/s) when recessive (h = 0).
core - Ewens sampling formula
Under the neutral infinite alleles model, the probability of an allelic partition of a sample of n genes, with theta as the only parameter.
advanced
Models
- Wright-Fisher model
A population of N diploids (2N gene copies) in discrete generations: each new copy picks a parent copy uniformly at random, so the allele count is binomial each generation.
1 languagesintro - Infinite alleles model
A mutation model in which every mutation creates an allele never seen before, so alleles are labels and only their counts matter.
1 languagescore - Infinite sites model
A mutation model with so many sites that each mutation hits a new site, so every segregating site has two alleles and a unique origin.
core - Moran model
A population model with overlapping generations: at each step one individual reproduces and one dies, so the allele count is a birth-death chain that moves by at most one.
1 languagescore - Pritchard-Stephens-Donnelly admixture model
A Bayesian model where each individual has ancestry proportions over K populations with their own allele frequencies, fitted by Gibbs sampling.
core - Codon substitution model
A Markov model on the 61 sense codons with transition, codon frequency and omega parameters, used to estimate dN/dS by likelihood.
advanced - Li-Stephens haplotype copying model
An HMM that builds a new haplotype as a mosaic of known ones, with switches for recombination and errors for mutation.
1 languagesadvanced - Sequentially Markov coalescent
An approximation of the coalescent with recombination in which the genealogy along the genome is a Markov chain of local trees.
advanced