This repository contains all the pertinent code and analysis of Buenafe et al. (submitted).
This project aims to:
- Describe historical larval distributions in the Indian and Pacific Oceans of 15 taxa from the boosted regression tree models built using digitized presence/absence Nishikawa et al. (1985) data (Buenafe et al., 2022) and historical environmental predictors (see Data below).
- Delineate potential drivers of larval distribution and hemispheric seasonality across these taxa.
- Identify larval hotspots that could correspond to potential spawning grounds for these species.
The repository hosts the subset of data used to generate the boosted regression tree models (in Data/), but the raw and complete data can be extracted from their original sources described in Data below.
The scripts are named sequentially. To rerun all the analyses, the user would have to go through all the scripts starting from scripts prefixed with 01_. This requires that the user downloads all necessary data from their original sources (see Data below).
Note that scripts prefixed with 00_ are preliminary scripts and are called within the subsequent scripts. Therefore, there is no need to run them independently.
01_: assembles all the predictors and creates seasonal data sets with the larval data.
To redo all analyses, make sure all the data are in their respective directories. To reproduce the climatology data, download Earth System Model outputs (see Data below) and run the processModels.sh and calculateOceanographicFeats.sh scripts in Climatology/. The assembled data frames with all the predictor data and species data are found in Output/CSV/.
02_through16_: generate models for all 15 taxa. Scripts prefixed witha_refer to assembling the necessary data to run the models.b_scripts are where the full model is built.c_scripts are where the model outputs are restricted to areas where confidence is higher.
To redo building the BRTs, make sure that the larval data (in .rds format) from (Buenafe et al., 2022) is in Data/Fish. Please also make sure that the crs for these files are in +proj=longlat +lon_0=180 +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 (see lines 14-15 of 00_SetupGrid.R). The files in this repository are reprojected files of (Buenafe et al., 2022).
Models are found in Output/Models/ and model predictions for each taxa are found in Output/Predictions/
-
17_: assembling model outputs across taxa and saving them as rasters, which can be accessed inOutput/FinalRaster -
18_: Principal Component Analysis to determine hotspots -
19_: plotting hemispheric seasonality -
20_: generating seasonal taxa richness maps -
21_: plotting model predictions vs predictors -
22_: calculating spatiotemporal dispersion
The digitized larval data are found in (Buenafe et al., 2022). The following species were included in this study:
- Yellowfin tuna
- Skipjack tuna
- Albacore
- Swordfish
- Blue marlin
- Frigate tuna
- Bigeye tuna
- Pacific bluefin tuna
- Sauries
- Sailfish
- Southern bluefin tuna
- Slender tuna
- Shortbill spearfish
- Striped marlin
- Longfin escolar
The historical environmental predictors were prepared from Coupled Model Intercomparison Project 6 (CMIP6) Earth System Models (https://esgf-node.llnl.gov/search/cmip6/). The ensembles used for each of the variables are subsets of the set of models found below.
We used (in parentheses are the CMIP6 codes for the climate variables):
- temperature (tos)
- oxygen (o2os)
- pH (phos)
- chlorophyll-a (chlos)
- salinity (sos)
- mixed layer thickness (mlotst)
- nitrate (no3os)
- phosphate (po4os)
- ammonium (nh4os)
- zonal velocity (uo)
- meridional velocity (vo)
Table 1. Set of models used.
| Model | Reference |
|---|---|
| ACCESS-ESM1-5 | Ziehn et al. (2019) |
| BCC-CSM2-MR | Wu et al. (2018) |
| CMCC-CM2-SR5 | Lovato et al. (2020) |
| CMCC-ESM2 | Lovato et al. (2021) |
| FGOALS-f3-L | Yu (2019) |
| FGOALS-g3 | Li (2019) |
| GFDL-CM4 | Guo et al. (2018) |
| GFDL-ESM4 | Krasting et al. (2018) |
| GISS-E2-1-G | NASA Goddard Institute for Space Studies (2018) |
| GISS-E2-1-H | NASA Goddard Institute for Space Studies (2018) |
| IPSL-CM5A2-INCA | Boucher et al. (2020) |
| MCM-UA-1-0 | Stouffer (2019) |
| MIROC-ES2L | Hajima et al. (2019) |
| MIROC6 | Tatebe & Watanabe (2018) |
| MPI-ESM1-2-HR | Jungclaus et al. (2019) |
| MRI-ESM2-0 | Yukimoto et al. (2019) |
| NorESM2-LM | Seland et al. (2019) |
The mean depth was calculated using The General Bathymetric Chart of the Oceans.
The AquaMaps data can be accessed in AquaMaps.