powered by
Calculate nucleotide base frequencies along a sequence.
baseFreqs(x, bases = NULL, ignore = c("n", "x", "-", "."), simplify = TRUE)
a '>gtypes object with aligned sequences or a list of aligned DNA sequences.
character vector of bases. Must contain valid IUPAC codes. If NULL, will return summary of frequencies of observed bases.
NULL
a character vector of bases to ignore when calculating site frequencies.
if there is a single locus, return result in a simplified form? If FALSE a list will be returned wth one element per locus.
FALSE
For each gene, a list containing:
site.freqs
base.freqs
# NOT RUN { data(dloop.g) bf <- baseFreqs(dloop.g) # Frequencies of first 10 sites bf$site.freqs[, 1:10] # Base composition bf$base.freqs # }
Run the code above in your browser using DataLab