During the historical building of a species range, individual colonizers have to confront different ecological challenges, and the capacity of the species to broaden its range may depend on the total amount of adaptive genetic variation supplied by evolution.We set out to increase our understanding of what defines a range and the role of underlying genetics by trying to predict an entire species' range from the geographical distribution of its genetic diversity under selection. We sampled five populations of the western Mediterranean lizard Psammodromus algirus that inhabit a noticeable environmental gradient of temperature and precipitation. We correlated the genotypes of 95 individuals (18-20 individuals per population) for 21 SNPs putatively under selection with environmental scores on a bioclimatic gradient, using 1 × 1 km 2 grid cells as sampling units. By extrapolating the resulting model to all possible combinations of alleles, we inferred all the geographic cells that were theoretically suitable for a given amount of genetic variance under selection. The inferred distribution range overlapped to a large extent with the realized range of the species (77.46% of overlap), including an accurate prediction of internal gaps and range borders. Our results suggest an adaptability threshold determined by the amount of genetic variation available that would be required to warrant adaptation beyond a certain limit of environmental variation. These results support the idea that the expansion of a species' range can be ultimately linked to the arising of new variants under selection (either newly selected variants from standing genetic variation or innovative mutations under selection).
K E Y W O R D Slocal adaptation, landscape genetics, range boundaries, reptilesarbitrary boundaries to range expansion, Haldane (1956) proposed gene "swamping" as a centre-border effect by which gene flow from central to marginal habitats causes maladaptation at the edges of the range, reducing population density and constraining range expansion. This dynamic pattern would jeopardize adaptation at the edge of the range, even if the genetic variants that could promote range expansion are present in the genetic pool of a species, because gene swamping would hamper a rise in the frequencies of adaptive alleles at range limits (Haldane, 1956). However, this hypothesis has been subject to continuous debate (Nosil & Crespi, 2004;Polechová, 2018;Sexton et al., 2011). Another possibility is that range limits arise because a species has fully colonized the spatial projection of its ecological niche, in such way that niche expansion must precede range enlargement (Hutchinson, 1957). In such cases, since niche