Sign in
BioinformaticsBioinformatics
Peer-reviewed journal article

PharaCon: A new framework for identifying bacteriophages via conditional representation learning

Zeheng BaiiD, Yaozhong ZhangiD, Yuxuan PangiD, Seiya ImotoiD

Abstract

MotivationIdentifying bacteriophages (phages) within metagenomic sequences is essential for understanding microbial community dynamics. Transformer-based foundation models have been successfully employed to address various biological challenges. However, these models are typically pre-trained with self-supervised tasks that do not consider label variance in the pre-training data. This presents a challenge for phage identification as pre-training on mixed bacterial and phage data may lead to information bias due to the imbalance between bacterial and phage samples. ResultsTo overcome this limitation, this study proposed a novel conditional BERT framework that incorporates labels during pre-training. We developed an approach using a conditional BERT model for pre-training labeled data, incorporating label constraints with modified language modeling tasks. This approach allows the model to acquire label-conditional sequence representations. Additionally, we proposed a solution that utilizes conditional BERT in the fine-tuning phase as a classifier. We applied this conditional BERT framework to identify phages using a novel fine-tuning strategy, introducing PharaCon. We evaluated PharaCon against several existing methods on both simulated sequence datasets and real metagenomic contig datasets. The results demonstrate PharaCon's potential as an effective and efficient method for phage identification, highlighting the effectiveness of conditional B ERT as a solution for learning label-specific representations during pre-training on mixed sequence data. AvailabilityThe codes of PharaCon are now available in: https://github.com/Celestial-Bai/PharaCon. Contactyaozhong@ims.u-tokyo.ac.jp and imoto@hgc.jp

PDFDOICode

02 /Specification & Classification

Click any tag to browse matching papers

Reproducibility ledger

Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.

Sign in to file a reproducibility report.

Similarity Map
SelectedSame fieldCross-field
THISBai '22Auslander '20Wijesekara '24Zhang '25Ho '21Juhász '24
71% semantic matchBioinformatics
Zeheng Bai, Yaozhong Zhang, Satoru Miyano+4 more·Bioinformatics·Aug 3, 2022· 25 citations