1. ABOUT THE DATASET -------------------- Title: Dataset for 'Fixation and extinction in time-fluctuating spatially structured metapopulations' Creator(s): Asker, Matthew [1]; Täuber, Uwe C. [2]; Swailem, Mohamed [2]; Mobilia, Mauro [1] Organisation(s): 1. University of Leeds. 2. Virginia Tech Rights-holder(s): Copyright 2025 University of Leeds Publication Year: 2025 Description: Dataset for 'Fixation and extinction in time-fluctuating spatially structured metapopulations'. A full description of the data, methods, and interpretation may be found in the related publication. Computational data: processed results from several simulations of the stochastic model using the Monte Carlo algorithm defined in the publication. Relevant Python codes to view the figures produced from the data. Cite as: Asker, Matthew; Täuber, Uwe C.; Swailem, Mohamed; and Mobilia, Mauro (2025) Dataset for 'Fixation and extinction in time-fluctuating spatially structured metapopulations' Related publication: Asker, Matthew; Täuber, Uwe C.; Swailem, Mohamed; and Mobilia, Mauro (2025) Fixation and extinction in time-fluctuating spatially structured metapopulations. To be submitted. Contact: mmmwa@leeds.ac.uk, M.Mobilia@leeds.ac.uk 2. TERMS OF USE --------------- This dataset is licensed under a Creative Commons Attribution 4.0 International Licence: https://creativecommons.org/licenses/by/4.0/. 3. PROJECT AND FUNDING INFORMATION ---------------------------------- Title: DMS-EPSRC Eco-Evolutionary Dynamics of Fluctuating Populations Dates: 2022-2025 Funding organisation: EPSRC, NSF Grant no.: EP/V014439/1, NSF DMS-2128587 M. M. gratefully acknowledges funding from the U.K. Engineering and Physical Sciences Research Council (EPSRC) under the Grant No. EP/V014439/1 for the project ‘DMS-EPSRC Eco-Evolutionary Dynamics of Fluctuating Populations’. The support of a Ph.D. scholarship to M. A. by the EPSRC Grant No. EP/T517860/1 is also thankfully acknowledged. M. S. and U. C. T.’s contribution to this research was supported by the U.S. National Science Foundation, Division of Mathematical Sciences under Award No. NSF DMS-2128587. 4. CONTENTS ----------- File listing Most of the .py files in the data folder are used to plot a figure in the related publication: - 'constant_K plotter.py' - Figure 2 - 'weak_bottleneck_plotter.py' - Figure 4 - 'plotter.py' - Figure 5 - 'strong_bottleneck_plotter.py' - Figure 6 - 'deme_distribution_plotter.py' - Figure A1 - 'extinction_time_vs_omega_plotter.py' - Figure A2 - 'occupancy_plotter.py' - Figure A3 - 'strong_bottleneck_alternative_spatial_structures.py' - Figure A4 - 'intermediate_fixation_plotter.py' - Figure A5 - 'weak_bottleneck_plotter_env_bias.py' - Figure A6 - 'strong_bottleneck_plotter_env_bias.py' - Figure A7 In addition, 'fixation_prob_calculator_random_walk_lattice.py' contains the functions for calculating the fixation properties used in the case of the weak bottlenecks. The data (stored as .npz files - used by the numpy module of Python) are stored in directories corresponding to the various spatial structures defined in the model and the environment in which they evolved in. The file structure is as follows: - [spatial structure name]/[environment type] The name of the .npz file denotes what is stored there. The prefixes are as follows: - 'fp' - mutant fixation probability - 't' - mean fixation time - 't_e' - mean metapopulation extinction time Each of these additionally has an associated file containing the 'standard error' on each datapoint, named [prefix]_se_... . The folder named 'occupancy' contains the raw data for several trajectories for various combinations of parameters. The 'plotter.py' file within the occupancy folder is used to plot the trajectories in the switching case. The trajectories in the constant case are plotted using 'occupancy_plotter.py'. To use the code: - Download the files to a folder on your computer. - Extract each .zip file into that folder. - Open a Python session from that folder and run the relevant .py file. 5. METHODS ---------- Full details of methods provided in Asker et al. (2025) Fixation and extinction in time-fluctuating spatially structured metapopulations (to be submitted).