R/getset.R

#' Get PCA variances
#'
#' @return A data frame of percent variation explained by each PC.
#'
#' @rdname pcaVariances
setMethod("pcaVariances", "SCtkExperiment", function(x) x@pcaVariances)

#' Set PCA variances
#'
#' @param value The DataFrame of pcaVariances
#'
#' @return A SCtkExperiment object with the pcaVariances object set.
#'
#' @rdname pcaVariances
setReplaceMethod("pcaVariances", "SCtkExperiment", function(x, value) {
  x@pcaVariances <- value
  return(x)
})

Try the singleCellTK package in your browser

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

singleCellTK documentation built on Dec. 2, 2018, 6 p.m.