get_cai | R Documentation |
get_cai
calculates Codon Adaptation Index (CAI) of each input CDS
get_cai(cf, rscu, level = "subfam")
cf |
matrix of codon frequencies as calculated by |
rscu |
rscu table containing CAI weight for each codon. This table could be
generated with |
level |
"subfam" (default) or "amino_acid". For which level to determine CAI. |
a named vector of CAI values
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.
# estimate CAI of yeast genes based on RSCU of highly expressed genes
heg <- head(yeast_exp[order(-yeast_exp$fpkm), ], n = 500)
cf_all <- count_codons(yeast_cds)
cf_heg <- cf_all[heg$gene_id, ]
rscu_heg <- est_rscu(cf_heg)
cai <- get_cai(cf_all, rscu_heg)
head(cai)
hist(cai)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.