get_enc | R Documentation |
get_enc
computes ENC of each CDS
get_enc(cf, codon_table = get_codon_table(), level = "subfam")
cf |
matrix of codon frequencies as calculated by |
codon_table |
codon_table a table of genetic code derived from |
level |
"subfam" (default) or "amino_acid". For which level to determine ENC. |
vector of ENC values, sequence names are used as vector names
- Wright F. 1990. The 'effective number of codons' used in a gene. Gene 87:23-29. - Sun X, Yang Q, Xia X. 2013. An improved implementation of effective number of codons (NC). Mol Biol Evol 30:191-196.
# estimate ENC of yeast genes
cf_all <- count_codons(yeast_cds)
enc <- get_enc(cf_all)
head(enc)
hist(enc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.