Inferring ancestral and biogeographic origin using genome-wide SNP data