Linking the metabolic rate of individuals to species ecology and life history in key Arctic copepods
收藏资源简介:
This folder contains data and code for the manuscript "Linking the metabolic rate of individuals to species ecology <br> and life history in key Arctic copepods" The first script to run is the "rolling regression and adding covariates to MR data.R", this will read in all the<br> files with oxygen measurements, dry weight, and species and life stage information. The code will fit and predict <br> estimates for each individual, calculate O2 from calibration data, subtract background respiration, run the rolling regression,<br> and add the covariates DW, species and life stage to the metabolic rate data, and write the resulting data fame to a .txt file. The second script "lme4 Analysis and figures 5 6 7.R" will read in the data from the first script. <br> Here the AMR RMR and aerobic scope is estimated by Density Estimation via Model-Based Clustering. <br> The resulting data is fitted with a mixed model 'lmer'. <br> The remaining part of the script make the predictions that are presented in the text of the manuscript<br> and that are shown in figure 5, 6, and 7. Further information is annotated in the scripts
本文件夹包含论文《关键北极桡足类物种的个体代谢速率与物种生态及生活史的关联》("Linking the metabolic rate of individuals to species ecology and life history in key Arctic copepods")的配套数据与代码。 需优先运行的首段脚本为`rolling regression and adding covariates to MR data.R`,该脚本将读取所有包含氧气测量值、干重(Dry Weight,DW)、物种及生活阶段信息的文件。代码将对每个个体完成拟合与预测估计,基于校准数据计算氧气浓度,扣除背景呼吸耗氧量,执行滚动回归分析,并将干重、物种及生活阶段作为协变量添加至代谢速率数据中,最终将生成的结果数据框写入.txt格式文件。 第二段脚本`lme4 Analysis and figures 5 6 7.R`将读取首段脚本生成的数据。在此脚本中,活动代谢率(Active Metabolic Rate,AMR)、静止代谢率(Resting Metabolic Rate,RMR)及有氧代谢范围将通过基于模型的聚类密度估计法完成估算。所得数据将使用线性混合效应模型`lmer`进行拟合。脚本的剩余部分将生成论文正文中呈现以及图5、6、7中展示的预测结果。脚本内部已对更多细节进行注释说明。



