powered by
Calculate nucleotide base frequencies along a sequence.
baseFreqs(x, bases = NULL, ignore = c("n", "x", "-", "."))
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 frequencies.
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