Effective principal components analysis of SNP data