CodonTransformer: a multispecies codon optimizer using context-aware neural networks

Degeneracy in the genetic code allows many possible DNA sequences to encode the same protein. Optimizing codon usage within a sequence to meet organism-specific preferences faces combinatorial explosion. Nevertheless, natural sequences optimized through evolution provide a rich source of data for 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 domains of life. The model demonstrates context-awareness thanks to its Transformers architecture and to our sequence representation strategy that combines organism, amino acid, and codon encodings. CodonTransformer generates host-specific DNA sequences with natural-like codon distribution profiles and with minimum negative cis-regulatory elements. This work introduces the strategy of Shared Token Representation and Encoding with Aligned Multi-masking (STREAM) and provides a codon optimization framework with a customizable open-access model and a user-friendly Google Colab interface.

Authors

Institutions

Publication Details

Journal
Nature Communications
Published
2025-04-03
DOI
https://doi.org/10.1038/s41467-025-58588-7
Citations
35
Primary Topic
RNA and protein synthesis mechanisms
Type
article
Field-Weighted Citation Impact
28.21

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CodonTransformer: a multispecies codon optimizer using context-aware neural networks

Vincent Gureghian, Guillaume J. Filion, Ariel B. Lindner, Amir Pandi et al.
35 citations
Nature Communications
RNA and protein synthesis mechanisms
28.21
article

CodonTransformer: a multispecies codon optimizer using context-aware neural networks

Vincent Gureghian, Guillaume J. Filion, Ariel B. Lindner, Amir Pandi, Adibvafa Fallahpour
article en
35 citations

Abstract

Degeneracy in the genetic code allows many possible DNA sequences to encode the same protein. Optimizing codon usage within a sequence to meet organism-specific preferences faces combinatorial explosion. Nevertheless, natural sequences optimized through evolution provide a rich source of data for 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 domains of life. The model demonstrates context-awareness thanks to its Transformers architecture and to our sequence representation strategy that combines organism, amino acid, and codon encodings. CodonTransformer generates host-specific DNA sequences with natural-like codon distribution profiles and with minimum negative cis-regulatory elements. This work introduces the strategy of Shared Token Representation and Encoding with Aligned Multi-masking (STREAM) and provides a codon optimization framework with a customizable open-access model and a user-friendly Google Colab interface.

Nature CommunicationsVol. 16(1)
Université de Technologie de Compiègne (FR), Centre National de la Recherche Scientifique (FR), Inserm (FR), Scarborough Health Network (CA), Sorbonne Université (FR), Biologie Computationnelle, Quantitative et Synthétique (FR), Institut de Biologie Paris-Seine (FR), Vector Institute (CA), Université Paris 1 Panthéon-Sorbonne (FR)
Institut National de la Santé et de la Recherche Médicale, University of Toronto, Centre National de la Recherche Scientifique, Fondation Bettencourt Schueller, Canadian Institutes of Health Research, Natural Sciences and Engineering Research Council of Canada, University of Toronto Scarborough
Openalex Percentile: Top 0%
RNA and protein synthesis mechanisms
28.21
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.