baseFreqs | R Documentation |
Calculate nucleotide base frequencies along a sequence.
baseFreqs(x, bases = NULL, ignore = c("n", "x", "-", "."), simplify = TRUE)
x |
a gtypes object with aligned sequences or a list of aligned DNA sequences. |
bases |
character vector of bases. Must contain valid IUPAC codes. If
|
ignore |
a character vector of bases to ignore when calculating site frequencies. |
simplify |
if there is a single locus, return result in a simplified
form? If |
For each gene, a list containing:
site.freqs | a matrix of base frequencies at each site. |
base.freqs | a vector of overall base proportion composition. |
Eric Archer eric.archer@noaa.gov
data(dloop.g)
bf <- baseFreqs(dloop.g)
# Frequencies of first 10 sites
bf$site.freqs[, 1:10]
# Base composition
bf$base.freqs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.