A relationship-based algorithm for identifying genetically diverse subpopulations.