R/show-methods.R

## ==========================================================================
## show and print methods display details about an object, and print usually
## allows for a bit mor fine-grained control.
## ==========================================================================


#' 
#' BeadFlowFrame
#' 
#' @rdname show-methods
setMethod("show",
          signature=signature(object="BeadFlowFrame"),
          definition=function(object)
      {
          dm <- dim(exprs(object))
          cat(paste("BeadFlowFrame object '",
                    identifier(object),
                    "'\nfrom ", getDate(object),
                    "\nwith ", length(object), " beads and ", 
                    dm[2], " observables:\n", sep=""))
          show(pData(parameters(object)))
          cat(paste(length(description(object)), " keywords are stored in the ",
                    "'description' slot\n", sep = ""))
          cat('Beads MEF\n')
          show(object@beads.mef)
          return(invisible(NULL))
      })


#'
#' GatedBeadFlowFrame
#'
#'@rdname show-methods
setMethod("show",
          signature=signature(object="GatedBeadFlowFrame"),
          definition=function(object)
      {
          dm <- dim(exprs(object))
          cat(paste("GatedBeadFlowFrame object '",
                    identifier(object),
                    "'\nfrom ", getDate(object),
                    "\nwith ", length(object), " beads and ", 
                    dm[2], " observables:\n", sep=""))
          show(pData(parameters(object)))
          cat(paste(length(description(object)), " keywords are stored in the ",
                    "'description' slot\n", sep = ""))
          cat('Beads MEF\n')
          show(object@beads.mef)
          return(invisible(NULL))
      })

Try the flowBeads package in your browser

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

flowBeads documentation built on Nov. 8, 2020, 5:01 p.m.