DOI: 10.18129/B9.bioc.twilight  

This package is for version 3.17 of Bioconductor; for the stable, up-to-date release version, see twilight.

Estimation of local false discovery rate

Bioconductor version: 3.17

In a typical microarray setting with gene expression data observed under two conditions, the local false discovery rate describes the probability that a gene is not differentially expressed between the two conditions given its corrresponding observed score or p-value level. The resulting curve of p-values versus local false discovery rate offers an insight into the twilight zone between clear differential and clear non-differential gene expression. Package 'twilight' contains two main functions: Function twilight.pval performs a two-condition test on differences in means for a given input matrix or expression set and computes permutation based p-values. Function twilight performs a stochastic downhill search to estimate local false discovery rates and effect size distributions. The package further provides means to filter for permutations that describe the null distribution correctly. Using filtered permutations, the influence of hidden confounders could be diminished.

Author: Stefanie Scheid <stefanie.scheid at>

Maintainer: Stefanie Scheid <stefanie.scheid at>

Citation (from within R, enter citation("twilight")):


To install this package, start R (version "4.3") and enter:

if (!require("BiocManager", quietly = TRUE))


For older versions of R, please refer to the appropriate Bioconductor release.


To view documentation for the version of this package installed in your system, start R and enter:



PDF R Script Estimation of Local False Discovery Rates
PDF   Reference Manual


biocViews DifferentialExpression, Microarray, MultipleComparison, Software
Version 1.76.0
In Bioconductor since BioC 1.6 (R-2.1) or earlier (> 18.5 years)
License GPL (>= 2)
Depends R (>= 2.10), splines (>= 2.2.0), stats (>= 2.2.0), Biobase(>= 1.12.0)
Imports Biobase, graphics, grDevices, stats
Suggests golubEsets(>= 1.4.2), vsn(>= 1.7.2)
Depends On Me OrderedList
Imports Me
Suggests Me
Links To Me
Build Report  

Package Archives

Follow Installation instructions to use this package in your R session.

Source Package twilight_1.76.0.tar.gz
Windows Binary
macOS Binary (x86_64) twilight_1.76.0.tgz
macOS Binary (arm64) twilight_1.76.0.tgz
Source Repository git clone
Source Repository (Developer Access) git clone
Bioc Package Browser
Package Short Url
Package Downloads Report Download Stats

Documentation »


R / CRAN packages and documentation

Support »

Please read the posting guide. Post questions about Bioconductor to one of the following locations: