correct_null_distribution: Correct null distribution

View source: R/correct_null_distribution.R

correct_null_distributionR Documentation

Correct null distribution

Description

Correct null distribution using fdrtool.

Usage

correct_null_distribution(
  tab,
  prefix.v = NULL,
  p.suffix = "p",
  fdr.suffix = "FDR",
  direction.suffix = "logFC",
  verbose = TRUE
)

Arguments

tab

Table of output from ezlimma.

prefix.v

A vector of prefixes that prefix .p, .FDR, or .logFC in colnames(tab). These will be the columns that are used in the Venn diagram. If NULL these are inferred from colnames(tab) that end with .p.

p.suffix

The suffix of p-value columns.

fdr.suffix

The suffix of FDR columns.

direction.suffix

The suffix of direction columns such as log fold-change, regression slope, correlation coefficient, or the "Up/Down" values

verbose

Print out status messages.

Value

Matrix or data.fame with corrected p-values and the corresponding FDR.


jdreyf/jdcbioinfo documentation built on May 1, 2024, 4:36 a.m.