base.freq

0th

Percentile

Base frequencies from DNA Sequences

This function computes the relative frequencies (i.e. percentages) of the four DNA bases (adenine, cytosine, guanine, and thymidine) from a sample of sequences.

Keywords
univar
Usage
base.freq(x)
Arguments
x
a vector, a matrix, or a list which contains the DNA sequences.
Details

The base frequencies are computed over all sequences in the sample. All missing or unknown sites are discarded from the computations.

Value

  • A numeric vector stoting the relative frequencies with names c("a", "c", "g", "t").

See Also

GC.content, seg.sites, nuc.div, DNAbin

Aliases
  • base.freq
Documentation reproduced from package ape, version 2.1-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.