{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/contranovo-a-contrastive-learning-approach-to","title":"ContraNovo: A Contrastive Learning Approach to Enhance De Novo Peptide Sequencing","arxiv_id":"2312.11584","date":"2023-12-18","proceeding":null,"authors":["Zhi Jin","Sheng Xu","Xiang Zhang","Tianze Ling","Nanqing Dong","Wanli Ouyang","Zhiqiang Gao","Cheng Chang","Siqi Sun"],"abstract":"De novo peptide sequencing from mass spectrometry (MS) data is a critical task in proteomics research. Traditional de novo algorithms have encountered a bottleneck in accuracy due to the inherent complexity of proteomics data. While deep learning-based methods have shown progress, they reduce the problem to a translation task, potentially overlooking critical nuances between spectra and peptides. In our research, we present ContraNovo, a pioneering algorithm that leverages contrastive learning to extract the relationship between spectra and peptides and incorporates the mass information into peptide decoding, aiming to address these intricacies more efficiently. Through rigorous evaluations on two benchmark datasets, ContraNovo consistently outshines contemporary state-of-the-art solutions, underscoring its promising potential in enhancing de novo peptide sequencing. The source code is available at https://github.com/BEAM-Labs/ContraNovo.","url_abs":"https://arxiv.org/abs/2312.11584v1","url_pdf":"https://arxiv.org/pdf/2312.11584v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"contranovo-a-contrastive-learning-approach-to","repo_url":"https://github.com/beam-labs/contranovo","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"de-novo-peptide-sequencing","task_name":"de novo peptide sequencing"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2312.11584","atlas_url":"https://app.syntology.ai/?focus=2312.11584","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.11584"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/beam-labs/contranovo","reach":{"status":"ok"}}],"summary":{"ran":3,"unverified":2},"by_repo_kind":{"official":{"samples":5,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":5,"samples":[{"code_sha256_prefix":"622baf0432bd9084","entry":"check_int","repo":"beam-labs/contranovo","repo_kind":"official","path":"ContraNovo/utils2.py","file_url":"https://github.com/beam-labs/contranovo/blob/HEAD/ContraNovo/utils2.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"622baf0432bd9084"}},{"code_sha256_prefix":"3ff1f6938e69098d","entry":"generate_tgt_mask","repo":"beam-labs/contranovo","repo_kind":"official","path":"ContraNovo/components/transformers.py","file_url":"https://github.com/beam-labs/contranovo/blob/HEAD/ContraNovo/components/transformers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3ff1f6938e69098d"}},{"code_sha256_prefix":"176b9d52089adf6c","entry":"split_version","repo":"beam-labs/contranovo","repo_kind":"official","path":"ContraNovo/utils.py","file_url":"https://github.com/beam-labs/contranovo/blob/HEAD/ContraNovo/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"176b9d52089adf6c"}},{"code_sha256_prefix":"145ed062058f289a","entry":"listify","repo":"beam-labs/contranovo","repo_kind":"official","path":"ContraNovo/utils2.py","file_url":"https://github.com/beam-labs/contranovo/blob/HEAD/ContraNovo/utils2.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"145ed062058f289a"}},{"code_sha256_prefix":"c734de5aaa8e9552","entry":"read_tensorboard_scalars","repo":"beam-labs/contranovo","repo_kind":"official","path":"ContraNovo/utils2.py","file_url":"https://github.com/beam-labs/contranovo/blob/HEAD/ContraNovo/utils2.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c734de5aaa8e9552"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}