sandwrm: An R Package for Estimating Wright's Neighbourhood Size and Species‐Level Genetic Diversity
Zachary B. Hancock, Gideon S. BradburdABSTRACT
In most natural populations, individuals in close proximity are more related on average than those at greater distances; this pattern gives rise to geographic population genetic structure. Despite extensive theoretical work on spatial population genetics, few empirical methods exist to estimate the components of theoretical models of genetic relatedness in continuous space. One classic model of relatedness in continuous space is the Wright‐Malécot model, which predicts that the probability of identity‐by‐descent decays as a function of geographic distances. The shape of this decay curve is dictated by the dynamics of local dispersal and mating, as well as population density. This model can be reformulated to describe the probability of identity‐by‐state, in which case the curve decays to an asymptote, the value of which is determined by the historical demography of the population. Collectively, these features can be modelled in a likelihood‐based framework to estimate neighbourhood size—a localized measure of the rate of genetic drift—and long‐term diversity from pairwise genetic and geographic distance. In this article, we introduce the R package