{"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/protein-nucleic-acid-complex-modeling-with","title":"Protein-Nucleic Acid Complex Modeling with Frame Averaging Transformer","arxiv_id":"2406.09586","date":"2024-06-13","proceeding":null,"authors":["Tinglin Huang","Zhenqiao Song","Rex Ying","Wengong Jin"],"abstract":"Nucleic acid-based drugs like aptamers have recently demonstrated great therapeutic potential. However, experimental platforms for aptamer screening are costly, and the scarcity of labeled data presents a challenge for supervised methods to learn protein-aptamer binding. To this end, we develop an unsupervised learning approach based on the predicted pairwise contact map between a protein and a nucleic acid and demonstrate its effectiveness in protein-aptamer binding prediction. Our model is based on FAFormer, a novel equivariant transformer architecture that seamlessly integrates frame averaging (FA) within each transformer block. This integration allows our model to infuse geometric information into node features while preserving the spatial semantics of coordinates, leading to greater expressive power than standard FA models. Our results show that FAFormer outperforms existing equivariant models in contact map prediction across three protein complex datasets, with over 10% relative improvement. Moreover, we curate five real-world protein-aptamer interaction datasets and show that the contact map predicted by FAFormer serves as a strong binding indicator for aptamer screening.","url_abs":"https://arxiv.org/abs/2406.09586v3","url_pdf":"https://arxiv.org/pdf/2406.09586v3.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":"protein-nucleic-acid-complex-modeling-with","repo_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"dfa","method_name":"FA"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.09586","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.09586"}},"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/Graph-and-Geometric-Learning/Frame-Averaging-Transformer","reach":null}],"summary":{"ran":6,"ran_draft_wrong":3,"unverified":4},"by_repo_kind":{"official":{"samples":13,"ran":9,"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":13,"samples":[{"code_sha256_prefix":"26eea48f3d856e95","entry":"EdgeModule","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.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":"26eea48f3d856e95"}},{"code_sha256_prefix":"e591845ea2386478","entry":"FAFFN","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.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":"e591845ea2386478"}},{"code_sha256_prefix":"53bf37b1b0b978ee","entry":"FrameAveraging","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.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":"53bf37b1b0b978ee"}},{"code_sha256_prefix":"df63ca68046d6931","entry":"MLP","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.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":"df63ca68046d6931"}},{"code_sha256_prefix":"7aa255ad8286c84b","entry":"MLPAttnEdgeAggregation","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.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":"7aa255ad8286c84b"}},{"code_sha256_prefix":"d39fea6cb453ebf8","entry":"MLPWrapper","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d39fea6cb453ebf8"}},{"code_sha256_prefix":"acf99ec60faa3a2b","entry":"SwiGLUMLP","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.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":"acf99ec60faa3a2b"}},{"code_sha256_prefix":"81a752beda92dff1","entry":"batch_evaluate_contact_map","repo":"graph-and-geometric-learning/frame-averaging-transformer","repo_kind":"official","path":"faformer/app/aptamer_aff_train.py","file_url":"https://github.com/graph-and-geometric-learning/frame-averaging-transformer/blob/HEAD/faformer/app/aptamer_aff_train.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"81a752beda92dff1"}},{"code_sha256_prefix":"f394d8e08609dc8b","entry":"get_activation","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f394d8e08609dc8b"}},{"code_sha256_prefix":"9a642b6f36d99c98","entry":"FAFormer","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.py","link_basis":"first_harvest_node","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":"9a642b6f36d99c98"}},{"code_sha256_prefix":"e8640facf2f6b210","entry":"FAFormerEncoderLayer","repo":"Graph-and-Geometric-Learning/Frame-Averaging-Transformer","repo_kind":"official","path":"faformer/model/encoder/transformer.py","file_url":"https://github.com/Graph-and-Geometric-Learning/Frame-Averaging-Transformer/blob/HEAD/faformer/model/encoder/transformer.py","link_basis":"first_harvest_node","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":"e8640facf2f6b210"}},{"code_sha256_prefix":"b2518f7a9bede2f5","entry":"evaluate_affinity","repo":"graph-and-geometric-learning/frame-averaging-transformer","repo_kind":"official","path":"faformer/app/aptamer_aff_train.py","file_url":"https://github.com/graph-and-geometric-learning/frame-averaging-transformer/blob/HEAD/faformer/app/aptamer_aff_train.py","link_basis":"first_harvest_node","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":"b2518f7a9bede2f5"}},{"code_sha256_prefix":"145d6b278ec8e06c","entry":"train","repo":"graph-and-geometric-learning/frame-averaging-transformer","repo_kind":"official","path":"faformer/app/aptamer_aff_train.py","file_url":"https://github.com/graph-and-geometric-learning/frame-averaging-transformer/blob/HEAD/faformer/app/aptamer_aff_train.py","link_basis":"first_harvest_node","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":"145d6b278ec8e06c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}