AnaCoDa (version 0.1.0)

getCodonCountsForAA: Get Codon Counts For Each Amino Acid

Description

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

Usage

getCodonCountsForAA(aa, genome)

Arguments

aa

A one character representation of an amino acid.

genome

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

Value

Returns a matrix storing the codonCounts for the given amino acid.

Details

The returned matrix containes a row for each gene and a coloumn for each codon.

Examples

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

counts <- lapply(X = c("A", "C"), FUN = getCodonCountsForAA, genome = genome)

# }

Run the code above in your browser using DataCamp Workspace