Skip to content
/ rescue Public

Code and Data for Azevedo & Olofsson. A branching process model of evolutionary rescue. Mathematical Biosciences 341. doi: 10.1016/j.mbs.2021.108708

License

Notifications You must be signed in to change notification settings

rbazev/rescue

Repository files navigation

A branching process model of evolutionary rescue: Code and Data

Data and code associated with:

Azevedo RBR, Olofsson P. A branching process model of evolutionary rescue. Mathematical Biosciences 341. doi: 10.1016/j.mbs.2021.108708

Contents

  • rescue_theory.py: Code for performing numerical calculations of probability of rescue, population size, number of beneficial mutations, and waiting time for a beneficial mutation.

  • rescue_simulations.py: Code for simulating population dynamics under evolutionary rescue without tracking individual beneficial mutations.

  • rescue_mutation_simulations.py: Code for simulating population dynamics under evolutionary rescue while tracking individual beneficial mutations.

  • prob_rescue.ipynb: Code to generate Figure 1 showing the effect of different parameter combinations on the probability of rescue from new mutations.

  • pop_size.ipynb: Code to generate Figure 2 showing the effect of different parameter combinations on the growth of a rescued population.

  • mutations.ipynb: Code to generate Figure 3 showing the effect of different parameter combinations on the waiting time for a rescuing mutation.

About

Code and Data for Azevedo & Olofsson. A branching process model of evolutionary rescue. Mathematical Biosciences 341. doi: 10.1016/j.mbs.2021.108708

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published