R/check.method.R

Defines functions check.method

#check if chosen method is present in method.names vector, use smart autocompletition

check.method <- function(method.names, input.method) {
  res <- method.names[grepl(tolower(input.method), method.names)]
  
  if (length(res) == 0)
    stop("Name ", input.method, " cannot be associated with any available method.")
  
  if (length(res) > 1)
    stop("Name ", input.method, " is too ambiguous. Rerun with more precise name.")
  
  res
}

Try the chipPCR package in your browser

Any scripts or data that you put into this service are public.

chipPCR documentation built on March 5, 2021, 9:06 a.m.