logBH: BH correction on log-p-values

Description Usage Arguments Value Author(s) Examples

Description

Perform a Benjamini-Hochberg correction on log-transformed p-values to get log-adjusted p-values, without the loss of precision from undoing and redoing the log-transformations.

Usage

1
.logBH(log.p.val)

Arguments

log.p.val

Numeric vector of log-transformed p-values.

Value

A numeric vector of the same length as log.p.val containing log-transformed BH-corrected p-values.

Author(s)

Aaron Lun

Examples

1
2
3
4
5
6
log.p.values <- log(runif(1000))
obs <- .logBH(log.p.values)
head(obs)

ref <- log(p.adjust(exp(log.p.values), method="BH"))
head(ref)

scran documentation built on April 17, 2021, 6:09 p.m.