Factors affecting genetic composition of populations