Model code and dataset: Mating Systems and Evolutionary Rescue
# Mating systems and evolutionary rescue The dataset is from simulation modelling of diverse mating systems with varying direction of mate choice and their influence on adaptation rates, heterozygosity, resilience and the likelihood of evolutionary rescue under deteriorating environment. The code for the model and for running the model and visualising the results are archived. The simulation output is also archived. # Two data files were generated to produce the figures for the main figures and the supplemenatry materials **heterozygosity_no_change_fig1.xlsx** includes the simulation output generated to plot mean heterozygosity accross replicates and over time for 1000 generations under stable environment for all mating systems (figure 1) **extinction_env_change.csv** contains the data for all mating systems under varying carrying capacities, mismatch penalties, homozygosity penalties and rates of directional change1) to calculate resilience (figure 3) i.e. which of the replicate populations went extinct under different combination of parameters2) data for population size dynamics and median population mismatch and heterozygosity at every time step (figure S1, S2)3) data for time at which the replicate populations went extinct if they went extinct (figure S3) BOTH DATASETS HAVE THE FOLLOWING VARIABLES *mating_type* Mating system and direction of mate choice*extinct* binary variable, whether the population became extinct (1 = extinct, 0=persists)*extinction.t* timestep at which extinction takes place *mating_system* monogamy or polygyny*parental_care* bi-parental mismatch & heterozygosity estimating the number of offspring if TRUE (mutual choice monogamy). Only female mismatch & heterozygosity if FALSE *beta.m* male preference strength likelihood to choose the best female in the group *beta.f* female preference strength likelihood to choose the best male in the group*cost.m* cost of the sexual signal trait in males *cost.f* cost of the sexual signal trait in females *alpha.m* how strongly environment scales with sexual trait in males*alpha.f* how strongly environment scales with sexual trait in males*directional.rate* strength of directional environmental change - mean change per timestep, if zero then more or less stable environment *mismatch.penalty* scaling factor for penalizing high mismatch*inbreeding.penalty* scaling factor for penalizing low heterozygosity Columns of below mentioned data for each timestep*pop_* population size*males_* no. of males*females_* no. of females*mean_heterozygosity_* mean population heterozygosity*median_heterozygosity_* median population heterozygosity*eff_pop_* effective population size*env_* environmental value*mean_phenotype_* mean population phenotypic trait value or adaptive value*median_phenotype_* median population phenotypic trait value or adaptive value Additionally, **heterozygosity_no_change_fig1.xlsx** contains**rep** replicate number Two R scripts are included: **Mating_system_model.R** this is the code for the model itself. **MSS_simruns_and_analysis.R** this script has code for running the simulations and for visualizing the data. Both scripts were developed and run in R 4.5.2
Authors
- Jacek Radwan (ORCID: https://orcid.org/0000-0001-8503-5701)
- Neelam Porwal (ORCID: https://orcid.org/0000-0002-3739-124X)
- Robert Knell
- Franky Rogers
- Jonathan Parrett
Institutions
- University of East Anglia (GB)
- Adam Mickiewicz University in Poznań (PL)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-04-02
- DOI
- https://doi.org/10.5281/zenodo.19386579
- Primary Topic
- Evolution and Genetic Dynamics
- Type
- article
- Field-Weighted Citation Impact
- 0.00