Nothing
countCGs <- function (sequence) {
sequence <- toupper(sequence)
return(unlist(lapply(gregexpr("(YG|CR|CG)", sequence),
function (CGs) {
if (is.na(CGs[1])) {
return(NA)
}
## NO MATCHES TO "CG"
if (CGs[1] == -1) {
return(0)
}
## ONE OR MORE MATCHES TO "CG"
else {
return(length(CGs))
}
}
)))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.