Loading...
Loading...
Contributors:
Dataset URI:
10.5281/zenodo.15054716Scripts and output files for the analyses of 'Threats to avian frugivores endanger seed dispersal function and natural restoration potential in the tropics'. Intermediary and results files, as well as figures, are saved in folders that describe the thresholds for frugivory (primary and occasional frugivores = 'frug30'; primary frugivores only = 'frug60') and IUCN threat score (all impacted = 'threat1'; highly impacted = 'threat6'). Note, as we do not own the BirdLife International range maps, users will have to regenerate the range map intersections themselves. We have included functions to do so, but this will take considerable time (potentially > 1 week if running intersections on a single core on a single machine). The final output should be a single csv file of a presence-absence matrix (1 = presence, 0 = absence), with column names as species names with underscores instead of spaces (e.g. 'Abeillia_abeillei') and the first column ('id_100km') the grid cell id. Once complete, alter the file paths in the appropriate scripts to the name and path to your finished intersections file. Intermediary output files that contain raw trait data will also need to be regenerated, but all other outputs are present. Datasets used and where to get them: Global grid: Global 100 x 100 km equal-area grid - available in 'data' folder (PEEB_grid_100km.gpkg) Base Map: Global Administrative Areas (2023). GADM database of Global Administrative Areas www.gadm.org Bird trait data: Tobias, J.A., Sheard, C., Pigot, A.L., Devenish, A.J.M., Yang, J., Sayol, F., et al. (2022) AVONET: morphological, ecological and geographical data for all birds. Ecology Letters, 25, 581–597. https://doi.org/10.1111/ele.13898. Available for download at https://figshare.com/s/b990722d72a26b5bfead Bird diet data: Sayol, F., Neate-Clegg, M., Sheard, C., Pigot, A.L., Tobias, J.A., 2026. AVONICHE: A global dataset of dietary and foraging niches for birds. Global Ecology and Biogeography 35, e70197. https://doi.org/10.1111/geb.70197. Available for download at https://doi.org/10.5061/dryad.1zcrjdg56. Note, this analysis used a pre-published version of the dataset - you may need to change the filename and column names to use the published versions, but the diet data is identical between the two versions. Bird range maps: BirdLife International and Handbook of the Birds of the World (2023) Bird species distribution maps of the world. Version 2023.1. Available at http://datazone.birdlife.org/species/requestdis Forest Restoration Potential Map: Cook-Patton, S.C., Leavitt, S.M., Gibbs, D. et al. Mapping carbon accumulation potential from global natural forest regrowth. Nature 585, 545–550 (2020). https://doi.org/10.1038/s41586-020-2686-x. Available from: https://data.globalforestwatch.org/documents/2b1e75c7d6274e448954178b3bc31bea/about Analysis pipeline 1. Bird distribution data (grid_intersections_rangemaps_single_species.R) Extracts presence/absence in approximately equal area (100 km x 100 km; PEEB_grid_100km.gpkg) grid cells for all bird species globally based on BirdLife International range maps. An example script to process a single species is included as part of this repository. To regenerate the results run for all species and then append together. In the analysis scripts the final file is assumed to be called "PEEB_grid_100km_birdlife_intersections.csv" and you will need to edit the path to the directory where this file is located. 2. Data checks and preparation (data_preparation.R) Initial filtering of AVONET bird trait dataset for frugivores, and harmonises names between IUCN and AVONET. Output: 'avonet_frug_data.csv' - data frame of AVONET trait data harmonised with BirdLife/IUCN taxonomy 3. Retrieve species threat scores from IUCN (processThreats.R) Retrieve threat magnitudes for every avian frugivore, calculate missing magnitude scores, and creates a dataframe with the maximum magnitude scores per threat for every species. Generates figures and tables summarising number of threatened species in different families and threat types. Outputs: 'frug_iucn.csv' - data frame summarising threats and IUCN statuses of frugivores 'avonet_frug_data_final.csv' - Final data frame merging IUCN threats and status with AVONET trait data Supplementary Figure 2 - Summary of IUCN threat scores 4. Calculate species trait values (define_functional_space.R) Calculate the functional position in a PCA for each species based on (jittered) trait data from AVONET. Outputs: "frug60_threat6/trait_pca_combined.csv", "frug60_threat6/trait_pca_combined.csv", "frug60_threat6/trait_pca_combined.csv" and "frug60_threat6/trait_pca_combined.csv" with PCA values of trait data for frugivore subsets "trait_pca_summary.csv" - summary of PCA axes values Supplementary Figure 22 - PCA biplots Supplementary Table 5 - PCA axis values 5. Generate cell values for number of threatened species (calc_threat_div.R) Calculate the richness of different threat and iucn status combinations for each grid cell. Outputs: Figure 1 "frug_div_grid_frug30_threat1.csv", "frug_div_grid_frug30_threat6.csv", "frug_div_grid_frug60_threat1.csv" and "frug_div_grid_frug60_threat6.csv" with number of species in each scenario in each grid cell Supplementary Figure 1 (maps of primary and occasional frugivore richness and no. threatened species) Supplementary Figures 4-6 (maps of no. of OE and HL impacted species) 6. Run simulations of frugivore defaunation and it's effects on functional traits (defaunation_simulation.R) Simulate the loss of species under the different species loss scenarios and compares the change in functional traits vs the change in functional traits in a random loss scenario. Outputs: RDS and csv files of simulation results for each species loss scenario 7. Generate maps of changes to functional richness and shift (plot_defaunation_sims.R) Generates maps of functional change under each defaunation scenario for all trait values (PCA values) and each trait individually. Outputs: Figure 2 Extended Data Figures 7-9 - z-score maps for other threshold scenarios Supplementary Figures 14-17 - Functional change for individual traits Statistical summaries of number of cells with z-scores >= 2 / <= -2 8. Summarise traits of species species pre- and post-defaunation (extract_species_lists.R) Extracts lists of species for cells post-defaunation, and generates density distributions of the traits under current and defaunation scenarios. Outputs: 'frug60_threat6/Defaunation/spLists_all_scenarios.csv', 'frug60_threat1/Defaunation/spLists_all_scenarios.csv', 'frug30_threat6/Defaunation/spLists_all_scenarios.csv', 'frug30_threat1/Defaunation/spLists_all_scenarios.csv' which contains species lists for each cell post-defaunation. Supplementary Figure 3 - Proportions of threatened species by taxonomic order Supplementary Figures 18-21 - Frequency and density plots of traits (current and post-defauntion) for each region 9. Plot maps of mean traits values under current and defaunation scenarios (plot_individual_traits.R) Generates maps of mean trait values for currently observed, and under each scenario. Also generates maps showing the differences from current means after defaunation. Outputs: Maps of median trait values (current and post-defaunation) Maps of difference in median trait values between current and post-defaunation SI Figures 10-13 - Maps of current median trait values and percentage change post-defunation Summary values of median trait values, and percentage change, per region Proportion of cells where >= 5 species originally, but < 3 species remaining post-defaunation 10. Intersection of defaunation scenarios and cells with forest restoration potential (analyse_restoration.R) Bins cells into low, medium and high values for functional changes to frugivore communities in the defaunation scenarios, and a map of forest restoration potential. Outputs: Figure 3 - Functional change/restoration for 60/6 Supplementary Figure 23 - Functional change/restoration for 30/6 Supplementary Data Tables 1-4 - prop. cells with low/med/high values for functional change/restoration Proportion of cells with med/high functional change/restoration potential
Keyword(s):
MeSH Term(s):
Grants and Funding:
No Grants or Funding Data Available
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
No Related Dataset Data Available
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)