gccount {sequences} | R Documentation |
Returns the number of 'A', 'C', 'G' and 'T' bases in the 'inseq' sequence string.
gccount(inseq)
inseq |
a DNA sequence string. |
This function calls a C primitive
A numeric of length 4
Laurent Gatto lg390@cam.ac.uk
s <- "AAAACCCGGT" cnt <- gccount(s) cnt stopifnot(cnt==table(strsplit(s,"")))