Experimental evidence for ecological selection on genome variation in the wild