GetRandomSeq <-
function(seq.len){
## Generate a genetic random sequence
# seq.len: length of the new sequence
if(!is(seq.len, "numeric")) stop("The input must be numeric \n")
# Load nucleotide bases
nt.nms <- DNA_BASES
return(paste(sample(nt.nms, seq.len, replace=TRUE),
collapse=""))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.