Columbia University · Mailman School of Public Health
Human Population Genetics¶
R notebooks for P8149, taught by Gao Wang.
Read the calculations here, or download a notebook and run it with the R kernel in Jupyter. Install hpgR before running the code. Use the data paths shown in each notebook.
Lecture 2¶
A first EM algorithm
R notebook
Allele counts, MAF estimation, and genotyping error
R notebook
A first hidden Markov model
R notebook
Copy, switch, and impute with a Li--Stephens HMM
R notebook
Lecture 3¶
Local IBD from linked markers
R notebook
Linkage, recombination, and LOD scores
R notebook
When affected siblings share more DNA
R notebook
Genome-wide kinship
R notebook
Lecture 8¶
Finite Sampling, Genetic Drift, and Mutation
R notebook
Effective Population Size from Generation Records
R notebook
Lecture 9¶
Start with size and history, then trace sampled ancestors and fit a size history to the frequency spectrum. The fourth notebook accompanies the local genealogy material after the homework.
1. Population Size and History from Present-Day DNA
R notebook
2. Trace the Sample through Its Parents
R notebook
3. Mutations on Trees and Population Size History
R notebook
4. Simulate and Date Local Genealogies
R notebook
Lecture 10¶
1. Split, Drift, Migration, and Differentiation
R notebook
2. Manhattan Rats and a Barrier to Migration
R notebook
3. Archaic Gene Flow and Shared Alleles
R notebook
4. Local Genealogies and Introgressed Segments
R notebook
Lecture 11¶
Start with E.1, then work through E.2.