Related Experiment Video
Updated: Oct 27, 2026

A Highly Scalable Approach to Perform Ecological Surveys of Selfing Caenorhabditis Nematodes
Published on: March 1, 2022
sandwrm: An R Package for Estimating Wright's Neighbourhood Size and Species-Level Genetic Diversity
Zachary B Hancock1,2, Gideon S Bradburd1
1Department of Ecology & Evolutionary Biology, University of Michigan, Ann Arbor, Michigan, USA.
Abstract:
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 sandwrm (Spatial Analysis of Neighbourhood size and Diversity using WRight-Malécot), which takes a Bayesian approach to estimate key parameters of populations that are both dispersal-limited (i.e., do not traverse the entire range in a single generation) and distributed continuously across a landscape. The R package can be installed from the GitHub repository, https://github.com/zachbhancock/sandwrm.
Related Concept Videos
Estimating Population Standard Deviation
One-Compartment Open Model: Wagner-Nelson and Loo Riegelman Method for ka Estimation
On...
Distributions to Estimate Population Parameter

