evaluateNorm {pipeComp} | R Documentation |
evaluateNorm
evaluateNorm(x, clusters = NULL, covars)
x |
An object of class 'Seurat' or 'SingleCellExperiment' with normalized data |
clusters |
A vector of true cluster identities. If missing, will attempt to fetch it from the 'phenoid' colData. |
covars |
Covariates to include, either as data.frame or as colData columns of 'x' |
a data.frame.
# random data library(scater) sce <- logNormCounts(mockSCE(ngenes = 500)) sce <- addPerCellQC(sce) # random population labels sce$cluster <- sample(LETTERS[1:3], ncol(sce), replace=TRUE) evaluateNorm(sce, sce$cluster, covars="detected")