- BibTeX Style 76%
- TeX 18%
- R 6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Deleted the custom Science extension and its associated files, including configuration, LaTeX header, citation style, Lua filter, and bibliography style. Updated _quarto.yml and main.qmd to remove references to the extension, and added main.rmarkdown for migration or compatibility. |
||
| _extensions/nature | ||
| data/derived | ||
| renv | ||
| .gitignore | ||
| .Rprofile | ||
| _preprocessing.qmd | ||
| _quarto.yml | ||
| _supplementary_materials.qmd | ||
| LICENSE | ||
| main.qmd | ||
| main.rmarkdown | ||
| preprocessing.qmd | ||
| README.md | ||
| references.bib | ||
| renv.lock | ||
| rice.Rproj | ||
Analysis Code for "Projected Warming Will Exceed the Long-Term Thermal Limits of Rice Cultivation"
This repository contains the R notebooks used for the analysis presented in the manuscript "Projected Warming Will Exceed the Long-Term Thermal Limits of Rice Cultivation."
Click here for a fully rendered version of the manuscript.
Repository Structure
Main Analysis: main.qmd
The main notebook contains:
- Complete manuscript text with embedded analysis
- All main and supplementary figures and tables
- Online methods section
- This is the primary file to run - it reproduces all results using preprocessed data included in the repository
Data Preprocessing: preprocessing.qmd
The preprocessing notebook is provided for reference and transparency but is not intended to be run as it requires:
- Hundreds of GB of raw climate data (CHELSA-TraCE21k, CMIP6 ensembles)
- Access to external data repositories and cloud storage
- Significant computational resources and time
All necessary intermediate datasets are provided in data/derived/ for the main analysis.
Genetic Analysis
Code for the genetic offset analysis is available at this separate repository.
System Requirements
Software Dependencies
- R (version 4.3.3 and above)
- RStudio (recommended for working with Quarto notebooks)
- See the relevant notebooks for information on the specific R packages and versions employed.
Operating Systems
- Tested on macOS Sonoma, but should work on Windows and Linux systems as well.
Hardware
- No special hardware required - the main analysis can be reproduced on a standard laptop computer
- The preprocessing workflow (not included for reproduction) required high-performance computing resources to handle hundreds of GB of climate data
Installation Guide
Prerequisites
Ensure that you have R and RStudio installed on your machine. You can download them from:
Installation Steps
- Clone this repository to your local machine using:
git clone https://github.com/nick-gauthier/rice - Open RStudio and select the
rice.rprojfile from this folder.
Typical Installation Time
Installation time is primarily the time taken to install R and RStudio, which typically takes about 5-10 minutes depending on your internet connection.
Instructions for Use
To Reproduce the Main Analysis
- Open the
main.qmdfile in RStudio - Install required R packages (they will be loaded automatically when you run the notebook)
- Click the "Render" button in RStudio to generate the complete manuscript with embedded figures and analysis
Expected Output
- A complete HTML/PDF manuscript with all computational results, figures, and tables
- All main text figures (1-6) and supplementary figures (S1-S9)
- All tables including supplementary tables
Expected Time to Run
- Approximately 5-10 minutes to reproduce the complete analysis and generate all figures
- No large data downloads required - all preprocessed data is included in the repository
Note on Preprocessing
- Do not attempt to run
preprocessing.qmd- it requires access to hundreds of GB of external climate datasets - This file is provided for methodological transparency and to document the data processing pipeline
- All outputs from preprocessing are already provided in
data/derived/
For any issues or further inquiries, please open an issue in this repository.