Invalid genotypes are resampled.