pyRforest: a comprehensive R package for genomic data analysis featuring scikit-learn Random Forests in R
Open Access
- 7 October 2024
- journal article
- review article
- Published by Oxford University Press (OUP) in Briefings in Functional Genomics
- Vol. 24
Abstract
Random Forest models are widely used in genomic data analysis and can offer insights into complex biological mechanisms, particularly when features influence the target in interactive, nonlinear, or nonadditive ways. Currently, some of the most efficient Random Forest methods in terms of computational speed are implemented in Python. However, many biologists use R for genomic data analysis, as R offers a unified platform for performing additional statistical analysis and visualization. Here, we present an R package, pyRforest, which integrates Python scikit-learn “RandomForestClassifier” algorithms into the R environment. pyRforest inherits the efficient memory management and parallelization of Python, and is optimized for classification tasks on large genomic datasets, such as those from RNA-seq. pyRforest offers several additional capabilities, including a novel rank-based permutation method for biomarker identification. This method can be used to estimate and visualize P-values for individual features, allowing the researcher to identify a subset of features for which there is robust statistical evidence of an effect. In addition, pyRforest includes methods for the calculation and visualization of SHapley Additive exPlanations values. Finally, pyRforest includes support for comprehensive downstream analysis for gene ontology and pathway enrichment. pyRforest thus improves the implementation and interpretability of Random Forest models for genomic data analysis by merging the strengths of Python with R. pyRforest can be downloaded at: https://www.github.com/tkolisnik/pyRforest with an associated vignette at https://github.com/tkolisnik/pyRforest/blob/main/vignettes/pyRforest-vignette.pdf.Keywords
All Related Versions
Funding Information
- Massey University School of Natural Sciences
This publication has 18 references indexed in Scilit:
- Interpreting Black-Box Models: A Review on Explainable Artificial IntelligenceCognitive Computation, 2023
- Random Forest for Genomic Prediction2022
- clusterProfiler 4.0: A universal enrichment tool for interpreting omics dataThe Innovation, 2021
- Interpretation of deep learning in genomics and epigenomicsBriefings in Bioinformatics, 2020
- From local explanations to global understanding with explainable AI for treesNature Machine Intelligence, 2020
- ggplot22016
- Runtime and memory consumption analyses for machine learning R programsJournal of Statistical Computation and Simulation, 2014
- STAR: ultrafast universal RNA-seq alignerBioinformatics, 2012
- Permutation importance: a corrected feature importance measureBioinformatics, 2010
- Random ForestsMachine Learning, 2001