10.6 Setup

In this lab, we’ll quantify evidence for introgression in human populations using \(D\) and related statistics.

10.6.1 R packages

In addition to tidyverse, we’ll use the admixr package, which allows us to easily run the software package ADMIXTOOLS from within R to calculate \(D\) and related statistics.

The exercises for class were adapted from the admixr tutorial, available here.

library(tidyverse)
library(admixr)