R code for analyzing data using package Adegenet.