R/hasMoa.R

Defines functions hasMoa

Documented in hasMoa

#' Check if NSC has Mechanism of Action (MOA) Annotation
#' 
#' @param nsc a string, an NSC identifier
#' 
#' @return a boolean whether the NSC has an MOA
#' 
#' @examples
#' hasMoa("754365")
#' 
#' @concept rcellminer
#' @export
hasMoa <- function(nsc) {
  if(!is.null(getDrugMoaList(nsc))) {
    return(TRUE)
  } else {
    return(FALSE)
  }
}

Try the rcellminer package in your browser

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

rcellminer documentation built on Nov. 26, 2020, 2:02 a.m.