Population genetic data analysis with R (haploid data only!)

R-code by Silke Werth


Population-genetic measures (list of references in the documentation):    
Nei's minimum genetic distance Dm (Takezaki & Nei 1996)    
Nei's Da distance (Takezaki & Nei 1996)    
Average population homozygosity J (Takezaki & Nei 1996)    
Latter's Fst (Takezaki & Nei 1996)    
Nei's unbiased gene diversity He (Nei 1978)    
Cramer's V2 (Agresti 1984)    
Tschuproff contingency coefficient T (Legendre & Legendre 1998)    
Minimum number of colonisation events C, percentage of multilocus genotypes M, number of multilocus genotypes G    
     
To be able to run the code on these pages, first download R from CRAN.    
Get an introduction to R here    
* Documentation of all files and formulae on this page    
* Test data set with microsatellites data for six loci in Lobaria pulmonaria download    
* Nei's minimum genetic distance: a) function source-code for R b) how to use this function    
* Nei's unbiased gene diversity H: a) function source-code b) how to use this function    
* Linkage disequilibrium R-code    
* Resampling function source-code    
* Calculating C, G and M R-code    
* Diploidise haploid genotype data source-code, example code    



© 1998-2025 WSL - - Last Update: Thu Oct 26 2017