add functions for AIL and DO pedigree to reach fixed sample size.