On the genomic analysis of data from structured populations. (June 2014)