Papers › CodonMPNN for Organism Specific and Codon Optimal Inverse Folding

CodonMPNN for Organism Specific and Codon Optimal Inverse Folding

25 Sep 2024arXiv:2409.17265archive 2025-07-28

Hannes Stark, Umesh Padia, Julia Balla, Cameron Diao, George Church

Generating protein sequences conditioned on protein structures is an impactful technique for protein engineering. When synthesizing engineered proteins, they are commonly translated into DNA and expressed in an organism such as yeast. One difficulty in this process is that the expression rates can be low due to suboptimal codon sequences for expressing a protein in a host organism. We propose CodonMPNN, which generates a codon sequence conditioned on a protein backbone structure and an organism label. If naturally occurring DNA sequences are close to codon optimality, CodonMPNN could learn to generate codon sequences with higher expression yields than heuristic codon choices for generated amino acid sequences. Experiments show that CodonMPNN retains the performance of previous inverse folding approaches and recovers wild-type codons more frequently than baselines. Furthermore, CodonMPNN has a higher likelihood of generating high-fitness codon sequences than low-fitness codon sequences for the same protein sequence. Code is available at https://github.com/HannesStark/CodonMPNN.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2409.17265")

Code

Syntology Ran 10 of 12 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 3 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hannesstark/codonmpnn officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 10 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
3ran · fixture could not drive it
6ran
2unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from HannesStark/CodonMPNN. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

gather_edges HannesStark/CodonMPNN/codon/utils/pmpnn.py official repository ran · fixture could not drive it MIT (permissive) · ee91093a4bcd2f9f · report
gather_log hannesstark/codonmpnn/codon/wrapper.py official repository ran MIT (permissive) · d1e5df8af4e52e48 · report
gather_nodes HannesStark/CodonMPNN/codon/utils/pmpnn.py official repository ran · fixture could not drive it MIT (permissive) · 2b89e352a944b025 · report
gather_nodes hannesstark/codonmpnn/codon/utils/pmpnn.py official repository ran · our draft was wrong MIT (permissive) · 77cd7ee3a9fa2105 · report
get_aligned_rmsd hannesstark/codonmpnn/codon/utils/foldability_utils.py official repository ran fingerprinted MIT (permissive) · 80c136deefde6bce · report
get_log_mean hannesstark/codonmpnn/codon/wrapper.py official repository ran MIT (permissive) · 6d7a23db92232fe7 · report
get_weird_pmpnn_stuff HannesStark/CodonMPNN/codon/utils/pmpnn.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · e066a651617bbd2d · report
get_weird_pmpnn_stuff hannesstark/codonmpnn/codon/utils/pmpnn.py official repository ran fingerprinted MIT (permissive) · c7d3a02c3dc97e6a · report
multi_seq_collate hannesstark/codonmpnn/codon/datasets.py official repository ran MIT (permissive) · 5693967e08c16256 · report
seq_collate hannesstark/codonmpnn/codon/datasets.py official repository ran MIT (permissive) · 76963c496a2e0091 · report
gather_edges hannesstark/codonmpnn/codon/utils/pmpnn.py official repository unverified MIT (permissive) · ae83abf1a9db1e77 · report
get_logger hannesstark/codonmpnn/codon/utils/logging.py official repository unverified MIT (permissive) · ec9a324c17c1d5ce · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections