{"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/interpretable-enzyme-function-prediction-via","title":"Interpretable Enzyme Function Prediction via Residue-Level Detection","arxiv_id":"2501.05644","date":"2025-01-10","proceeding":null,"authors":["Zhao Yang","Bing Su","Jiahao Chen","Ji-Rong Wen"],"abstract":"Predicting multiple functions labeled with Enzyme Commission (EC) numbers from the enzyme sequence is of great significance but remains a challenge due to its sparse multi-label classification nature, i.e., each enzyme is typically associated with only a few labels out of more than 6000 possible EC numbers. However, existing machine learning algorithms generally learn a fixed global representation for each enzyme to classify all functions, thereby they lack interpretability and the fine-grained information of some function-specific local residue fragments may be overwhelmed. Here we present an attention-based framework, namely ProtDETR (Protein Detection Transformer), by casting enzyme function prediction as a detection problem. It uses a set of learnable functional queries to adaptatively extract different local representations from the sequence of residue-level features for predicting different EC numbers. ProtDETR not only significantly outperforms existing deep learning-based enzyme function prediction methods, but also provides a new interpretable perspective on automatically detecting different local regions for identifying different functions through cross-attentions between queries and residue-level features. Code is available at https://github.com/yangzhao1230/ProtDETR.","url_abs":"https://arxiv.org/abs/2501.05644v2","url_pdf":"https://arxiv.org/pdf/2501.05644v2.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":"interpretable-enzyme-function-prediction-via","repo_url":"https://github.com/yangzhao1230/protdetr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"multi-label-classification-2","task_name":"MUlTI-LABEL-ClASSIFICATION"},{"task_slug":"multi-label-classification","task_name":"Multi-Label Classification"},{"task_slug":"prediction","task_name":"Prediction"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2501.05644","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2501.05644"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/yangzhao1230/protdetr","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"ran":0,"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":0,"samples":[{"code_sha256_prefix":"e54a325f11c4d6ab","entry":"build_backbone","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"models/backbone.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/models/backbone.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e54a325f11c4d6ab"}},{"code_sha256_prefix":"f8af81a0530fa25f","entry":"build_matcher","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"models/matcher.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/models/matcher.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f8af81a0530fa25f"}},{"code_sha256_prefix":"ea84c6853134f470","entry":"build_position_encoding","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"models/position_encoding.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/models/position_encoding.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea84c6853134f470"}},{"code_sha256_prefix":"c491cd32e6fc4323","entry":"build_record","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"predict_multi.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/predict_multi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c491cd32e6fc4323"}},{"code_sha256_prefix":"d8c3057c1f1df693","entry":"build_transformer","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"models/transformer.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/models/transformer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d8c3057c1f1df693"}},{"code_sha256_prefix":"d733fdfa80e18d23","entry":"decode_multi_predictions","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"engine.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/engine.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d733fdfa80e18d23"}},{"code_sha256_prefix":"cacd990d8432b0d5","entry":"fetch_sequence","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"infer_important_site.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/infer_important_site.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cacd990d8432b0d5"}},{"code_sha256_prefix":"6db2c31c1869c0e5","entry":"get_esm_emb","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"engine.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/engine.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6db2c31c1869c0e5"}},{"code_sha256_prefix":"5b532509f4daac7b","entry":"load_fasta","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"predict_multi.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/predict_multi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b532509f4daac7b"}},{"code_sha256_prefix":"b265994c34bba886","entry":"load_table","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"predict_multi.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/predict_multi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b265994c34bba886"}},{"code_sha256_prefix":"0d1b4c009d74fcab","entry":"unit_length_norm2_normalize","repo":"yangzhao1230/protdetr","repo_kind":"official","path":"infer_important_site.py","file_url":"https://github.com/yangzhao1230/protdetr/blob/HEAD/infer_important_site.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d1b4c009d74fcab"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}