## Code

All custom code is available here.

### Principal Component Analysis of Allele-Frequency Population Data

*plot_AF_PCA.m*
This Matlab function performs a principal component analysis of allele-frequency population data from next-generation sequencing. It takes as input the N x M matrix containing for each of N sites the allele-frequency of derived alleles in each of the M individuals/populations.