It is important to easily and efficiently obtain high quality species distribution data for predicting the potential distribution of species using species distribution models (SDMs). There is a need for a powerful software tool to automatically or semi-automatically assist in identifying and correcting errors. Here, we use Python to develop a web-based software tool (SDMdata) to easily collect occurrence data from the Global Biodiversity Information Facility (GBIF) and check species names and the accuracy of coordinates (latitude and longitude). It is an open source software (GNU Affero General Public License/AGPL licensed) allowing anyone to access and manipulate the source code. SDMdata is available online free of charge from <http://www.sdmserialsoftware.org/sdmdata/>.
Citation: Kong X, Huang M, Duan R (2015) SDMdata: A Web-Based Software Tool for Collecting Species Occurrence Records. PLoS ONE 10(6): e0128295. https://doi.org/10.1371/journal.pone.0128295
Academic Editor: Jonathan H. Badger, J. Craig Venter Institute, UNITED STATES
Received: September 23, 2014; Accepted: April 24, 2015; Published: June 1, 2015
Copyright: © 2015 Kong et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Data Availability: All relevant data are within the paper and its Supporting Information files.
Funding: This work was supported by the National Natural Science Foundation of China (31100311, 31300342) and China Postdoctoral Science Foundation (2014M561683).
Competing interests: The authors have declared that no competing interests exist.
Species occurrence records are very important for building species distribution models (SDMs) for use in assessing the potential niches of species , testing conservation applications, evolutionary and biogeographical hypotheses [2–4], projecting species invasion risk and proliferation , assessing the impact of climate change, land use, urbanization and other environmental changes [6–8], suggesting potential suitable sites for rare species , and supporting appropriate conservation planning and reserve selection .
The majority of species distribution data sets come from databases, museums, herbaria, and field workers . Among these, the Global Biodiversity Information Facility (GBIF; http://www.gbif.rog/) is the largest provider of species distribution records, with a web-based API (Application Programming Interface) to help users efficiently fetch data. GBIF’s API is program-oriented, and several software packages provide functions to help users connect to it. For example, rgbif is a small, open source package linking to GBIF based on R language . However, using R language consumes a large amount of memory, and some users are not familiar with this sometimes idiosyncratic language. Another software providing GBIF API function is modestR. ModestR is a powerful and fully-stacked software to download, import and clean species distribution records . ModestR is a huge software package (the size is more than 4.6GB in the latest version) written in C# language that can only be used in a Windows operating system in the current version, which limits its application.
SDMdata is designed for researchers to collect occurrence data from GBIF. After users import a file containing a list of species names, SDMdata will check the accuracy of species names against the GBIF database. The program will only proceed to collect species occurrence records if all of the species names are correct. After the collection job is complete, users can choose to do a check on the records to determine whether the coordinates have potential errors. See Fig 1 for whole system structures. SDMdata has some advantages over other software packages including: 1) SDMdata is based on Python, and thus has all the advantages of Python including high-performance and lower memory consumption. 2) The basic workflow of SDMdata is very easy, similar to the online submission system of academic periodicals, familiar to researchers. 3) SDMdata is web-based, meaning that users can access SDMdata from a web browser on any computer without any additional setup. 4) SDMdata has a user-friendly interface such that it can be used on many platforms (different operating systems) and many devices (e.g. desktop computer, tablet computer, or even a mobile phone). 5) SDMdata is released under an AGPL (GNU Affero General Public License) license. It is open source meaning that it is not only free to use, but its full source code is also freely accessible.
The Basic Workflow of SDMdata
SDMdata has six basic steps within its workflow: 1) uploading a CSV file, 2) cleaning up, checking the species list, and importing the species list into the database, 3) checking the species name with GBIF, 4) collecting species occurrence data, 5) cross-checking occurrence data, and 6) exporting occurrence data (Fig 2). Steps 3–5 are somewhat complicated, and are described below in detail.
Checking Species Names with GBIF
Inputting species names is the first critical step to obtain species distribution information from species-occurrence databases. However, most ecologists and biogeographers have not completely mastered taxonomic knowledge, especially when many species are needed, and there may be some errors in species names (e.g. formatting errors or misspellings), which leads to problems in obtaining species information. SDMdata provides a function to check and extend species name information by using GBIF’s backbone taxonomy as the backend database (S1 Appendix). GBIF’s backbone taxonomy, often called the Nub taxonomy, is the largest species taxonomy database with a single synthetic management classification with the goal of covering all names in GBIF. It checks species names first, before the software collects the occurrence record, with two steps: 1) It checks whether users inputted incorrect species names (e.g. wrong spelling, changed species name). This is a common problem when researchers are dealing with tens of thousands of species. 2) It enhances species names with complete taxonomic information (including kingdom, phylum, class, order, family and genus). This is always useful in comparing the distribution of taxa (Fig 3).
Collecting Species Occurrence Data
The core function of SDMdata is to fetch species occurrence points. This is the common function in similar software (e.g. rgbif, modestR), but SDMdata improves upon these with an independent daemon program. GBIF provides a web-based API to fetch occurrence points. It is easily impacted by the network and problems with DNS (Domain Name Service) or the network connection. This becomes important when data must be fetched for a long time without a break. All key functions of SDMdata (including checking species name, fetching occurrence records and crossing-checking) are written in an independent daemon program. All key functions have break-point memory protection. This means that it does not matter if the function is stopped at any time, and the software will simply finish the process upon restarting. This is useful when the user needs to stop the process or the network connection encounters a problem. All of the key functions are saved, meaning that an unexpected software or operating system crash or other fatal error will not prevent the software from completing its task.
Cross-checking Occurrence Data
Many occurrence records from observational data, survey data, as well as museum and herbarium data, have little geographic information or inaccurate geographic coordinates (latitude and longitude). Data errors are common and error rates can be up to 1~5% . For data to meet the needs of users, error detection, validation and cleaning are essential parts of the data management process to improve data validation and correctness . The two major errors in species occurrence points are spatial position (geographic coordinates) and identification error resulting for any number of reasons (e.g. GPS device errors, the exchange of longitude with latitude). We use cross-checking to find potential errors. There are many types of cross-checking, for example the quartiles method, jackknife method or autoselect best method . SDMdata implements the most commonly used cross-check function for land-based species, which checks the geographic coordinates (latitude and longitude) with the geographic information of a specific country to identify potential errors . Species occurrence records from GBIF have a country code recording the location of the sample. When the coordinate does not match the country code (the coordinate is not located in the country), this occurrence record may have an error (country border map is provided by GADM; http://www.gadm.org/). Note that a cross-check failure does not mean that this record is incorrect, but indicates to the researcher that this record is likely to be incorrect and requires closer inspection for errors. The accuracy of a country’s borders on the map, the accuracy of the GPS device, or other factors may mean that records located near the country’s border appear to be outside of the country. Our software will flag species occurrence records with problem for further checking (Fig 4, S2 Appendix).
SDMdata is written in Python language with the geospatial process portion using GDAL library (http://www.gdal.org/) and the web server portion using the flask framework (http://flask.pocoo.org/). GDAL is widely used and the most important open source geospatial process library. SDMdata is currently available at <http://www.sdmserialsoftware.org/sdmdata/>.
S1 Appendix. Workflow of uploading, importing and checking species names.
This work was supported by the National Natural Science Foundation of China (31300342, 31100311) and China Postdoctoral Science Foundation (2014M561683).
Conceived and designed the experiments: XQK MYH. Performed the experiments: XQK. Analyzed the data: XQK. Contributed reagents/materials/analysis tools: XQK RYD. Wrote the paper: XQK MYH RYD. Edited and provided suggestions for readability and clarity: MYH RYD. Developed the research framework and provided guidance throughout the project: MYH RYD.
- 1. Vetaas OR (2002) Realized and potential climate niches: a comparison of four Rhododendron tree species. Journal of Biogeography 29: 545–554.
- 2. Andelman SJ, Willig MR (2002) Alternative configurations of conservation reserves for Paraguayan bats: considerations of spatial scale. Conservation Biology 16: 1352–1363.
- 3. Eskildsen A, Roux PC, Heikkinen RK, Høye TT, Kissling WD, Pöyry J, et al. (2013) Testing species distribution models across space and time: high latitude butterflies and recent warming. Global Ecology and Biogeography 22: 1293–1303.
- 4. Graham CH, Ron SR, Santos JC, Schneider CJ, Moritz C (2004) Integrating phylogenetics and environmental niche models to explore speciation mechanisms in dendrobatid frogs. Evolution 58: 1781–1793. pmid:15446430
- 5. Rose JP, Todd BD (2014) Projecting invasion risk of non-native watersnakes (Nerodia fasciata and Nerodia sipedon) in the Western United States. PLoS One 9: e100277. pmid:24964204
- 6. Guisan A, Tingley R, Baumgartner JB, Naujokaitis-Lewis I, Sutcliffe PR, Tulloch AI, et al. (2013) Predicting species distributions for conservation decisions. Ecology Letters 16: 1424–1435. pmid:24134332
- 7. Ochoa-Ochoa LM, Rodríguez P, Mora F, Flores-Villela O, Whittaker RJ (2012) Climate change and amphibian diversity patterns in Mexico. Biological Conservation 150: 94–102.
- 8. Peterson AT (2011) Ecological niche conservatism: a time-structured review of evidence. Journal of Biogeography 38: 817–827.
- 9. Engler R, Guisan A, Rechsteiner L (2004) An improved approach for predicting the distribution of rare and endangered species from occurrence and pseudo-absence data. Journal of Applied Ecology 41: 263–274.
- 10. Araújo MB, Cabeza M, Thuiller W, Hannah L, Williams PH (2004) Would climate change drive species out of reserves? An assessment of existing reserve-selection methods. Global Change Biology 10: 1618–1626.
- 11. Feeley KJ, Silman MR (2010) Modelling the responses of Andean and Amazonian plant species to climate change: the effects of georeferencing errors and the importance of data filtering. Journal of Biogeography 37: 733–740.
- 12. Chamberlain S, Ram K, Barve V, Mcglinn D (2014) rgbif: Interface to the Global Biodiversity Information Facility API. Available: https://github.com/ropensci/rgbif.
- 13. García-Roselló E, Guisande C, Heine J, Pelayo-Villamil P, Manjarrés-Hernández A, González Vilas L, et al. (2014) Using ModestR to download, import and clean species distribution records. Methods in Ecology and Evolution 5:708–713.
- 14. Munguía M, Rahbek C, Rangel TF, Diniz-Filho JAF, Araújo MB (2012) Equilibrium of global amphibian species distributions with climate. PLoS One 7: e34420. pmid:22511938
- 15. Cantú-Salazar L, Gaston KJ (2013) Species richness and representation in protected areas of the Western hemisphere: discrepancies between checklists and range maps. Diversity and Distributions 19: 782–793.
- 16. Lutz M (2013) Learning python. O’Reilly Media, Inc.
- 17. Redman TC, Blanton A (1997) Data quality for the information age. Artech House, Inc.
- 18. Chapman AD (2005) Principles and methods of data cleaning—Primary species and speciesoccurrence data, version 1.0. Report for the Global Biodiversity Information Facility, Copenhagen, Denmark.
- 19. Hijmans RJ, Elith J (2014) Species distribution modeling with R. Available: http://cran.r-project.org/web/packages/dismo/vignettes/dm.pdf.