R/isPublic.R

Defines functions isPublic

Documented in isPublic

#' Check if an NSC ID is public 
#' 
#' @param nscs a vector of NSC string IDs
#' @return a vector of boolean values of whether each NSC is public 
#' 
#' @examples 
#' isPublic("-1")
#' isPublic(c("-1", "609699"))
#' 
#' @concept rcellminer
#' @export
#' 
#' @importFrom Biobase exprs
isPublic <- function(nscs) { 
	pubNscSet <- rownames(exprs(getAct(rcellminerData::drugData)))
  return(nscs %in% pubNscSet)
}

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.