Learn R Programming

R453Plus1Toolbox (version 1.22.0)

gcContent: Calculate The Overall GC-Content

Description

This function calculates the GC-content summarized over all sequences.

Usage

gcContent(object)

Arguments

object
An object of class DNAStringSet, ShortRead or SFFContainer.

Value

A numeric vector of length one containing the overall GC-content.

Details

The GC-content is calculated as follows: (#G + #C / #G + #C + #A + #T) * 100 Where #G is the number of base G in all sequences.