This repository contains all the data and code needed to reproduce the analyses of Rodríguez-León, D.S., Uzunov, A., Costa, C. et al. Deciphering the variation in cuticular hydrocarbon profiles of six European honey bee subspecies. BMC Ecol Evo 24, 131 (2024). https://doi.org/10.1186/s12862-024-02325-z.
The repository has been published under a CC BY 4.0 license in Figshare (https://doi.org/10.6084/m9.figshare.26831008.v1). Cite it as: Rodríguez-León, DS; Uzunov, Aleksandar; Costa, Cecilia; Elen, Dylan; Charistos, Leonidas; Galea, Thomas; et al. (2024). Deciphering the variation in cuticular hydrocarbon profiles of six European honey bee subspecies. figshare. Software. https://doi.org/10.6084/m9.figshare.26831008.v1
The repository corresponds to an R project repository that can be directly open in RStudio via the CHC-variation-in-EU-honey-bee-subspecies.Rproj file. This makes the R project portable, as the working directory is automatically set within RStudio to the folder of the repository.
This R project uses the package renv to create a reproducible environment.
To download and install all project's dependencies, use renv::restore()
the first time you open the R project in RStudio.
This will ensure you can run the code properly to reproduce the analyses of the study.
See https://rstudio.github.io/renv/ for more details on the usage of renv package.
samples_list.csv contains the samples metadata.
composition_data.csv contains the cuticular hydrocarbon composition data.
worldclim_tables.Rdata contains the climate data per country as downloaded from the WorldClim 2.1, via the code in the "worldclim_data.R" script.
analysis.R is the master script. It contains the code to replicate the entire set of analyses of the study. It also generates the figures for the manuscript, storing them in the folder "figs". The code in the script relies on the CHC-variation-in-EU-honey-bee-subspecies.Rproj to determine the working directory within RStudio.
The folder "scripts" contain R scripts with code that is needed for the analysis.R script to perform the analyses of the study.