Learn R Programming

AnaCoDa (version 0.1.4.4)

getCodonCounts: Get Codon Counts For all Amino Acids

Description

provides the codon counts for a fiven amino acid across all genes

Usage

getCodonCounts(genome)

Arguments

genome

A genome object from which the counts of each codon can be obtained.

Value

Returns a data.frame storing the codon counts for each amino acid.

Details

The returned matrix containes a row for each gene and a column for each synonymous codon of aa.

Examples

Run this code
# NOT RUN {
genome_file <- system.file("extdata", "genome.fasta", package = "AnaCoDa")
 
## reading genome
genome <- initializeGenomeObject(file = genome_file)
counts <- getCodonCounts(genome)

# }

Run the code above in your browser using DataLab