This repository contains the code associated with the paper:
Leho Tedersoo, Vladimir Mikryukov, Alexander Zizka, Mohammad Bahram, Niloufar Hagh-Doust, Sten Anslan, Oleh Prylutskyi, Manuel Delgado-Baquerizo, Fernando T. Maestre, Jaan Pärn, Maarja Öpik, Mari Moora, Martin Zobel, Mikk Espenberg, Ülo Mander, Abdul Nasir Khalid, Adriana Corrales, Ahto Agan, Aída-M. Vasco-Palacios, Alessandro Saitta, Andrea C. Rinaldi, Annemieke Verbeken, Bobby P. Sulistyo, Boris Tamgnoue, Brendan Furneaux, Camila Duarte Ritter, Casper Nyamukondiwa, Cathy Sharp, César Marín, Daniyal Gohar, Darta Klavina, Dipon Sharmah, Dong Qin Dai, Eduardo Nouhra, Elisabeth Machteld Biersma, Elisabeth Rähn, Erin K. Cameron, Eske De Crop, Eveli Otsing, Evgeny A. Davydov, Felipe E. Albornoz, Francis Q. Brearley, Franz Buegger, Geoffrey Zahn, Gregory Bonito, Inga Hiiesalu, Isabel C. Barrio, Jacob Heilmann-Clausen, Jelena Ankuda, John Y. Kupagme, Jose G. Maciá-Vicente, Joseph Djeugap Fovo, József Geml, Juha M. Alatalo, Julieta Alvarez-Manjarrez, Kadri Põldmaa, Kadri Runnel, Kalev Adamson, Kari Anne Bråthen, Karin Pritsch, Kassim I. Tchan, Kęstutis Armolaitis, Kevin D. Hyde, Kevin K. Newsham, Kristel Panksep, Adebola A. Lateef, Liis Tiirmann, Linda Hansson, Louis J. Lamit, Malka Saba, Maria Tuomi, Marieka Gryzenhout, Marijn Bauters, Meike Piepenbring, Nalin Wijayawardene, Nourou S. Yorou, Olavi Kurina, Peter E. Mortimer, Peter Meidl, Petr Kohout, R. Henrik Nilsson, Rasmus Puusepp, Rein Drenkhan, Roberto Garibay-Orijel, Roberto Godoy, Saad Alkahtani, Saleh Rahimlou, Sergey V. Dudov, Sergei Põlme, Soumya Ghosh, Sunil Mundra, Talaat Ahmed, Tarquin Netherway, Terry W. Henkel, Tomas Roslin, Vincent Nteziryayo, Vladimir E. Fedosov, Vladimir G. Onipchenko, W. A. Erandi Yasanthika, Young Woon Lim, Nadejda A. Soudzilovskaia, Alexandre Antonelli, Urmas Kõljalg, Kessy Abarenkov (2022) Global patterns in endemicity and vulnerability of soil fungi // Global Change Biology, DOI:10.1111/gcb.16398
The dataset is composed of the Global Soil Mycobiome consortium (GSMc) open dataset (Tedersoo et al., 2021) with materials from five other global soil biological surveys – BIODESERT (Maestre et al., 2022), MUSGONET (including the natural sites in Delgado-Baquerizo et al., 2021), CLIMIFUN (Bastida et al., 2021), GlobalAM (Davison et al., 2021), GlobalWetlands (Bahram et al., 2022), and Sanger sequence data from soil-inhabiting fungi obtained from the UNITE database (Nilsson et al., 2019) covering GenBank.
Script file | Description |
---|---|
bin/Vulnerability_script.R |
Vulnerability indices estimation |
bin/Vulnerability_script_map.R |
Vulnerability model fitting (LM and GAM), spatial prediction |
bin/Diversity_residuals.R |
Estimate diversity residuals on a grid |
bin/LUH_cumsum_script_parallel.R |
Estimate the cumulative sum of land cover transitions |
bin/RasterModel_MergeResids_on_HPC.R |
Merging the residuals into a single raster and creation of co-kriging map |
bin/Vulnerability_script_averaging.R |
Vulnerability averaging (ordinary and correlation-weighted) |
bin/Vulnerability_script_averaging_cokrig.R |
Estimation and plotting the average vulnerability |
bin/Vulnerability_script_averaging_SE.R |
Estimation of the standard errors for averaged vulnerability using Burnaham and Anderson formula |
bin/Vulnerability_script_PlotT2_cokrig.R |
Plotting the t2 vulnerability index |
Please find the usage instructions in the bin
directory.
Script file | Description |
---|---|
01_generate_superecoregions.R |
Superecoregion preparation |
02_remove_problematic samples_and_check_input.R |
Removal of problematic samples |
03_identify_superecoregions_without_samples.R |
Identification of unsampled ecoregions |
04_plot_superecoregions_and_samples_per_superregion.R |
Data visualization |
05_get_maximum_distance_among_OTU_instances.R |
Estimation of the maximum distance among OTU occurrences |
06_OTU_diversity_metrics.R |
Diversity metrics (Richness, Jaccard and Beta-sim indices) |
06b_OTU_diversity_metrics_jaccard_cluster.R |
Jaccard turnover (on HPC) |
07_prepare_superregion_meta.R |
Polygon validation and metadata preparation |
08_plot_superregion_stats.R |
Visualization of superecoregions |
09_crisp_and_prop_endemics_for_all_groups.R |
Endemism estimation (Crisp index and proportion of endemics) |
10_map_endemicity_metrics.R |
Visualization of endemicity metrics |
The usage instruction is available in the superecoregions_and_endemicity
directory.
Script file | Description |
---|---|
R/ASINH_Precipitation.R |
Precipitation transformation (negative of inverse hyperbolic sine) |
R
>= v.4.1.0 (R Core Team, 2022)raster
>= v.3.5 (Hijmans, 2022)sp
>= v.1.2 (Pebesma, Bivand, 2005)sf
>= v.1.0-8 (Pebesma, 2018)gstat
>= v.2.0 (Pebesma, 2004)mgcv
>= v.1.8 (Wood, 2011)gratia
>= v.0.7.3 (Simpson, 2022)vuln
>= v.0.0.05-2019-09-18 (Smith et al., 2019; doi:10.1111/jbi.13719)ecole
>= 0.8-2021 (Smith, 2021)data.table
>= v.1.14.0 (Dowle, Srinivasan, 2021)plyr
v.1.8.6 (Wickham, 2011)ncdf4
>= v.1.19 (Pierce, 2021)betapart
(Baselga, Orme, 2012; doi:10.1111/j.2041-210X.2012.00224.x)geosphere
(Hijmans et al., 2021)tidyverse
(Wickham et al., 2019; doi:{10.21105/joss.01686)readxl
(Wickham and Bryan, 2022)rnaturalearth
(South, 2022)viridis
(Garnier et al., 2021; doi:10.5281/zenodo.4679424)
Gridded maps are available at Zenodo DOI:10.5281/zenodo.6983158 and DOI:10.5281/zenodo.7027315.
The code of bioinformatic analyses is deposited in the GSMc repository and fungal DNA sequences are available from the PlutoF data repository (DOI:10.15156/BIO/2263453).
The bulk of the funding is derived from the Estonian Science Foundation (grants PRG632, PRG1170, PRG1615, MOBTP198), EEA Financial Mechanism Baltic Research Programme (EMP442) and Novo Nordisk Fonden (NNF20OC0059948).
Tedersoo et al. (2022), Global patterns in endemicity and vulnerability of soil fungi. Glob Change Biol. DOI:10.1111/gcb.16398