Skip to main content
Dryad logo

Supplementary code for: Polygenic local adaptation in metapopulations: a stochastic eco-evolutionary model

Citation

Szep, Eniko; Sachdeva, Himani; Barton, Nick (2021), Supplementary code for: Polygenic local adaptation in metapopulations: a stochastic eco-evolutionary model, Dryad, Dataset, https://doi.org/10.5061/dryad.8gtht76p1

Abstract

This paper analyzes the conditions for local adaptation in a metapopulation with infinitely many islands under a model of hard selection, where population size depends on local fitness. Each island belongs to one of two distinct ecological niches or habitats. Fitness is influenced by an additive trait which is under habitat-dependent directional selection. Our analysis is based on the diffusion approximation and  accounts for both genetic drift and demographic stochasticity. By neglecting linkage disequilibria, it yields the joint distribution of allele frequencies and population size on each island. We find that under hard selection, the conditions for local adaptation in a rare habitat are more restrictive for more polygenic traits: even moderate migration load per locus at very many loci is sufficient for population sizes to decline. This further reduces the efficacy of selection at individual loci due to increased drift and because smaller populations are more prone to swamping due to migration, causing a positive feedback between increasing maladaptation and declining population sizes. Our analysis also highlights the importance of demographic stochasticity, which  exacerbates the decline in numbers of maladapted populations, leading to population collapse in the rare habitat at significantly lower migration than predicted by deterministic arguments.