powered by
fstCalc
fstCalc(data, POPs, nPOP, PopSizes, ploidy = 2)
nPOP
x <- read4pcadapt("geno3pops",option="example") popsizes <- c(50,50,50) pops <- c(rep(1,times=50),rep(2,times=50),rep(3,times=50)) nPOP <- 3 fst <- fstCalc(x,pops,nPOP,popsizes)
Run the code above in your browser using DataLab