R/is_celltypedataset.R

Defines functions is_celltypedataset

Documented in is_celltypedataset

#' Check whether object is a CellTypeDataset
#'
#' Check whether an object is a CellTypeDataset.
#'
#' @param ctd Object.
#'
#' @return boolean
#' 
#' @keywords internal
is_celltypedataset <- function(ctd) {
    (!is.function(ctd)) &&
        all(c("annot", "mean_exp", "specificity") %in% names(ctd[[1]]))
}
NathanSkene/EWCE documentation built on April 10, 2024, 1:02 a.m.