Skip to content

twilight

Bioc current

Estimation of local false discovery rate

v1.88.0 · Package record · software · GPL (>= 2)

Release Lineage

Entered 1.5 · Oct 25, 2004

Current · Requires R 4.6

1.0 In 44 of 49 releases 3.23

Description

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.

Advisories

None published for Bioconductor

Test coverage

Line coverage

–

Expression

–

Tests / Examples

–

Functions

33 11 exported

Complexity

20.4 avg / 47 max

Call network

33 nodes / 26 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

4,466

Files

42

Compiled share

31.8%

Has compiled src

Yes

Language breakdown

R 1,805 (40.4%)C/C++/src 1,420 (31.8%)Docs 484 (10.8%)Vignettes 757 (17%)

API

Exported functions

11

Internal functions

1

Testing

Has tests

No

Test-to-code ratio

0.00

testthat edition

–

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

–

C++ standard

–

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

44

First release

2004-11-03

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

–

Dep drift

3

LOC over versions

v1.5: 2,307 LOCv1.6: 2,794 LOCv1.7: 3,577 LOCv1.8: 3,684 LOCv1.9: 3,632 LOCv2.0: 3,686 LOCv2.1: 3,716 LOCv2.2: 3,712 LOCv2.3: 3,712 LOCv2.4: 3,712 LOCv2.5: 3,712 LOCv2.6: 3,712 LOCv2.7: 3,709 LOCv2.8: 3,709 LOCv2.9: 3,709 LOCv2.10: 3,709 LOCv2.11: 3,709 LOCv2.12: 3,709 LOCv2.13: 3,709 LOCv2.14: 4,466 LOCv3.0: 4,466 LOCv3.1: 4,466 LOCv3.2: 4,466 LOCv3.3: 4,466 LOCv3.4: 4,466 LOCv3.5: 4,466 LOCv3.6: 4,466 LOCv3.7: 4,466 LOCv3.8: 4,466 LOCv3.9: 4,466 LOCv3.10: 4,466 LOCv3.11: 4,466 LOCv3.12: 4,466 LOCv3.13: 4,466 LOCv3.14: 4,466 LOCv3.15: 4,466 LOCv3.16: 4,466 LOCv3.17: 4,466 LOCv3.18: 4,466 LOCv3.19: 4,466 LOCv3.20: 4,466 LOCv3.21: 4,466 LOCv3.22: 4,466 LOCv3.23: 4,466 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

In the Bioconductor 3.23 release
READMENoVignettesYes · 1 · dynamicNEWSNoCitation fileNoWebsiteYes
Help pages
13 (2 internal)
Examples that run
86%6 run in a plain check · 1 never run
Exported functions with examples
64%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
100%

Repository practices

Bioconductor git repository

Checks read the Bioconductor git repository (git.bioconductor.org), branch RELEASE_3_23.

No development-tooling practices detected in the Bioconductor git repository.

Datasets

Bundled datasets · 2
NameClassSizeAlso in
exfdrtwilight10 elementsNo other package
expvaltwilight10 elementsNo other package

All of twilight's data objects

Topics

Maintainer
Stefanie Senger

Available on

CRANr2uBioconductorautoCRANCOPR

Depended on by (1)

Bioconductor (1)

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("twilight")
Senger, S. (2026). twilight: Estimation of local false discovery rate (Version 1.88.0) [Computer software]. https://bioconductor.org/packages/twilight

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for twilight version 1.88.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy