Nothing
#' Check if the DNA sequence are in the 4 default types
#'
#' Check if the DNA sequence are in the 4 default types
#'
#' This function checks if the DNA sequence types are in the 4.
#'
#' @param x A character vector, as the input DNA sequence.
#'
#' @return Logical. \code{TRUE} if all of the DNA types of the sequence
#' are within the 4 default types.
#'
#' @return The result character vector
#'
#' @keywords check
#'
#' @aliases checkDNA
#'
#' @author Min-feng Zhu <\email{wind2zhu@@163.com}>
#'
#' @export checkDNA
#'
#' @examples
#' x = 'GACTGAACTGCACTTTGGTTTCATATTATTTGCTC'
#' checkDNA(x) # TRUE
#' checkDNA(paste(x, 'Z', sep = '')) # FALSE
checkDNA = function (x) {
DNADict = c("A","G","C","T")
return(all(strsplit(x, split = "")[[1]]%in%DNADict))
}
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.