R/AllMethods.R

#' FSPY show method
#'
#' Prevents R from crashing by trying to print all slots of an FSPY object  if a returned object is not stored in a variable.
#'
#' @param object An FSPY object
#' @aliases show, show-method
#'
#' @export
#'
#' @docType methods
#' @method flowSpy show
#'
#' @keywords internal
#'
#' @return Cell number of FSPY object
#'
#' @examples
#' if (FALSE) {
#'   fspy
#' }
#'
setMethod(
  f = "show",
  signature = "FSPY",
  definition = function(object) {
    cat(
      "FSPY Information:\n",
      "Input cell number:", nrow(object@raw.data), " cells \n",
      "Enroll marker number:", ncol(object@log.data), " markers \n",
      "Cells after downsampling:", sum(object@meta.data$dowsample), " markers \n"
    )
    invisible(NULL)
  }
)

Try the flowSpy package in your browser

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

flowSpy documentation built on Nov. 8, 2020, 6:53 p.m.