evaluateNorm: evaluateNorm

Description Usage Arguments Value Examples

View source: R/scrna_evaluationFunctions.R

Description

evaluateNorm

Usage

1
evaluateNorm(x, clusters = NULL, covars)

Arguments

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'

Value

a data.frame.

Examples

1
2
3
4
5
6
7
# 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")

pipeComp documentation built on Nov. 8, 2020, 7:35 p.m.