Learn R Programming

cubar (version 1.2.0)

get_aau: Amino Acid Usage

Description

Calculate Amino Acid Usage Frequencies of each CDS.

Usage

get_aau(cf, codon_table = get_codon_table())

Value

a matrix of amino acid frequencies for each CDS. Each row corresponds to a sequence, and each column represents an amino acid.

Arguments

cf

matrix of codon frequencies as calculated by `count_codons()`.

codon_table

a table of genetic code derived from get_codon_table or create_codon_table.

Examples

Run this code
# estimate amino acid frequencies of yeast CDSs
cf_all <- count_codons(yeast_cds)
aau_gene <- get_aau(cf_all)
head(aau_gene)

Run the code above in your browser using DataLab