Calculates the codon adaptation index (CAI) of Sharp and Li (1987): the
geometric mean of the relative adaptiveness w of each codon in a gene.
Methionine (ATG), tryptophan (TGG), stop codons and codons with
ambiguous bases are excluded. Values near 1 indicate codon usage like
that of the reference set of highly expressed genes.
Arguments
- .data
A data frame, tibble or
bio_seq_tbl().- seq
<
tidy-select> The sequence column. Can be omitted for a<bio_seq_tbl>.- reference
Codon weights.
NULL(the default) uses weights from the 56 Escherichia coli K-12 ribosomal protein genes in ecoli_cds. Can also be a character vector of reference coding sequences or a table frombio_codon_weights().- .into
Name of the new CAI column.
References
Sharp, P. M. and Li, W.-H. (1987). The codon adaptation index: a measure of directional synonymous codon usage bias, and its potential applications. Nucleic Acids Research, 15, 1281-1295. doi:10.1093/nar/15.3.1281