2023 Croucher foundation Climate Change and Marine Ecosystems summer course README
This repository provides the metadata for the several R codes and source data files provided by Bingzhang Chen as part of the summer course.
Bingzhang Chen
Bingzhang Chen is responsible for collecting the data and writing the R code.
All the codes are covered by the MIT license. Please see the LICENSE file for details.
All the codes are written in R 4.3.0.
-
Download the source code and data. The most updated code and data are available at https://github.com/BingzhangChen/Croucher2023.git which can be obtained either by using git clone or directly downloaded from Github. It is recommended that the student should go through each line to understand the code.
-
To run the NPZ model, run NPZ.R in R.
-
To run the linear model of MTE on the data of metabolism in Hatton et al. (2019), run MTE_LM.R in R.
-
To run the nonlinear model to estimate the Temperature Performance Curve (and thermal niche), run Topt_nls.R in R.
-
To run the artificial neural network on picophytoplankton abundances in the South China Sea, run neuralnet.R in R.
-
To run the random forest model on picophytoplankton abundances in the South China Sea, run RF.R in R.
-
Diversity_index.R provides functions for calculating several diversity indices including exponential Shannon index, Rao-Stirling index, and Leinster-Cobbold index.
-
Metabolism.csv: Raw data of metabolic rate ~ temperature of different groups of organisms in Hatton et al. (2019).
-
Corrected_Metabolism.Rdata: Metabolic rate data corrected by temperature by Hatton et al. (2019). Once this .Rdata file is loaded in R, a dataframe called w can be found with the column headings.
-
Merged_PHY.Rdata: merged data of phytoplankton growth rate ~ temperature from Chen and Laws (2017) and Kremer et al. (2017) with some additions. Once this .Rdata file is loaded in R, a dataframe called newdat can be found with the column headings.
-
SCS_Pico.Rdata: Chlorophyll and picophytoplankton abundance data in the South China Sea from Chen et al. (2020). Once this .Rdata file is loaded in R, a dataframe called np can be found with the column headings.
This work has been supported by both the Croucher Foundation and a Leverhulme Trust Research Project Grant (RPG-2020-389).
-
Chen, B., and E. A. Laws. 2017. Is there a difference of temperature sensitivity between marine phytoplankton and heterotrophs? Limnology and Oceanography 62:806--817.
-
Chen, B., H. Liu, W. Xiao, L. Wang, and B. Huang. 2020. A machine-learning approach to modeling picophytoplankton abundances in the South China Sea. Progress in Oceanography, 189:102456.
-
Hatton, I. A., A. P. Dobson, D. Storch, E. D. Galbraith, and M. Loreau. 2019. Linking scaling laws across eukaryotes. Proceedings of the National Academy of Sciences 116: 21616--21622. doi:10.1073/pnas.1900492116
-
Kremer, C. T., M. K. Thomas, and E. Litchman. 2017. Temperature- and size-scaling of phytoplankton population growth rates: Reconciling the Eppley curve and the metabolic theory of ecology. Limnology and Oceanography 62:1658--1670.