jamCai: Calculate Codon Adaptation Index

jamCaiR Documentation

Calculate Codon Adaptation Index

Description

Calculate Codon Adaptation Index

Usage

jamCai(x, codonDF, ...)

Arguments

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 dna2codon() which creates a character vector whose elements all contain three characters. The input x represents sequence data for one protein-coding transcript sequence.

codonDF

data.frame containing amino acid codons per row, with colname "codon" containing three-character codon sequences, and colname "multifreq" containing the relative frequency versus max of codon use per amino acid, as produced by codonUsage2df().

...

additional arguments are ignored.

Details

This function is equivalent to seqinr::cai() except that it runs in vectorized form and is markedly more efficient.

Value

numeric vector with length length(x), named with names(x) containing codon adaptation index (cai) values equivalent to those produced by seqinr::cai().

See Also

Other jam codon usage functions: codonUsage2df(), dna2codon()


jmw86069/jambio documentation built on Nov. 29, 2022, 11:08 a.m.