dot-DrawFdrEst: DrawFdrEst Function (FDREst)

.DrawFdrEstR Documentation

DrawFdrEst Function (FDREst)

Description

Return a plot describing the false discovery rate estimations by threshold on the parameter provided for the dataframe provided.

Usage

.DrawFdrEst(
  dFdr,
  cNameParamToTest,
  nFdrPropForFilt,
  cMotifFg = NULL,
  lAdjustFdr = TRUE
)

Arguments

dFdr

A dataframe with 3 columns:

  • fdr: The false discovery rate estimated for this threshold.

  • threshold: The threshold on the parameter.

  • fdr_cummin: The minimum false discovery rate estimated for this threshold and less stringent thresholds (adjusted false discovery rate).

cNameParamToTest

The name of the column containing the parameter to be tested.

nFdrPropForFilt

A number indicating the false discovery rate to be used for filtering: this will allow to choose the closest threshold below this number and represent it on the plot. Defaults to 0.05 (so fdr of 5%).

cMotifFg

The name of the motif tested. If NULL, the title will display "(Sample vs Control)" instead. Defaults to NULL.

lAdjustFdr

If TRUE, display fdr_cummin (adjusted false discovery rate) instead of fdr column. Defaults to TRUE.


AlexisHardy/DNAModAnnot documentation built on Feb. 27, 2023, 12:03 a.m.