In this context, for example, various mutations of a gene called G6PD that are thought to offer protection from malaria sprang up independently in different places.
It appeared to be the genes passed on to the mouse foetus that made all the difference - if a mouse could produce enough G6PD, it tended to survive, even when carried by an enzyme deficient mother.