Significance
Understanding how the genetic code influences protein structure is essential across biology, from gene expression to protein engineering. A recent study claimed that synonymous codons -different nucleotide triplets encoding the same amino acid- can affect the distribution of backbone dihedral angles within secondary structure elements, challenging the assumption that structure depends solely on amino acid sequence. We reanalyzed this claim using a statistically rigorous approach and found no significant codon-dependent effects on dihedral angle distributions across secondary structure types. Our results indicate that, based on available data, synonymous codon usage does not alter backbone geometry in folded proteins, reinforcing key assumptions in structural biology, protein design, and molecular evolution.
Keywords: angle distributions, statistical tests, protein structure, synonymous codons
Abstract
The correlation between synonymous codon usage and secondary structure in translated proteins has been widely demonstrated. This usage plays a capital role in tuning translational rates and protein folding kinetics, indirectly influencing multiple biological processes. A recent report [A. A. Rosenberg, A. Marx, A. M. Bronstein, Nat. Commun. 13, 2815 (2022).] suggests that the translated synonymous codon influences the dihedral angles within secondary structure elements. If true, this conclusion would have strong consequences in several scientific fields, including structural biology and protein design, where results would depend on DNA sequence rather than protein sequence. Here, we show that the original statistical methodology used in the referred study was formally incorrect. Furthermore, when using a correct approach, we demonstrate that the influence of the codon on the distribution of the dihedral angles is not statistically significant for any type of secondary structure.
In a recent work, Rosenberg et al. (1) studied the dependence between the identity of synonymous codons and the distribution of the backbone dihedral angles of the translated amino acids. In the past, it has been shown that the use of synonymous codons is highly relevant in multiple biological processes including, among others, mRNA splicing, translational rates, and protein folding (2, 3). While the correlation between synonymous codons and secondary structure in translated proteins has been widely studied (4–6), Rosenberg et al. evaluated the effect of codon identity on a finer scale, analyzing whether the distribution of dihedral angles within secondary structure elements is significantly altered when synonymous codons are used. Their conclusion, showing significant differences, particularly for amino acid residues involved in -strands, would represent a new paradigm for the role played by synonymous codons in defining protein structure. In this work, we show that the statistical methodology used in ref. 1 is formally incorrect. Besides, it is based on density estimates that might be imprecise for small sample sizes, yielding misleading comparisons. Using an appropriate methodology, we reanalyze the data presented in ref. 1 and show that the influence of the codon on the distribution of the dihedral angles is not statistically significant for any of the secondary structures, contradicting the conclusion of ref. 1. These results are corroborated by repeating the analysis on structures for the same set of proteins extracted from the AlphaFold Database (7), and shown to be robust with respect to the definition of secondary structural classes and also when considering the nature of the neighbor residues.
Results
Limitations of the Original Methodology.
Keeping the notation of ref. 1, if denotes a pair of synonymous codons and a type of secondary structure, Rosenberg et al. aimed at testing the null hypothesis that both codon-specific distributions are the same. To do so, the authors introduced a metric to quantify differences between the distributions corresponding to different codons. Then, to assess the significance of such differences, they proposed to draw pairs of bootstrapped samples and to compare them with their synonymous codon counterparts using a permutation test procedure, with permutations. For each bootstrap sample , if denotes the number of permutations where the permuted metric is larger than the base metric (obtained from nonpermuted data), they proposed the quantity
| [1] |
as a -value for . We can reformulate (Eq. 1) in order to gain insight into its statistical behavior. First, let us define , which is a well-defined -value for the -th permutation test. Letting , it can be shown that
| [2] |
That is, for sufficiently large , is approximately the empirical mean of the -values associated with individual permutation tests. Details can be found in SI Appendix, section A.
However, is not a valid -value (see SI Appendix, section A for a formal proof). Let us recall that a -value is statistically valid if and only if its distribution under the null hypothesis is Super-Uniform, that is, if its cumulative distribution function (CDF) is upper bounded by that of the Uniform distribution (denoted by U below): for all in . Moreover, the closer the -value distribution under the null hypothesis is to U, the more powerful the corresponding test is. Super-Uniformity is satisfied for classical permutation -values such as (with the CDF getting closer to U as increases), but not for averages of -values like . Instead, all the could be correctly aggregated by taking their minimum and correcting the result for multiple testing (Bonferroni aggregation).
If the were independent, then, by the Central Limit Theorem, the distribution of would be asymptotically Gaussian as tends to infinity. This distribution is not Super-Uniform, and therefore tests based on such a distribution are mathematically incorrect. In the setting of ref. 1, the are not independent since they have been computed by bootstrapping from one initial sample. However, for small values of (including the choice of in ref. 1), the null distribution of (Eq. 1) deviates only slightly from the asymptotic independence setting. This is illustrated in Fig. 1, where the null distribution of (Eq. 1) is simulated using the parameters chosen in ref. 1. Details on the simulation and on the effect of and are included in SI Appendix, section B.
Fig. 1.
Simulation of the null distribution of for and , chosen in ref. 1. Left panel (A): histogram and kernel density estimate. Right panel (B): empirical Cumulative Distribution Function (CDF). Purple lines: asymptotic Gaussian distribution ; red lines: uniform distribution on .
The empirical distribution of presented in Fig. 1 is not Super-Uniform. Moreover, the test is extremely conservative for large values of the test statistic—that is, for low P-values. This can result in a high number of false negatives and in overlooking substantial differences between the compared samples.
Finally, since the scores are not valid -values, they cannot be incorporated in a multiple testing procedure such as the Benjamini–Hochberg (BH) procedure (8) used in ref. 1 for False Discovery Rate (FDR). Consequently, using and adjusting (Eq. 1) for multiplicity will yield misleading analyses of the overall behavior of all the null hypotheses and therefore, inaccurate results when the specificities of individual amino acids are studied a posteriori.
Beyond the above-mentioned methodological issues, the approach proposed in ref. 1 presents several practical limitations. It needs, on the one hand, a substantial reduction of sample sizes, which may imply an important loss of information in some cases and thus a substantial power reduction. Indeed, the maximum sample size in ref. 1 was set to , whereas, for instance, the mean sample size for -helical conformations was and only 18% of the samples had sizes below . On the other hand, it requires a prior parametric estimation of the underlying densities, whose parameters would need to be optimized. In ref. 1, the authors opted to fix the same bandwidth for all comparisons. However, too small bandwidths can lead to density undersmoothing, especially for small sample sizes. This would yield biased kernel estimates whose comparison might lead to false positives.
Correct Goodness-of-Fit Tests Show No Significant Differences Between Distributions.
Using a well-suited statistical test (9), we tested all the pairwise differences between the distributions for all pairs of synonymous codons, for each amino acid. As in ref. 1, we kept data points where codons were unambiguously assigned. Similarly, we repeated the same redundancy filtering based on averaging points with identical UniProt ID and sequence position. Note that an alternative filtering approach, which kept every first redundant point in the dataset, produced similar results. To facilitate the comparison with the results in ref. 1, we kept only pairs of samples with sizes and we classified all conformations by secondary structure according to DSSP (10): extended strand (E) and -helix (H). We also performed the analysis for all the conformations not belonging to any of these two classes, which we named Others. As in ref. 1, the BH multiplicity correction (8) was performed. When representing the Empirical Cumulative Distribution Function (ECDF) of the -values, points laying above the line of slope are considered rejections for a target FDR of according to the BH procedure. The results are presented in Fig. 2A.
Fig. 2.
Empirical cumulative distribution function (ECDF) of corrected -values corresponding to testing the equality of distribution pairs of synonymous codons in the (A) experimental and (B) AlphaFold database, for conformations in extended strand (E, red), -helix (H, green) and other (Others, blue) secondary structures. The dashed blue line of slope corresponds to a target FDR set to for the BH correction. The dashed gray line represents the CDF of a Uniform distribution.
The -value distributions presented in Fig. 2A indicate that, for all the tested hypotheses, differences between codon-specific Ramachandran plots are not significant at level . Indeed, the three depicted ECDF lay below the line of slope and therefore no rejections are produced for a target FDR of . Note that our results for H structures agree with those presented in ref. 1, for which no significant discrepancies were retrieved. However, results for E structures strongly contradict those in ref. 1, for which significant conformational differences were found for 66% of the synonymous codon pairs tested. Therefore, the main conclusion in ref. 1 is firmly refuted when an appropriate statistical approach is used and, as a consequence, no significant effect of the translated codon identity on the amino acid backbone conformation can be inferred from the current data.
The discrepancies between the two analyses are most probably due to the above-discussed incorrectness of the methods applied in the original study and, especially, from the potential use of biased density estimates to describe small samples. Indeed, when we looked at the codon pairs whose distributions were found significantly different in ref. 1, we observed that their sample sizes concentrated around the smallest values in the dataset (SI Appendix, section C). This correspondence between significant differences and small sample sizes is counterintuitive for a well-defined statistical test. When the sample size is small and there is limited information about the underlying distribution, the null hypothesis is not rejected unless the evidence against it is very strong. Similarly, -values closer to zero are often found for larger sample sizes, where the statistical power (the test’s ability to detect differences) is higher. The opposite phenomenon found here suggests that false positives might be appearing due to misleading comparisons of small samples. As we discussed in the previous section, this may be caused by undersmoothed kernel density estimates computed with too small bandwidths for that setting.
To substantiate our conclusions, we performed additional analyses in alternative settings. First, we used structures extracted from the AlphaFold Database (7) for the same set of sequences, keeping residues with pLDDT values larger than 90. Results, shown in Fig. 2B, qualitatively match those in Fig. 2A and therefore support the aforementioned conclusions. Our findings are equally consistent when using a less restrictive structural classification, based on nonoverlapping regions on the Ramachandran space (SI Appendix, section D) (11, 12). Similarly, fixing the identities of neighboring amino acids to account for neighbor effects yielded the same conclusions (SI Appendix, section E).
Concluding Remarks
The work of Rosenberg et al. introduced a new paradigm in biology: The nature of the codon influences the angles of protein secondary structures. While the correlation between synonymous codons and secondary structure in the translated proteins is a well-known phenomenon (4–6), differences at the level for the most populated conformational states emerged as an intriguing and controversial observation (13). The conclusions reached from their work could have major impact on one of the paradigms of structural biology, which should shift from protein-sequence to DNA-sequence structure encoding, information that is not currently stored in structural databases.
With the present study, we have demonstrated the incorrectness of the statistical methodology proposed in ref. 1 to compare probability distributions. This, together with the use of density estimates that are not appropriately tuned for small sample sizes, makes the approach in ref. 1 unsuitable to correctly compare codon-specific Ramachandran plots. When using our previously developed statistical tests (9) on the same database, no significant differences between the structures encoded by synonymous codons could be detected. Importantly, we demonstrated that this observation is robust with respect to the origin of the 3D structure, the definition of the structural classes and the type of the flanking residues. Therefore, the ensemble of our results unambiguously show that, based on available data, a significant influence of the codon usage in the distribution of backbone dihedral angles in proteins cannot be inferred.
It is worth mentioning that our results have been derived from a limited set of Escherichia coli proteins for which the structure had been experimentally determined. Moreover, it was assumed that the gene used for the production of each protein was the same as in the original organism. We believe that a general understanding of codon-specific plots can only be achieved by using extensive structural databases, including the corresponding gene sequence, and applying robust statistical methods, such as the one presented here.
Materials and Methods
We implemented the first of the two-sample goodness-of-fit tests for probability distributions supported on the two-dimensional flat torus presented in ref. 9. The approach is nonparametric and based on the -Wasserstein distance.
Supplementary Material
Appendix 01 (PDF)
Acknowledgments
Author contributions
P.B., P.N., and J.C. designed research; J.G.-D. and P.M. performed research; J.G.-D. contributed new analytic tools; J.G.-D., P.M., and P.N. analyzed data; and J.G.-D., P.B., P.N., and J.C. wrote the paper.
Competing interests
The authors declare no competing interest.
Footnotes
This article is a PNAS Direct Submission.
Data, Materials, and Software Availability
The code to reproduce the analyses presented in Figs. 1 and 2, as well as the additional analyses described throughout the text, is available at: https://github.com/gonzalez-delgado/synco (14). Previously published data were used for this work (https://doi.org/10.7910/DVN/5P81D4) (15).
Supporting Information
References
- 1.Rosenberg A. A., Marx A., Bronstein A. M., Codon-specific Ramachandran plots show amino acid backbone conformation depends on identity of the translated codon. Nat. Commun. 13, 2815 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Pagani F., Raponi M., Baralle F. E., Synonymous mutations in CFTR exon 12 affect splicing and are not neutral in evolution. Proc. Natl. Acad. Sci. U.S.A. 102, 6368–6372 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Buhr F., et al. , Synonymous codons direct cotranslational folding toward different protein conformations. Mol. Cell 61, 341–351 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Orešiš M., Shalloway D., Specific correlations between relative synonymous codon usage and protein secondary structure. J. Mol. Biol. 281, 31–48 (1998). [DOI] [PubMed] [Google Scholar]
- 5.Saunders R., Deane C. M., Synonymous codon usage influences the local protein structure observed. Nucleic Acids Res. 38, 6719–6728 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Pechmann S., Frydman J., Evolutionary conservation of codon optimality reveals hidden signatures of cotranslational folding. Nat. Struct. Mol. Biol. 20, 237–243 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Varadi M., et al. , AlphaFold protein structure database: Massively expanding the structural coverage of protein-sequence space with high-accuracy models. Nucleic Acids Res. 50, D439–D444 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Benjamini Y., Hochberg Y., Controlling the false discovery rate: A practical and powerful approach to multiple testing. J. R. Stat. Soc. Ser. B 57, 289–300 (1995). [Google Scholar]
- 9.González-Delgado J., González-Sanz A., Cortés J., Neuvial P., Two-sample goodness-of-fit tests on the flat torus based on Wasserstein distance and their relevance to structural biology. Electron. J. Stat. 17, 1547–1586 (2023). [Google Scholar]
- 10.Kabsch W., Sander C., Dictionary of protein secondary structure: Pattern recognition of hydrogen-bonded and geometrical features. Biopolymers 22, 2577–2637 (1983). [DOI] [PubMed] [Google Scholar]
- 11.Ozenne V., et al. , Mapping the potential energy landscape of intrinsically disordered proteins at amino acid resolution. J. Am. Chem. Soc. 134, 15138–15148 (2012). [DOI] [PubMed] [Google Scholar]
- 12.Estaña A., et al. , Predicting secondary structure propensities in IDPs using simple statistics from three-residue fragments. J. Mol. Biol. 432, 5447–5459 (2020). [DOI] [PubMed] [Google Scholar]
- 13.Akeju O. J., Cope A. L., Re-examining correlations between synonymous codon usage and protein bond angles in Escherichia coli. Genome Biol. Evol. 16, evae080 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.González-Delgado J., gonzalez-delgado/synco. GitHub. https://github.com/gonzalez-delgado/synco. Accessed 4 May 2025.
- 15.Rosenberg A., Replication Data for: Rosenberg, Marx, Bronstein, Nat. Comm., 2022. Harvard Dataverse. 10.7910/DVN/5P81D4. Accessed 14 December 2024. [DOI]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Appendix 01 (PDF)
Data Availability Statement
The code to reproduce the analyses presented in Figs. 1 and 2, as well as the additional analyses described throughout the text, is available at: https://github.com/gonzalez-delgado/synco (14). Previously published data were used for this work (https://doi.org/10.7910/DVN/5P81D4) (15).


