The Pytorch implementation of Latent Imputation before Prediction: A New Computational Paradigm for De Novo Peptide Sequencing.
De novo peptide sequencing is a fundamental computational technique for ascertaining amino acid sequences of peptides directly from tandem mass spectrometry data, eliminating the need for reference databases. Cutting-edge models usually encode the observed mass spectra into latent representations from which peptides are predicted autoregressively. However, the issue of missing fragmentation, attributable to factors such as suboptimal fragmentation efficiency and instrumental constraints, presents a formidable challenge in practical applications. To tackle this obstacle, we propose a novel computational paradigm called Latent Imputation before Prediction (LIPNovo). LIPNovo is devised to compensate for missing fragmentation information within observed spectra before executing the final peptide prediction. Rather than generating raw missing data, LIPNovo performs imputation in the latent space, guided by the theoretical peak profile of the target peptide sequence. The imputation process is conceptualized as a set-prediction problem, utilizing a set of learnable peak queries to reason about the relationships among observed peaks and directly generate the latent representations of theoretical peaks through optimal bipartite matching. In this way, LIPNovo manages to supplement missing information during inference and thus boosts performance. Despite its simplicity, experiments on three benchmark datasets show that LIPNovo outperforms state-of-the-art methods by large margins.
conda create -n lipnovo python==3.10
conda activate lipnovo
git clone https://github.com/usr922/LIPNovo.git
cd LIPNovo
pip install -r requirements.txt
Simply follow NovoBench for data preparation.
python tests/imputation_denovo.py \
--mode train \
--data_path $your_data_path \
--config_path configs/config.yamlpython tests/imputation_denovo.py \
--mode denovo \
--data_path $your_data_path \
--ckpt_path $your_trained_weight_path \
--denovo_output_path $your_results_save_path \
--config_path configs/config.yamlpython get_result.py
TODO: Our pre-trained models will be uploaded later.
We sincerely thank Dr. Jingbo Zhou, Shaorong Chen, Jun Xia for their great work NovoBench in NeurIPS'24. We borrow codes heavily from their repositories.
@inproceedings{du2025latent,
title={Latent Imputation before Prediction: A New Computational Paradigm for De Novo Peptide Sequencing},
author={Du, Ye and Yang, Chen and Yu, Nanxi and Lin, Wanyu and Zhao, Qian and Wang, Shujun},
booktitle={International Conference on Machine Learning},
year={2025}
}
Welcome cooperation :), please contact duyee.du (at) connect (dot) polyu (dot) hk
