Theories behind cubar
Bu Zi (draft), Hong Zhang (revise)
Source:vignettes/articles/theory.Rmd
theory.Rmd
The Codon Adaptation Index (CAI)
CAI measures the similarity of codon usage between a coding sequence (CDS) and a set of highly expressed genes (Sharp and Li 1987). To quantify the relative synonymous codon usage (RSCU) values among the set of highly expressed genes, the observed frequency of each codon is divided by the frequency expected under the assumption of equal usage of the synonymous codons for an amino acid (referred to as codon family hereafter):
where is the number of occurrences of the th codon for the th codon family in CDSs of highly expressed genes, and is the total number of alternative codons for the th codon family. is the number of occurrence of codons in the th codon family. The relative adaptiveness of a codon, , is defined as the RSCU of that codon divided by the maximum RSCU of that codon family:
The CAI for a CDS is then calculated as the geometric mean of the relative adaptiveness of codons used in the CDS of that gene:
where is the total number of codons in CDS.
The effective number of codons (ENC)
ENC reflects the unequal usage of codons in the CDS of a gene (Wright 1990). The lower the ENC, the larger the overall bias in codon usage. The original implementation of ENC calculates the homozygosity of codon usage in codon family as follows:
where is the number of occurrence of codons in the th codon family as used above. In cubar, codon family homozygosity is calculated with an improved implementation that is more robust to bias due to small (Sun, et al. 2013):
Then we can calculate the final ENC of the CDS of a gene as follows:
where denotes the number of codon families with synonymous codons:
It should be noted that throughout cubar, codon families with more than four synomymous codons are divided into different subfamilies based on the first two nucleotides of codons.
The fraction of optimal codons (Fop)
measures the fraction of optimal codons in the CDS of a gene given a list of optimal codons (Ikemura 1981). It is calculated as follows:
where is the indicator function. In case the optimal codons are unknown, cubar automatically determines the optimal codons in each codon family based on the rationale that optimal codons tend to be used more frequently in genes showing stronger codon usage bias. Specifically, as the number of occurrence of codon among codon family in gene follows a Binomial distribution:
the influence of codon usage bias on the tendency to use codon can be estimated with binomial regression using the following link function:
If codon
is more likely to be used in genes with higher overall codon bias (i.e.,
smaller ENC), then the regression coefficient should be negative and
significantly differs from zero. cubar implements the binomial
regression using the glm
function with
binomial
family in R. Optimal codons are determined with a
false discovery rate of 0.001 after multiple testing correction with the
Benjamini-Hochberg procedure (Benjamini and Hochberg 1995) by
default.
tRNA Adaptation Index (tAI)
tAI quantifies how much the usage of codons in CDS of a gene resembles the abundance of tRNAs (dos Reis, et al. 2004), which is often approximated by tRNA gene copy numbers. To determine tAI, the absolute tRNA adaptiveness value for each codon is defined as
where is the number of tRNA isoacceptors recognizing the th codon and is the abundance or gene copy number of the th tRNA recognizing this codon. is a panelty on non-canonical codon–anticodon pairings and differs among different species (Sabi and Tuller 2014). Cubar uses average values for eukaryotes (Sabi and Tuller 2014) by default. Absolute adaptiveness values are then normalized by maximum as follows:
where is the geometric mean of non-zero absolute adaptiveness values. Then tAI of codons in a gene can be calculated as follows, similar to CAI:
The mean codon stabilization coefficients (CSCg)
CSC of a codon is the Pearson correlation coefficient between the frequency of that codon and the mRNA half-lives across different genes (Presnyak, et al. 2015). CSCg is the average codon stabilization coefficient (CSC) of codons in the CDS of a gene (Carneiro, et al. 2019):
The deviation from proportionality (Dp)
measures the departure of the codon usage of an exogenous CDS from the tRNA pool of the host organism (Chen, et al. 2020; Chen and Yang 2022). For a codon family with synonymous codons (), the fraction of codon among all occurrences of this family in the exogenous CDS is:
The relative tRNA availability of this codon in the codon family in the host organism is calculated as:
where can be relative tRNA adaptiveness values as in the calculation of tAI or the RSCU of host protein-coding genes as in the calculation of CAI. The discrepancy between codon proportions of exogenous CDS and host tRNA availability is then calculated as the Euclidean distance:
Finally, is calculated as the geometric mean of distances for all codon families with at least two synonymous codons:
where and is the indicator function.
References
- Benjamini Y, Hochberg Y. 1995. Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society: Series B (Methodological) 57:289-300.
- Carneiro RL, Requião RD, Rossetto S, Domitrovic T, Palhano FL. 2019. Codon stabilization coefficient as a metric to gain insights into mRNA stability and codon bias and their relationships with translation. Nucleic Acids Res 47:2216-2228.
- Chen F, Wu P, Deng S, Zhang H, Hou Y, Hu Z, Zhang J, Chen X, Yang JR. 2020. Dissimilation of synonymous codon usage bias in virus-host coevolution due to translational selection. Nat Ecol Evol 4:589-600.
- Chen F, Yang JR. 2022. Distinct codon usage bias evolutionary patterns between weakly and strongly virulent respiratory viruses. iScience 25:103682.
- dos Reis M, Savva R, Wernisch L. 2004. Solving the riddle of codon usage preferences: a test for translational selection. Nucleic Acids Res 32:5036-5044.
- Ikemura T. 1981. Correlation between the abundance of Escherichia coli transfer RNAs and the occurrence of the respective codons in its protein genes: a proposal for a synonymous codon choice that is optimal for the E. coli translational system. J Mol Biol 151:389-409.
- Presnyak V, Alhusaini N, Chen YH, Martin S, Morris N, Kline N, Olson S, Weinberg D, Baker KE, Graveley BR, et al. 2015. Codon optimality is a major determinant of mRNA stability. Cell 160:1111-1124.
- Sabi R, Tuller T. 2014. Modelling the efficiency of codon-tRNA interactions based on codon usage bias. DNA Res 21:511-526.
- Sharp PM, Li WH. 1987. The codon Adaptation Index–a measure of directional synonymous codon usage bias, and its potential applications. Nucleic Acids Res 15:1281-1295.
- Sun X, Yang Q, Xia X. 2013. An improved implementation of effective number of codons (nc). Mol Biol Evol 30:191-196.
- Wright F. 1990. The ‘effective number of codons’ used in a gene. Gene 87:23-29.