Nothing
getgc <- function(chr, ref) {
if (chr == "X" | chr == "x" | chr == "chrX" | chr == "chrx") {
chrtemp <- 23
} else if (chr == "Y" | chr == "y" | chr == "chrY" | chr == "chry") {
chrtemp <- 24
} else {
chrtemp <- as.numeric(mapSeqlevels(as.character(chr), "NCBI")[1])
}
if (length(chrtemp) == 0)
message("Chromosome cannot be found in NCBI Homo sapiens database!")
chrm <- unmasked(Hsapiens[[chrtemp]])
seqs <- Views(chrm, ref)
af <- alphabetFrequency(seqs, baseOnly = TRUE, as.prob = TRUE)
gc <- round((af[, "G"] + af[, "C"]) * 100,2)
gc
}
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.