StructHDP is a program for automatically inferring the population structure and number of clusters from a sample of admixed genotype data. It extends the model used by Structure to allow for a potentially infinite number of populations and then chooses the number of populations that best explain the data.