countCGs {MassArray}R Documentation

Count number of CGs

Description

Function to count the number of CG dinucleotides in a given sequence (can include special characters for degenerate bases - i.e. 'Y' or 'R')

Usage

countCGs(sequence)

Arguments

sequence

Nucleotide sequence input as a character string

Value

Returns a numerical count of the number of CG dinucleotides in a given sequence, NA if sequence input is NA

Author(s)

Reid F. Thompson (rthompso@aecom.yu.edu), John M. Greally (jgreally@aecom.yu.edu)

Examples

countCGs("AAACGCGAAAAAAAYGAAA")

[Package MassArray version 1.45.0 Index]