Nature CommunicationsSynthetic BiologyPeer-reviewed journal article
CodonTransformer: a multispecies codon optimizer using context-aware neural networks
Adibvafa FallahpouriD, Vincent GureghianiD, Guillaume J. P. FilioniD, Ariel B. LindneriD, Amir PandiiD
Abstract
The genetic code is degenerate allowing a multitude of possible DNA sequences to encode the same protein. This degeneracy impacts the efficiency of heterologous protein production due to the codon usage preferences of each organism. The process of tailoring organism-specific synonymous codons, known as codon optimization, must respect local sequence patterns that go beyond global codon preferences. As a result, the search space faces a combinatorial explosion that makes exhaustive exploration impossible. Nevertheless, throughout the diverse life on Earth, natural selection has already optimized the sequences, thereby providing a rich source of data allowing machine learning algorithms to explore the underlying rules. Here, we introduce CodonTransformer, a multispecies deep learning model trained on over 1 million DNA-protein pairs from 164 organisms spanning all kingdoms of life. The model demonstrates context-awareness thanks to the attention mechanism and bidirectionality of the Transformers we used, and to a novel sequence representation that combines organism, amino acid, and codon encodings. CodonTransformer generates host-specific DNA sequences with natural-like codon distribution profiles and with negative cis-regulatory elements. This work introduces a novel strategy of Shared Token Representation and Encoding with Aligned Multi-masking (STREAM) and provides a state-of-the-art codon optimization framework with a customizable open-access model and a user-friendly interface.
- organism: multiple species
- assay: DNA methylation
- assay: proteomics
- research focus: protein design
- approach: deep learning
- Citations
- 68
- FWCI
- 19.73
- Field percentile
- top 1%
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.
Related papers
- CodonTranslator: a conditional codon language model for codon optimization across all domains of life
Yanshuo Chen, Yuming Zhang, … Heng Huang·bioRxiv·Nov 24, 2025
- Learning the native-like codons with a 5'UTR and RNA secondary structure aided species-informed transformer model
Qiuyue Hu, Xiaolin Tian, … Yanjie Wei·bioRxiv·Jul 19, 2025
- ppLM-CO:Pre-trained Protein Language Model for Codon Optimization
Shashank Pathak, Guohui Lin·bioRxiv·Dec 12, 2024
- Deep learning-based codon optimization with large-scale synonymous variant datasets enables generalized tunable protein expression
David A. Constant, Jahir M. Gutierrez, … Miles W. Gander·bioRxiv·Feb 11, 2023
- High-Codon: A Deep Learning-Based Codon Optimization Tool for Enhanced Heterologous Protein Expression in Escherichia coli
Jiawei Li, Xinxiu Dong, Jie Liu·bioRxiv·May 30, 2025
- HalluCodon enables species-specific codon optimization using multimodal language models
Yuxuan Lou, Shiya Mao, … Xiangfeng Wang·bioRxiv·Apr 2, 2026