Skip to content

cgreysongaito/SlowFast_RatchetEffects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Life history speed, population disappearances and noise-induced ratchet effects

Authors

Christopher J. Greyson-Gaito*1, Gabriel Gellner1, Kevin S. McCann1

Affiliations

*Corresponding Author - christopher@greyson-gaito.com

  1. Department of Integrative Biology, University of Guelph, Guelph, ON, Canada

ORCID

  • CJGG – 0000-0001-8716-0290
  • GG – 0000-0001-8170-1463
  • KSM – 0000-0001-6031-7913

DOI

Julia scripts and datasets

Folder and file structure

  • data – empty folder for data files to be placed (created in slowfast_whitenoise.jl and slowfast_rednoise.jl)
  • figs – empty folder for figures to be placed (created in slowfast_figures.jl)
  • scripts
    • packages.jl – list of packages required (file used in other scripts)
    • quasipotential.R – R script file to produce quasipotential figures in Supporting Information
    • slowfast_canardfinder.jl – julia script file containing code for the canard finder algorithm (file used in other scripts)
    • slowfast_commoncode.jl – julia script file containing common code used in other scripts
    • slowfast_metabolicmodel.jl – julia script file containing code producing the Yodzis and Innes metabolic model (file used in other scripts)
    • slowfast_figures.jl – julia script to produce the figures in the manuscript
    • slowfast_rednoise.jl – julia script to run the canard finder algorithm with red noise
    • slowfast_whitenoise.jl – julia script to run the canard finder algorithm with white noise
    • slowfast_CV.jl – julia script to calculate the coefficient of variation as the consumer's life history was varied from fast to slow
  • .gitignore – file containing files and folders that git should ignore
  • LICENSE.txt – CC by 4.0 License for this repository
  • README.md – this file

Instructions

  1. Download the GitHub/Zenodo repo
  2. Open the repo in Visual Studio Code (if you haven't already done so, set up Julia in Visual Studio Code)
  3. Most of the analysis here requires multiple cores. Thus to set up multiple cores on your computer, in Visual Studio Code find the Julia: Num Threads setting in the Extension Settings of the Visual Studio Code Julia Extension. Change this setting to at most the number of logical cores in your computer. Restart Julia. All parallel computing will run automatically regardless of the number of cores selected.
  4. Run slowfast_CV.jl, slowfast_whitenoise.jl, and slowfast_rednoise.jl to create the data required for slowfast_figures.jl. Note, depending on the number of cores in your computer, this will take a long time.
  5. Run slowfast_figures.jl to produce the figures in the manuscript.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors