Learn R Programming

R453Plus1Toolbox (version 1.22.0)

baseFrequency: Absolute And Relative Frequency Of The Four Bases.

Description

This function returns the absolute and the relative frequency of the four bases (A, C, G, T).

Usage

baseFrequency(object)

Arguments

object
An object of class DNAStringSet, ShortRead or SFFContainer.

Value

A data.frame with two columns containing the absolute and relative frequencies respectively and six rows, one for each of the four bases (A, C, G, T), one for other symbols contained in the reads and one summarizing the five aforementioned rows.

Details

This function makes use of the alphabetFrequency function from package Biostrings.