getDeltaFromMedian: Compute the difference from median

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/getDeltaFromMedian.R

Description

Compute the delta value for each cell, defined as the difference between the score for the assigned label and the and median score across all labels.

Usage

1

Arguments

results

A DataFrame containing the output generated by SingleR or classifySingleR.

Details

This funciton computes the same delta value that is used in pruneScores, for users who want to apply more custom filters or visualizations.

Value

A numeric vector containing delta values for each cell in results.

Author(s)

Aaron Lun

See Also

pruneScores, where the delta values are used.

Examples

1
2
3
4
# Running the SingleR() example.
example(SingleR, echo=FALSE)

summary(getDeltaFromMedian(pred))

SingleR documentation built on Feb. 4, 2021, 2:01 a.m.