A practical introduction to Random Forest for genetic association studies in ecology and evolution

Mol Ecol Resour. 2018 Jul;18(4):755-766. doi: 10.1111/1755-0998.12773. Epub 2018 Mar 31.

Abstract

Large genomic studies are becoming increasingly common with advances in sequencing technology, and our ability to understand how genomic variation influences phenotypic variation between individuals has never been greater. The exploration of such relationships first requires the identification of associations between molecular markers and phenotypes. Here, we explore the use of Random Forest (RF), a powerful machine-learning algorithm, in genomic studies to discern loci underlying both discrete and quantitative traits, particularly when studying wild or nonmodel organisms. RF is becoming increasingly used in ecological and population genetics because, unlike traditional methods, it can efficiently analyse thousands of loci simultaneously and account for nonadditive interactions. However, understanding both the power and limitations of Random Forest is important for its proper implementation and the interpretation of results. We therefore provide a practical introduction to the algorithm and its use for identifying associations between molecular markers and phenotypes, discussing such topics as data limitations, algorithm initiation and optimization, as well as interpretation. We also provide short R tutorials as examples, with the aim of providing a guide to the implementation of the algorithm. Topics discussed here are intended to serve as an entry point for molecular ecologists interested in employing Random Forest to identify trait associations in genomic data sets.

Keywords: Random Forest; adaptation; association studies; ecological genetics.

MeSH terms

  • Adaptation, Biological
  • Algorithms
  • Conservation of Natural Resources
  • Ecology
  • Evolution, Molecular*
  • Genetic Association Studies / methods*
  • Metagenomics / methods