Search bioRxiv⌕ Search

Biology subjects

Wardle, G.

Publications and source records attributed to Wardle, G..

2 recordsLinked to original sources

Predicting predator-prey interactions in terrestrial endotherms using random forest

Species interactions play a fundamental role in ecosystems. However, few ecological communities have complete data describing such interactions, which is an obstacle to understanding how ecosystems function and respond to perturbations. Because it is often impractical to collect empirical data for all interactions in a community, various methods have been developed to infer interactions. Machine learning is increasingly being used for making interaction predictions, with random forest being one of the most frequently used of these methods. However, performance of random forest in inferring predator-prey interactions in terrestrial vertebrates and its sensitivity to training data quality remain untested. We examined predator-prey interactions in two diverse, primarily terrestrial vertebrate classes: birds and mammals. Combining data from a global interaction dataset and a specific community (Simpson Desert, Australia), we tested how well random forest predicted predator-prey interactions for mammals and birds using species ecomorphological and phylogenetic traits. We also tested how variation in training data quality--manipulated by removing records and switching interaction records to non-interactions--affected model performance. We found that random forest could predict predator-prey interactions for birds and mammals using ecomorphological or phylogenetic traits, correctly predicting up to 88% and 67% of interactions and non-interactions in the global and community-specific datasets, respectively. These predictions were accurate even when there were no records in the training data for focal species. In contrast, false non-interactions for focal predators in training data strongly degraded model performance. Our results demonstrate that random forest can identify predator-prey interactions for birds and mammals that have few or no interaction records. Furthermore, our study provides guidance on how to prepare training data to optimise machine-learning classifiers for predicting species interactions, which could help ecologists (i) address knowledge gaps and explore network-related questions in data-poor situations, and (ii) predict interactions for range-expanding species.

ecology↗

slimr: An R package for integrating data and tailor-made population genomic simulations over space and time

Software for realistically simulating complex population genomic processes is revolutionizing our understanding of evolutionary processes, and providing novel opportunities for integrating empirical data with simulations. However, the integration between simulation software and software designed for working with empirical data is currently not well developed. Here we present slimr, an R package designed to create a seamless link between standalone software SLiM 3.0, one of the most powerful population genomic simulation frameworks, and the R development environment, with its powerful data manipulation and analysis tools. We show how slimr facilitates smooth integration between genetic data, ecological data and simulation in a single environment. The package enables pipelines that begin with data reading, cleaning, and manipulation, proceed to constructing empirically-based parameters and initial conditions for simulations, then to running numerical simulations, and finally to retrieving simulation results in a format suitable for comparisons with empirical data - aided by advanced analysis and visualization tools provided by R. We demonstrate the use of slimr with an example from our own work on the landscape population genomics of desert mammals, highlighting the advantage of having a single integrated tool for both data analysis and simulation. slimr makes the powerful simulation ability of SliM 3.0 directly accessible to R users, allowing integrated simulation projects that incorporate empirical data without the need to switch between software environments. This should provide more opportunities for evolutionary biologists and ecologists to use realistic simulations to better understand the interplay between ecological and evolutionary processes.

evolutionary biology↗