Bioinformatics. 2026 Jan 9:btag005. doi: 10.1093/bioinformatics/btag005. Online ahead of print.
ABSTRACT
MOTIVATION: The presence or absence of some genes in a genome can influence whether other genes are likely to be present or absent. Understanding these gene co-occurrence and avoidance patterns reveals fundamental principles of genome organisation, with applications ranging from evolutionary reconstruction to rational design of synthetic genomes.
IMPLEMENTATIONS: PanForest, presented here, uses random forest classifiers to predict the presence and absence of genes in genomes from the set of other genes present. Performance statistics output by PanForest reveal how predictable each gene’s presence or absence is, based on the presence or absence of other genes in the genome. Further, PanForest produces statistics indicating the importance of each gene in predicting the presence or absence of each other gene. The PanForest software can run serially or in parallel, thereby facilitating the analysis of pangenomes at Network of Life scale.
RESULTS: A pangenome of 12,741 accessory genes in 1,000 Escherichia coli genomes was analysed in around 5 hours using 8 processors. To demonstrate PanForest’s utility, we present a case study and show that certain genes associated with resistance to antimicrobial drugs reliably predict the presence or absence of other genes associated with resistance to the same drug. Further, we highlight several associations between those genes and others not known to be associated with antimicrobial resistance (AMR), or associated with resistance to other drugs. We envisage PanForest’s use in studies from multiple disciplines concerning the dynamics of gene distributions in pangenomes ranging from biomedical science and synthetic biology to molecular ecology.
AVAILABILITY: The software if freely available with a full manual and can be found with at www.github.com/alanbeavan/PanForest DOI: https://doi.org/10.5281/zenodo.17865482.
SUPPLEMENTARY INFORMATION: Supplementary data are available at Bioinformatics online.
PMID:41512299 | DOI:10.1093/bioinformatics/btag005