Learn R Programming

cubar (version 1.1.0)

count_codons: Count occurrences of different codons

Description

count_codons tabulates the occurrences of all the 64 codons in input CDSs

Usage

count_codons(seqs, ...)

Value

matrix of codon (column) frequencies of each CDS (row).

Arguments

seqs

CDS sequences, DNAStringSet.

...

additional arguments passed to Biostrings::trinucleotideFrequency.

Examples

Run this code
# count codon occurrences
cf_all <- count_codons(yeast_cds)
dim(cf_all)
cf_all[1:5, 1:5]
count_codons(yeast_cds[1])

Run the code above in your browser using DataLab