Skip to content

quantitative-ecologist/experience-hunting-tactics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online repository for Fraser Franco et al. (XXXX)

Description

Online repository to reproduce the results presented in :

Fraser Franco, M., Santostefano, F., Martin, G. A., Julien, Kelly, Clint D., Montiglio, P.-O. (submitted to The American Naturalist) Experience shapes individual foraging specialization and success in a virtual predator-prey system.

General coding workflow

The subfolders in the code folder are enumerated in order to reflect the worflow.

Here are the steps highlighting the process with a link to the code subfolders :

  1. Run models
  2. Model validation
  3. Model processing
  4. Produce figures
  5. Produce tables

You will find the specific outputs generated from the R scripts in the outputs folder. Each output file has a number that correponds to the R script used to generate it.

Workflow to compute the models

I ran all the models on Cedar, a computer cluster managed by the Digital Research Alliance of Canada. You can open the .sh files in the jobs_slurm folder to see the computer specifications used to run the models. The computer cluster runs on CentOS Linux 7.

Here is a table showing the workflow employed to generate the model outputs using R. This workflow is exclusively for .R files used to compute the Bayesian mixed models with the package "brms" (see the 01_code_models folder).

Generator Operating system Programming language Code Results
Digital Research Alliance of Canada / Cedar CentOS Linux 7 R code folder outputs folder

Note : The model outputs are archived on this OSF repository.

Reproducibility

Model outputs

The model fitting cannot be reproduced on your personal computer as it requires important computing resources.

Here are the necessary steps to reproduce our analyses :

  1. Download the model output files (.rds) on this OSF repository.

  2. Put the model outputs in a folder that you should name "01_outputs_models".

  3. Put this folder as a subfolder in the outputs folder.

R packages versions

I used the renv package to contain each individual R package version within the project. If you wish to reproduce our results in your personal computer (excluding the model files that were run on Cedar), please refer to the official renv collaborating vignette to implemement the workflow on your personal computer.

About

Code and output files to produce the results from "Experience shapes individual foraging specialization and success in a virtual predator-prey system"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published