Highly accurate classification and discovery of microbial protein-coding gene functions using FunGeneTyper: an extensible deep learning framework

Guoqing Zhang, Hui Wang, Zhiguo Zhang, Lu Zhang, Guibing Guo, Jian Yang, Fajie Yuan, Feng JuBriefings in Bioinformatics 2024 · OpenReview

TL;DR

This paper introduces FunGeneTyper, a novel deep learning framework that significantly improves the accuracy and efficiency of classifying microbial protein-coding gene functions, particularly for identifying novel antibiotic resistance genes (ARGs) and virulence factor genes (VFGs). By leveraging protein language models and an extensible adapter architecture, FunGeneTyper overcomes limitations of traditional methods, enabling more precise functional annotation and accelerating the discovery of valuable microbial enzymes.

What Problem Does This Paper Address?

The rapid advancement of DNA sequencing technologies has generated an overwhelming amount of microbial protein-coding gene (PCG) sequences. Accurately assigning functions to these genes, especially novel ones with low sequence similarity to known genes (remote homologs), remains a significant challenge. Existing methods, such as sequence alignment (BLAST) and Hidden Markov Models (HMMs), often struggle with these remote homologs due to strict identity cutoffs or an inability to capture complex semantic relationships. This limitation hinders the discovery of new functional genes, which is crucial for understanding microbial communities, developing new biotechnologies, and addressing public health concerns like antibiotic resistance.

Methods

FunGeneTyper employs a two-stage deep learning framework:

  • FunTrans: This model performs the initial, high-throughput classification of PCGs into broad functional "types." It leverages a pre-trained protein language model (ESM-1b) and an "adapter" architecture.
  • FunRep: This model takes the output from FunTrans and performs a more fine-grained classification into functional "subtypes." It uses a contrastive learning approach to learn discriminative representations and identify sequences with the closest Euclidean distance in the representation space.

A key innovation is the adapter architecture. This allows for parameter-efficient fine-tuning of large protein language models. Instead of retraining the entire model, only small, task-specific adapter modules are trained. This makes the framework extensible and allows for the sharing of these adapters, creating an "Adapter Sharing Community" (ASC).

Datasets

  • Structured Functional Gene Databases (SFGDs): These databases are constructed by integrating experimentally confirmed reference sequences (core dataset) with highly homologous sequences from UniRef100 (expanded dataset). A non-target dataset from Swiss-Prot is also included to help the model distinguish between target and non-target genes.
  • Antibiotic Resistance Gene (ARG) Database (SARD): This database was specifically curated for ARG classification, organized based on the Comprehensive Antibiotic Resistance Database (CARD).
  • Virulence Factor Gene (VFG) Database (VFNet): This database was used to demonstrate the generalizability of FunGeneTyper to other functional gene categories.

Key Insights and Ideas

  • Protein Language Models for Functional Annotation: The study highlights the power of protein language models (PLMs) in capturing rich semantic, structural, and evolutionary information from protein sequences, which is crucial for accurate functional classification, especially for remote homologs.
  • Parameter-Efficient Transfer Learning with Adapters: The adapter architecture is a game-changer, enabling efficient fine-tuning of massive PLMs with minimal parameters. This significantly reduces computational costs and storage requirements, making advanced DL models more accessible.
  • Extensible and Collaborative Framework: The "Adapter Sharing Community" concept is a significant contribution, fostering collaboration by allowing researchers to share their trained adapters without revealing proprietary datasets, thus accelerating the development of new functional gene classifiers.
  • Addressing the "Twilight Zone" of Sequence Alignment: FunGeneTyper's ability to accurately classify remote homologs directly addresses a long-standing limitation of sequence alignment-based methods, which often fail in this "twilight zone."

Key Results

  • High Accuracy: FunGeneTyper achieved very high accuracy (e.g., >0.99 for ARGs at the type level) and F1-scores (e.g., >0.97 for ARGs).
  • Superior Performance on Novel Genes: FunGeneTyper significantly outperformed state-of-the-art tools (including DL-based, alignment-based, and HMM-based methods) in discovering new ARGs from diverse environmental samples (human gut, wastewater, soil), particularly those with low sequence identity to known genes. For example, it achieved F1-scores of 0.6948 (human gut), 0.6072 (wastewater), and 0.5445 (soil), far exceeding traditional methods.
  • Generalizability: The framework was successfully extended to classify Virulence Factor Genes (VFGs) with high accuracy, demonstrating its versatility.
  • Efficiency: The adapter-based approach allows for parameter-efficient training, with only about 3% of the total parameters needing to be fine-tuned.

Limitations and Future Work

  • Data Dependency: While the adapter approach mitigates data requirements, the performance of FunGeneTyper, like any DL model, is still dependent on the quality and quantity of training data. The authors note that performance for ARG types with very few reference sequences could be further improved with more experimentally confirmed data.
  • Multidrug Class Errors: The study identified some misclassifications within the "multidrug" class, attributing this to the diverse biological functions of these proteins beyond simple resistance, suggesting a need for more refined definitions or specialized training for such complex categories.
  • Future Work: The authors envision widespread utilization of FunGeneTyper for precise classification of a broad range of protein-coding gene functions and the discovery of numerous valuable enzymes. The extensible nature of the framework and the ASC are key to this future development, enabling the creation of classifiers for virtually any functional gene category.

Summary updated

BibTeX
@article{zhang2024highly,
  author = {Guoqing Zhang and Hui Wang and Zhiguo Zhang and Lu Zhang and Guibing Guo and Jian Yang and Fajie Yuan and Feng Ju},
  title = {{Highly accurate classification and discovery of microbial protein-coding gene functions using FunGeneTyper: an extensible deep learning framework}},
  journal = {Briefings in Bioinformatics},
  year = {2024},
  url = {https://openreview.net/forum?id=pOVfFRj6Lk},
}
Figure