countCGs {MassArray} | R Documentation |
Function to count the number of CG dinucleotides in a given sequence (can include special characters for degenerate bases - i.e. 'Y' or 'R')
countCGs(sequence)
sequence |
Nucleotide sequence input as a character string |
Returns a numerical count of the number of CG dinucleotides in a given sequence, NA if sequence input is NA
Reid F. Thompson (rthompso@aecom.yu.edu), John M. Greally (jgreally@aecom.yu.edu)
countCGs("AAACGCGAAAAAAAYGAAA")