File: logBH.Rd

package info (click to toggle)
r-bioc-scran 1.26.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,692 kB
  • sloc: cpp: 733; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_markers.R
\name{.logBH}
\alias{.logBH}
\title{BH correction on log-p-values}
\usage{
.logBH(log.p.val)
}
\arguments{
\item{log.p.val}{Numeric vector of log-transformed p-values.}
}
\value{
A numeric vector of the same length as \code{log.p.val} containing log-transformed BH-corrected p-values.
}
\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.
}
\examples{
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)

}
\author{
Aaron Lun
}