## Private Functions
# accessor for OI/SS
#' .getDerivedFrom
#' @param cvcl CVCL id
#' @param meta.df Cell line metadata, accessible from CCLid::ccl_table
#' @param melt.cells Melted cellosaurus dataframe, accessible from CCLid::ccl_table
#'
.getDerivedFrom <- function(cvcl, melt.df, meta.df){
cvcl.oi <- unique(melt.cells[grep(paste0("^", cvcl, "$"), melt.cells$CVCL),]$OI)
oi.list <- lapply(cvcl.oi, function(cv) melt.cells[grep(paste0("^", cv, "$"), melt.cells$CVCL),])
cl.match <- do.call(rbind, oi.list)
if(nrow(cl.match) > 0){
cl.match$acr <- "OI"
}
return(cl.match)
}
#' .getSynonymous
#' @param cvcl CVCL id
#' @param melt.cells Melted cellosaurus dataframe, accessible from CCLid::ccl_table
#'
.getSynonymous <- function(cvcl, melt.cells){
cl.match <- melt.cells[grep(paste0("^", cvcl, "$"), melt.cells$CVCL),]
if(nrow(cl.match) > 0){
cl.match$acr <- "SS"
}
return(cl.match)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.