Whole genome analyses accounting for structures in genotype data