Code for characterizing bird arrival and breeding phenology.
Associated publications:
Youngflesh, C., Socolar, J., Amaral, B.R., Arab, A., Guralnick, R.P., Hurlbert, A.H., LaFrance, R., Mayor, S.J., Miller, D.A.W., Tingley, M.W. 2021. Migratory strategy drives species-level variation in bird sensitivity to vegetation green-up. Nature Ecology and Evolution
Repository structure:
-
Data/
- Datasets relevant for projecteBird_species_list.txt
- initial list of species to be queriedIAR_species_list.txt
- list of species to be modeled using IARarr_species_list.txt
- list of species to quantify breeding phenologyspecies_reference.csv
- table of taxonomic information for species of interestdb_pass.txt
(ignored) - database passwordhex_grid_crop
- .shp files for cells over study areaBirdLife_range_maps/
(ignored) - range maps for birds from BirdLife InternationalProcessed/
(ignored) - data that have undergone processingarrival_GAM_<DATE>
- model output from2-arr-GAM.R
arrival_master_<DATE>
- output from5-extract-arr-dates.R
breeding_GAM_<DATE>
- model output from8-br-GAM.R
breeding_master_<DATE>
- output from9-process-br-output.R
eBird_arrival_query_<DATE>
- output from1-query-ebird.R
eBird_breeding_query_<DATE>
- output from6-query-nesting-data.R
IAR_input_<DATE>
- output from3-process-arr-output.R
IAR_output_<DATE>
- output from4-arr-IAR_hm.R
juv_GAM_<DATE>
- model output from7-juv-GAM.R
juv_master_<DATE>
- output from9-process-juv-output.R
-
Scripts/
- scripts to run analyses1-query-ebird.R
- query eBird database for arrival2-arr-GAM/
2-arr-GAM.R
- R script to fit GAM models to estimate bird arrival for each species/cell/year. Takes species argument (run from2-<Genus_species>.sh
scripts)2-create-batch-scripts.sh
- script to create scripts (2-<Genus_species>.sh
) for HPC job submission2-master-submit.sh
- script to be run (./2-master-submit.sh
) on HPC cluster to submit all halfmax arr jobsspecies/
- contains job scripts for each species2-<Genus_species>.sh
- scripts to submit jobs for each species; run with2-master-submit.sh
3-process-arr-output.R
- process model output from2-arr-GAM.R
, in prep for4-IAR-arr-hm.R
4-IAR-arr-hm/
- [run time: up to 3 weeks?]4-IAR-arr-hm.R
- fit arrival dates using IAR model to derive arrival date estimates (one model per species)4-create-batch-scripts.sh
- script to create scripts (4-<Genus_species>.sh
) for HPC job submission4-master-submit.sh
- script to be run (./4-master-submit.sh
) on HPC cluster to submit all jobsspecies/
- contains job scripts for each species4-<Genus_species>.sh
- scripts to submit jobs for each species; run with4-master-submit.sh
5-extract-arr-dates.R
- extract arrival dates for each species-cell-year from4-IAR-arr-hm.R
output6-query-nesting-data.R
- query nesting data7-juv-GAM/
- halfmax model for fledging dates (derived from MAPS data)7-juv-GAM.R
- R script to fit GAM models to estimate bird fledging date (from MAPS data) for each species/cell/year. Takes species argument (run from7-<Genus_species>.sh
scripts)7-create-batch-scripts.sh
- script to create scripts (7-<Genus_species>.sh
) for HPC job submission7-master-submit.sh
- script to be run (./7-master-submit.sh
) on HPC cluster to submit all halfmax juv jobsspecies/
- contains job scripts for each species7-<Genus_species>.sh
- scripts to submit jobs for each species; run with7-master-submit.sh
8-br-GAM/
- halfmax model for breeding dates (derived from eBird breeding codes)8a-query-Nestwatch.R
- script to query Nestwatch data for breeding phenology8b-analyze-Nestwatch.R
- script to analyze Nestwatch data and imput breeding windows8-halfmax-br.R
- R script to fit GAM models to estimate bird breeding date (from eBird breeding codes) for each species/cell/year. Takes species argument (run from8-<Genus_species>.sh
scripts)8-create-batch-scripts.sh
- script to create scripts (8-<Genus_species>.sh
) for HPC job submission8-master-submit.sh
- script to be run (./8-master-submit.sh
) on HPC cluster to submit all jobsspecies/
- contains job scripts for each species8-<Genus_species>.sh
- scripts to submit jobs for each species; run with8-master-submit.sh
9-process-juv-br-output/
- process br and juv halfmax results9-process-juv-output.R
- process model output from7-juv-GAM.R
9-process-br-output.R
- process model output from8-br-GAM.R
Other/
10-bj-IAR-hm
10-bj-IAR-hm.R
- fit breeding dates using IAR model (both eBird- and MAPS-derived dates)10-create-batch-scripts.sh
- script to create scripts (10-<Genus_species>.sh
) for HPC job submission10-master-submit.sh
- script to be run (./10-master-submit.sh
) on HPC cluster to submit all jobsspecies/
- contains job scripts for each species10-<Genus_species>.sh
- scripts to submit jobs for each species; run with10-master-submit.sh
10-br-IAR-hm
10-br-IAR-hm.R
- fit breeding dates using IAR model (just eBird-derived dates)10-create-batch-scripts.sh
- script to create scripts (10-<Genus_species>.sh
) for HPC job submission10-master-submit.sh
- script to be run (./10-master-submit.sh
) on HPC cluster to submit all jobsspecies/
- contains job scripts for each species10-<Genus_species>.sh
- scripts to submit jobs for each species; run with10-master-submit.sh
11-process-bj-output.R
- processing output from10-bj-IAR-hm.R
11-process-br-output.R
- processing output from10-br-IAR-hm.R
12-master-pheno-process.R
- produce master phenology data object
-
Figures/
(ignored)