Statistical Methods for the Analysis of Autosomal and X Chromosome Genetic Data in Samples with Unknown Structure