getCodonCounts: Get Codon Counts For all Amino Acids

Description Usage Arguments Details Value Examples

View source: R/genomeObject.R

Description

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

Usage

1

Arguments

genome

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

Details

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

Value

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

Examples

1
2
3
4
5
genome_file <- system.file("extdata", "genome.fasta", package = "AnaCoDa")
 
## reading genome
genome <- initializeGenomeObject(file = genome_file)
counts <- getCodonCounts(genome)

AnaCoDa documentation built on Jan. 8, 2021, 2:37 a.m.