Calculate Codon Adaptation Index
jamCai(x, codonDF, ...)
| x | character vector containing DNA or RNA sequence, intended
to include amino acid codons in frame beginning with the first
character. It is sent to |
|---|---|
| codonDF | data.frame containing amino acid codons per row,
with colname |
| ... | additional arguments are ignored. |
numeric vector with length length(x), named with
names(x) containing codon adaptation index (cai) values
equivalent to those produced by seqinr::cai().
This function is equivalent to seqinr::cai() except that it
runs in vectorized form and is markedly more efficient.
Other jam codon usage functions:
codonUsage2df(),
dna2codon()