Data and code from: Evidence for reductions in fungal richness and beta diversity dispersion associated with impervious surfaces in California
Data files
Oct 07, 2026 version files 609.83 MB
-
aspect.tif
2.90 MB
-
bio1.tif
2.76 MB
-
bio10.tif
2.71 MB
-
bio11.tif
2.86 MB
-
bio12.tif
2.86 MB
-
bio13.tif
2.65 MB
-
bio14.tif
1.30 MB
-
bio15.tif
2.69 MB
-
bio16.tif
2.81 MB
-
bio17.tif
2.11 MB
-
bio18.tif
2.30 MB
-
bio19.tif
2.80 MB
-
bio2.tif
2.67 MB
-
bio3.tif
2.64 MB
-
bio4.tif
2.74 MB
-
bio5.tif
2.65 MB
-
bio6.tif
2.76 MB
-
bio7.tif
2.67 MB
-
bio8.tif
2.87 MB
-
bio9.tif
2.71 MB
-
CA_2015.tif
52.62 MB
-
CA_2016.tif
52.74 MB
-
CA_2017.tif
52.92 MB
-
CA_2018.tif
53.08 MB
-
CA_2019.tif
53.22 MB
-
CA_2020.tif
53.37 MB
-
CA_2021.tif
53.63 MB
-
CA_2022.tif
53.94 MB
-
CA_2023.tif
54.28 MB
-
CA_2024.tif
54.66 MB
-
CA_State_3857.dbf
865 B
-
CA_State_3857.prj
425 B
-
CA_State_3857.shp
178.28 KB
-
CA_State_3857.shx
108 B
-
CA_State.cpg
5 B
-
CA_State.dbf
865 B
-
CA_State.prj
411 B
-
CA_State.sbn
132 B
-
CA_State.sbx
116 B
-
CA_State.shp
178.28 KB
-
CA_State.shp.xml
35.86 KB
-
CA_State.shx
108 B
-
elevation.tif
2.97 MB
-
Fungal_Diversityv3.R
20.17 KB
-
README.md
8.55 KB
-
slope.tif
3.03 MB
-
SoilBulkDensity.tif
2.70 MB
-
SoilClay.tif
2.83 MB
-
SoilOrganicCarbon.tif
2.75 MB
-
SoilPH.tif
2.67 MB
-
SoilSand.tif
2.76 MB
-
SoilWaterContent.tif
2.81 MB
Abstract
A large proportion of nutrient cycling and ecosystem services are supported by the activities of fungal communities. Though these communities have been comparatively understudied compared to more charismatic groups, there is a growing body of evidence that the structure of these communities is also impacted by urbanization. To investigate diversity patterns, we analyzed fungal occurrences recorded in California taken between 2015 and 2024. We investigated their differences in both richness and turnover by comparing communities sampled along a gradient of percent impervious coverage as a proxy for urbanization. We found evidence for a reduction in saprotrophic fungal richness for assemblages sampled from areas with higher levels of impervious coverage. We also found evidence that saprotrophic and symbiotrophic fungal assemblages tend to have reductions in beta diversity dispersion associated with a rise in impervious cover, potentially indicating an increase in biotic homogenization in more urbanized areas. In this study, we have demonstrated the potential use of processing large amounts of community science data to better understand the ecological responses of fungal communities against anthropogenic stresses.
Dataset DOI: 10.5061/dryad.ttdz08mdm
Description of the data and file structure
GBIF archival data for fungal occurrences were downloaded for California between 2015 and 2024. The source query being: https://doi.org/10.15468/dl.vv4pnu .
We obtained maps of the percent impervious coverage for the continental United States, from the NLCD, for the years 2015 through 2024 from https://www.mrlc.gov/data and clipped them to California.
We obtained climatic data from WorldClim via https://worldclim.org/data/worldclim21.html
Soil data were obtained from SoilGrids.org.
Both climatic data and soil data were clipped to California.
Files and variables
File: 0008960-260221153910048.zip
Description: Fungal occurrences
File: CA_2015.tif
Description: Impervious coverage for California in 2015.
File: CA_2016.tif
Description: Impervious coverage for California in 2016.
File: CA_2017.tif
Description: Impervious coverage for California in 2017.
File: CA_2018.tif
Description: Impervious coverage for California in 2018.
File: CA_2020.tif
Description: Impervious coverage for California in 2020.
File: CA_2019.tif
Description: Impervious coverage for California in 2019.
File: CA_2021.tif
Description: Impervious coverage for California in 2021.
File: CA_2022.tif
Description: Impervious coverage for California in 2022.
File: CA_2023.tif
Description: Impervious coverage for California in 2023.
File: CA_2024.tif
Description: Impervious coverage for California in 2023.
File: CA_State_3857.dbf
Description: California state boundary file.
File: CA_State_3857.prj
Description: California state boundary file.
File: CA_State_3857.shx
Description: California state boundary file.
File: CA_State.cpg
Description: California state boundary file.
File: CA_State.dbf
Description: California state boundary file.
File: CA_State.prj
Description: California state boundary file.
File: CA_State.sbn
Description: California state boundary file.
File: CA_State.sbx
Description: California state boundary file.
File: CA_State_3857.shp
Description: California state boundary file.
File: CA_State.shp.xml
Description: California state boundary file.
File: CA_State.shx
Description: California state boundary file.
File: CA_State.shp
Description: California state boundary file.
File: bio3.tif
Description: Climatic raster covering California.
File: aspect.tif
Description: Aspect raster covering California.
File: bio1.tif
Description: Climatic raster covering California.
File: bio2.tif
Description: Climatic raster covering California.
File: bio4.tif
Description: Climatic raster covering California.
File: bio5.tif
Description: Climatic raster covering California.
File: bio6.tif
Description: Climatic raster covering California.
File: bio7.tif
Description: Climatic raster covering California.
File: bio8.tif
Description: Climatic raster covering California.
File: bio9.tif
Description: Climatic raster covering California.
File: bio14.tif
Description: Climatic raster covering California.
File: bio11.tif
Description: Climatic raster covering California.
File: bio13.tif
Description: Climatic raster covering California.
File: bio10.tif
Description: Climatic raster covering California.
File: bio12.tif
Description: Climatic raster covering California.
File: bio17.tif
Description: Climatic raster covering California.
File: bio15.tif
Description: Climatic raster covering California.
File: bio16.tif
Description: Climatic raster covering California.
File: bio18.tif
Description: Climatic raster covering California.
File: bio19.tif
Description: Climatic raster covering California.
File: elevation.tif
Description: Elevation raster covering California.
File: SoilOrganicCarbon.tif
Description: Organic carbon content raster covering California.
File: SoilSand.tif
Description: Sand content raster covering California.
File: slope.tif
Description: Slope raster covering California.
File: SoilPH.tif
Description: Soil pH raster covering California.
File: SoilBulkDensity.tif
Description: Soil density raster covering California.
File: SoilClay.tif
Description: Clay content raster covering California.
File: SoilWaterContent.tif
Description: Soil water content raster covering California.
File: Fungal_Diversityv3.R
Description: Analysis script
Code/software
The following version of R and packages used are:
R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.5.2
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] geosphere_1.5-18 mgcv_1.8-41 nlme_3.1-162 soilDB_2.9.1
[5] caret_6.0-94 ggnewscale_0.5.2 viridis_0.6.5 viridisLite_0.4.3
[9] ape_5.7 ggplot2_4.0.2 vegan_2.6-4 lattice_0.22-6
[13] permute_0.9-7 iNEXT_3.0.2 terra_1.7-3 raster_3.6-14
[17] sp_2.1-4 tidyr_1.3.2 dplyr_1.2.1 sf_1.0-9
[21] data.table_1.15.4
loaded via a namespace (and not attached):
[1] jsonlite_2.0.0 splines_4.1.2 foreach_1.5.2 prodlim_2024.06.25
[5] S7_0.2.1 stats4_4.1.2 globals_0.16.3 ipred_0.9-15
[9] pillar_1.11.1 glue_1.8.1 pROC_1.18.5 digest_0.6.37
[13] RColorBrewer_1.1-3 hardhat_1.4.0 recipes_1.1.0 Matrix_1.4-1
[17] plyr_1.8.9 timeDate_4032.109 pkgconfig_2.0.3 listenv_0.9.1
[21] purrr_1.2.2 scales_1.4.0 gower_1.0.1 lava_1.8.0
[25] timechange_0.3.0 tibble_3.3.1 proxy_0.4-29 generics_0.1.4
[29] farver_2.1.2 withr_3.0.2 nnet_7.3-19 cli_3.6.6
[33] survival_3.7-0 magrittr_2.0.5 future_1.34.0 parallelly_1.38.0
[37] MASS_7.3-58.2 class_7.3-22 tools_4.1.2 lifecycle_1.0.5
[41] stringr_1.6.0 cluster_2.1.4 compiler_4.1.2 e1071_1.7-17
[45] rlang_1.2.0 classInt_0.4-9 units_0.8-1 grid_4.1.2
[49] iterators_1.0.14 rstudioapi_0.16.0 ModelMetrics_1.2.2.2 gtable_0.3.6
[53] codetools_0.2-20 curl_5.0.0 DBI_1.2.3 reshape2_1.4.4
[57] R6_2.6.1 gridExtra_2.3 lubridate_1.9.3 future.apply_1.11.2
[61] KernSmooth_2.23-20 stringi_1.8.7 parallel_4.1.2 Rcpp_1.1.1
[65] vctrs_0.7.3 rpart_4.1.23 tidyselect_1.2.1
The script Fungal_Diversityv3.R reads in fungal occurrence points, divides them into 1 square kilometer grid cells, and retains occurrences with at least a certain level of sample coverage per year and grid cell. Alpha and beta diversity analyses are run on these groups of occurrences, grouped by grid cell and year.
Environmental map layers are read in as tif files, reprojected and clipped to the boundaries of California, and filtered by collinearity. The retained layers and them used to associate environmental conditions to each group of fungal occurrences grouped by grid cell and year.
Access information
Other publicly accessible locations of the data:
Data was derived from the following sources:
Obtaining impervious coverage maps
Our proxy measure for urbanization in this study is the percent impervious coverage as recorded by the National Land Cover Database (NLCD), which measures the fraction of land area within a 30 m square pixel covered by surfaces impervious to water flow such as concrete or asphalt (Homer et al., 2007). We use this as a proxy for urbanization as it is associated with the use of impervious materials, which we expect to degrade the flow of nutrients through soil (Cambou et al., 2018; Lu et al., 2020), impacting fungal communities. We obtained maps of the percent impervious coverage for the continental United States, from the NLCD, for the years 2015 through 2024 from https://www.mrlc.gov/data. Each 30 m unit cell of these maps will hereafter be referred to as an imperviousness pixel. These maps were reprojected to the coordinate reference system (CRS) EPSG:3857 and clipped to the boundaries of California using the GDAL function gdalwarp (Rouault et al., 2023). The boundaries for California were obtained from the California Open Data Portal (https://data.ca.gov/dataset/ca-geographic-boundaries), and then reprojected to the CRS EPSG:3857 using the GDAL function ogr2ogr.
Obtaining additional environmental data
Additional environmental data were obtained from WorldClim (Fick & Hijmans, 2017) and SoilGrids (Hengl et al., 2017). WorldClim is a global repository of long-term climatic and elevation data at 30 arcsecond resolution, and was downloaded from https://worldclim.org/data/worldclim21.html. These map layers were reprojected to EPSG:3857 using the function project within the R package terra (Hijmans et al., 2023). These WorldClim layers were clipped to the boundaries of California. Slope and aspect were then calculated from elevation using the function terrain within terra.
SoilGrids contains global rasters, at 250 m resolution, of various soil conditions at various depths. Using Google Earth Engine (Gorelick et al., 2017) we downloaded the following environmental data for surface soils: bulk density, the clay content, organic carbon content, pH, sand content, and water content. These soil layers were clipped to the boundaries of California and resampled, using the terra function resample, to match the resolution of the WorldClim layers.
Obtaining and filtering fungal data
Fungal occurrence data were obtained from the Global Biodiversity Information Facility (GBIF) using the following filters: all fungi within California for the years 2015 through 2024 (GBIF, 2026). This initial data set contains 342,091 fungal occurrences. Of the initial 342,091 fungal occurrences 282,289 were derived from human observations, 1 from a living specimen, 12 from material citations, 55,090 from material samples, and 4,699 from preserved specimens. These occurrences were then filtered to only retain those with species-level assignments, reducing the data to 296,404 occurrences. A full description of all of the headers found in our zipped occurrence download data set are available here: https://techdocs.gbif.org/en/data-use/download-formats#simple .
These fungal occurrences were then associated with ecological guilds, specifically trophic modes, using FUNGuild (Ngyuen et al., 2016). The trophic mode assignments with a confidence ranking of ‘highly probable’ or ‘probable’ but which were ambiguous, that is those with multiple assigned categories such as ‘Pathotroph-Saprotroph-Symbiotroph’, were considered too ambiguous for meaningful ecological analyses and were not included in this analysis. Any occurrences with no assigned trophic mode, or without a ‘highly probably’ or ‘probable’ confidence ranking, were similarly removed from any analysis. This assignment process organized the remaining 179,892 occurrences into the following trophic modes: ‘symbiotroph’, ‘saprotroph’, and ‘pathotroph’ (Table 1 in associated manuscript).
To associate these fungal occurrences with an imperviousness pixel, we first split the occurrence data by year, then transformed them into a set of spatial data points in the CRS of EPSG:3857 using the functions st_as_sf and st_transform within the R package sf (Pebesma, 2018). Each occurrence was then associated with a unique imperviousness pixel using the function cellFromXY within the R package terra, which allowed for us to associate a unique identifier to each imperviousness pixel. The imperviousness pixel values were then associated with each occurrence using the terra function extract.
All fungal occurrences within a given year, trophic mode, and imperviousness pixel were, for the purposes of this study, treated as an assemblage. This approach does bin occurrences from a variety of collection events, seasons, sampling substrates and so on, so these collections of occurrences are only proxies for true biological assemblages. However, the binning of occurrences from GBIF into unit cells from years’ worth of data, has been used before at various spatial scales (Troia & McManamay, 2016; Lajeunesse & Fourcade, 2023; El-Gabbas, 2026).
Given the use of opportunistically collected data, we accounted for variations in sampling effort by retaining our putative assemblages based on coverage thresholds. To test for the potential impact of choosing a particular coverage threshold, we performed our analyses at 70 %, 80 %, and 90 % sample coverage thresholds This was done by first estimating sample coverage using the function DataInfo within the R package iNEXT (Hsieh et al., 2016). This filtering, between no coverage threshold and one of 90 %, reduced the number of putative fungal assemblages from 144,815 to 499, and the number of fungal occurrences used in this study to from 179,892 to 10,189 (Table 1).
Filtering and extracting environmental data
To determine if any of the environmental variables are collinear, we first stacked all of the environmental layers and sampled their values, using the terra function extract, using the locations of the set of fungal occurrences filtered by sample coverage. Correlations between these extracted vectors were then calculated using the base R function stats, with ‘use’ set to the value of ‘complete.obs’. This correlation matrix was passed to the function findCorrelation, within the R package caret (Kuhn et al., 2020), with a correlation threshold of 0.7. This identified environmental 8 layers (Table 2) which were collinear based on a Pearson correlation coefficient threshold of 0.7 (Barber et al., 2021). These environmental data were then extracted using the filtered set of fungal occurrences with the terra function extract.
Analyzing occurrence patterns
To test if the number of occurrences per assemblage and trophic mode varied significantly with either imperviousness or sample year, we first created a data frame containing the number of occurrences per assemblage, sample year, and imperviousness using the base R function table. This was done both before and after coverage-based filtering. We then tested how the number of occurrences per assemblage varied with both sample year and imperviousness using the base R functions lm and anova. We calculated the skewness of our distribution of imperviousness values, before and after filtering, using the value of three times the difference between the mean and median divided by the standard deviation.
To visualize the spatial distribution of these assemblages, and how they relate to imperviousness, we first summarized our imperviousness data by constructing an average imperviousness raster from our 2015 – 2024 data using the base R function mean on the stack of our imperviousness rasters. We plotted this averaged map layer using the ggplot2 function geom_raster, with the location of fungal assemblages then plotted on top using the ggplot2 function geom_point.
Alpha diversity analysis
As our occurrence data are opportunistically assembled the sampling regime is effectively uneven across space and time. To be able to compare fungal richness between sampled locations over time one may rarefy the occurrence data, although that would involve filtering out even more data. To better enable comparisons of alpha diversity taken between impervious coverage pixels and years, we estimated species richness using a method based on tracking the asymptotic behavior of richness versus sampling effort. This estimated species richness, our measure of alpha diversity, was calculated for each putative fungal assemblage using the function iNEXT within the R package iNEXT (Hsieh et al., 2016), with q (The Hill number) set to zero, the datatype set to abundance, and default settings otherwise. As our occurrence data were collected opportunistically, we have assumed an undercounting of rare species, so a q value of zero was selected to give equal weight to rare species in our estimations of richness. All of the estimated fungal species richness values, the imperviousness and environmental conditions they’re associated with, and the year they were sampled were then aggregated into separate data sets for each trophic mode.
To visualize any potential trends between estimated fungal richness and log-transformed imperviousness we used the function geom_point within the R package ggplot2, along with a linear model overlaid using the ggplot2 function geom_smooth (Wickham, 2016). To test if fungal richness within each trophic mode was significantly influenced by imperviousness, sample year, or other environmental conditions, we constructed a set of linear models of richness using all of those variables with the base R function lm and evaluated them with the base R function summary.
Given the large proportion of assemblages found in areas with no impervious coverage, we also conducted tests comparing fungal richness within each trophic mode between areas with and without any impervious cover. These tests were conducted using a one-sided Wilcoxon rank-sum test using the base R function wilcox.text. The distributions of fungal richness between areas with and without any impervious coverage were visualized using the ggplot2 function geom_boxplot.
Beta diversity analysis
Fungal occurrence data were filtered by sample coverage, split by trophic mode and sample year, and converted into a presence/absence matrix with the rows describing putative assemblages and columns the names of unique species. The beta diversity distance matrix for each fungal occurrence subset was then calculated using the function vegdist, within the R package vegan (Oksanen et al., 2022), with the method selected as Jaccard and binary set to true.
To visualize the first two principal components of beta diversity, for each trophic mode, we ran the base R function cmdscale, with k set to 2, on our beta diversity distance matrices. These points were plotted, along with the percent variation attributed to the first two principal component axes, using the ggplot2 function geom_point. Principal component plots were generated for assemblages from each trophic mode, and then colored by imperviousness.
Geographic distances between assemblages were determined using the function distm, within the R package geosphere (Hijmans et al., 2017), with the distance function set to ‘distHaversine’. The locations of each assemblage were set as the centroids of the imperviousness pixels, as determined from the terra function xyFromCell. To find potential correlations between beta diversity and geographic distances Mantel tests were run using the vegan function mantel, with 999 permutations and method set to ‘spearman’.
The amount, and significance, of the contributions of log-transformed imperviousness, environmental conditions, geographic location, and year to variations in beta diversity for each trophic mode were calculated using the vegan function adonis2 with 999 permutations and the method set to jaccard. Geographic location, specifically assemblage latitude and longitude, were included as Mantel tests did show significant correlations between beta diversity and geographic distance (Table S1).
The dispersion of each beta diversity distance matrix was calculated, using the vegan function betadisper as the distance to the centroid of each group of assemblages grouped by trophic mode and year. To visualize potential trends in beta diversity dispersion against imperviousness we used the ggplot2 function geom_point, with a linear fit overlaid using the base R function lm. Using the base R function lm and summary we then tested if fungal beta diversity dispersion, split by trophic mode, was significantly influenced by imperviousness, sample year, or other environmental conditions.
As our distribution of impervious coverage values were heavily skewed toward zero, we also conducted tests comparing fungal beta diversity dispersion for each trophic mode between areas with and without any impervious cover. These tests were conducted using a one-sided Wilcoxon rank-sum test using the base R function wilcox.text. Using the ggplot2 function geom_boxplot we then visualized the distributions of fungal beta diversity dispersion for each trophic mode between areas with and without any impervious coverage.
References
Barber, R. A., S. G. Ball, R. K. A. Morris, and F. Gilbert. 2022. “Target-Group Backgrounds Prove Effective at Correcting Sampling Bias in Maxent Models.” Diversity and Distributions 28, no. 1: 128–141.
Cambou, A., R. K. Shaw, H. Huot, et al. 2018. “Estimation of Soil Organic Carbon Stocks of Two Cities, New York City and Paris.” Sci Total Environ 644: 452–464.
El-Gabbas, A. 2026. “A Global, Taxon-Stratified, High-Resolution Sampling-Effort Dataset From GBIF for Bias-Aware Ecological Modelling.” Diversity and Distributions 32, no. 5: e70205.
Fick, S. E., and R. J. Hijmans. 2017. “WorldClim 2: New 1-Km Spatial Resolution Climate Surfaces for Global Land Areas.” International Journal of Climatology 37, no. 12: 4302–4315.
GBIF.org. 2026. “GBIF Occurrence Download.” https://doi.org/10.15468/dl.vv4pnu.
Gorelick, N., M. Hancher, M. Dixon, S. Ilyushchenko, D. Thau, and R. Moore. 2017. “Google Earth Engine: Planetary-Scale Geospatial Analysis for Everyone.” Remote Sensing of Environment 202: 18–27.
Hengl, T., J. Mendes de Jesus, G. B. M. Heuvelink, et al. 2017. “SoilGrids250m: Global Gridded Soil Information Based on Machine Learning.” PLoS One 12, no. 2: e0169748.
Hijmans, R. J. 2017. “Package “geosphere”.” Spherical Trigonometry 1, no. 7: 1–45.
Hijmans, R. J. 2023. “ ‘Terra [R Package]’, R Programming Language”.
Homer, C. 2015. “Completion of the 2011 National Land Cover Database for the Conterminous United States–Representing a Decade of Land Cover Change Information.” Photogrammetric Engineering and Remote Sensing 81, no. 5: 345–354.
Hsieh, T. C., K. Ma, and A. Chao. 2016. “iNEXT: An R Package for Rarefaction and Extrapolation of Species Diversity (H Ill Numbers).” Methods in Ecology and Evolution 7, no. 12: 1451–1456.
Kuhn, M. 2020. “Package “Caret”.” R Journal 223, no. 7: 48.
Lajeunesse, A., and Y. Fourcade. 2023. “Temporal Analysis of GBIF Data Reveals the Restructuring of Communities Following Climate Change.” Journal of Animal Ecology 92, no. 2: 391–402.
Lu, C., D. J. Kotze, and H. M. Setälä. 2020. “Soil Sealing Causes Substantial Losses in C and N Storage in Urban Soils Under Cool Climate.” Sci Total Environ 725: 138369.
Nguyen, N. H., Z. Song, S. T. Bates, et al. 2016. “FUNGuild: An Open Annotation Tool for Parsing Fungal Community Datasets by Ecological Guild.” Fungal Ecology 20: 241–248.
Oksanen, J. 2022. Vegan: Community Ecology Package, Version 2.6-4. 2022.
Pebesma, E. J. 2018. “Simple Features for R: Standardized Support for Spatial Vector Data.” R Journal 10, no. 1: 439.
Rouault, E. 2023. “‘Gdal’, Zenodo.Ruas, R. D. B., Costa, L. M. S. And Bered, F. (2022) ‘Urbanization Driving Changes in Plant Species and Communities—A Global View.” Global Ecology and Conservation 38: e02243.
Troia, M. J., and R. A. McManamay. 2016. “Filling in the GAPS: Evaluating Completeness and Coverage of Open-Access Biodiversity Databases in the United States.” Ecology and Evolution 6, no. 14: 4654–4669.
Wickham, H., W. Chang, and M. H. Wickham. 2016. Package ggplot2 Create Elegant Data Visualisations Using the Grammar of Graphics; Version 2. 2016.
