nc.f | R Documentation |
Calculates the expected Nc value of a gene for a given GC content at the third codon positions.
nc.f(x)
x |
a vector of GC contents at third codon positions |
Without selection on codon bias, the expected value of Nc as a function of GC content at third positions, x, is given by
f(x) = -6 + x + 34/(x^2 + (1.025 - x)^2).
This equation follows dos Reis et al. (2004, see also Wright 1990 for the original).
A vector of Nc values for the given GC contents.
Mario dos Reis
Wright F. (1990) The 'effective number of codons' used in a gene. Gene, 87: 23–9.
dos Reis M., Savva R., and Wernisch L. (2004) Solving the riddle of codon usage preferences: a test for translational selection. Nucleic Acids Res., 32: 5036–44.
curve(nc.f(x), xlab="GC3s content", ylab="Nc") points(ecolik12$w$GC3s, ecolik12$w$Nc, pch=19)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.