Whole Genome Transformer for Gene Interaction Effects in Microbiome Habitat Specificity
Zhufeng Li, Sandeep S Cranganore, Nicholas Youngblut, Niki Kilbertus
TL;DR
This work tackles predicting microbiome habitat specificity from whole-genome sequences, a challenging genotype-phenotype problem driven by complex gene interactions. It introduces a genome-scale transformer that operates on fixed-size gene embeddings derived from a large protein language model (ESM-2), representing each genome as a sequence of gene tokens and learning habitat-specific patterns. The method achieves strong habitat classification performance on ProGenomes v3 and provides attribution-based gene interaction networks that recover known interactions and propose new candidates for experimental follow-up. By leveraging sequence-level information and gene co-presence patterns, the approach offers interpretable insights into how microbial genes collectively shape environmental adaptation, with potential implications for environmental, agricultural, and medical applications.
Abstract
Leveraging the vast genetic diversity within microbiomes offers unparalleled insights into complex phenotypes, yet the task of accurately predicting and understanding such traits from genomic data remains challenging. We propose a framework taking advantage of existing large models for gene vectorization to predict habitat specificity from entire microbial genome sequences. Based on our model, we develop attribution techniques to elucidate gene interaction effects that drive microbial adaptation to diverse environments. We train and validate our approach on a large dataset of high quality microbiome genomes from different habitats. We not only demonstrate solid predictive performance, but also how sequence-level information of entire genomes allows us to identify gene associations underlying complex phenotypes. Our attribution recovers known important interaction networks and proposes new candidates for experimental follow up.
