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