This archive contains all scripts and data necessary to replicate the analyses and results presented in the paper. The archive includes an R-project file named PlantNutriCont_SNP.Rproj. This project is configured with a renv environment to ensure version control of all R-packages used in the analysis. All analyses were conducted using R version 4.4.1.
The folder named "data" contains all datasets required for the analysis.
The folder named "RScript" contains two R scripts. The first script, Main_PlantNutrientContent.R, is the primary script used to run the analysis. The second script, Module_Trait-flex.R, is a supporting module that will be loaded automatically when running the main script.
To reproduce the results:
Open the project file PlantNutriCont_SNP.Rproj in RStudio.
In the RStudio file viewer, open Main_PlantNutrientContent.R.
Run the script to generate the results and figures described in the paper.