10.8 Reading in data

We can provide the location of the downloaded files to the eigenstrat() function, which then constructs an EIGENSTRAT object to be used for downstream analysis.

# read in eigenstrat files
snps <- eigenstrat("./snps/snps")
snps
## EIGENSTRAT object
## =================
## components:
##   ind file: ./snps/snps.ind
##   snp file: ./snps/snps.snp
##   geno file: ./snps/snps.geno