hpgl_padjust: Wrap p.adjust to add IHW adjustments as an option.

View source: R/helpers_misc.R

hpgl_padjustR Documentation

Wrap p.adjust to add IHW adjustments as an option.

Description

IHW and apeglm are the two new toys I found, this adds the former as a way to adjust p-values.

Usage

hpgl_padjust(
  data,
  pvalue_column = "pvalue",
  mean_column = "base_mean",
  method = "fdr",
  significance = 0.05,
  type = NULL
)

Arguments

data

Column or table containing values to adjust.

pvalue_column

Name of the column in a table containing the p-values.

mean_column

Name of the column in a table containing the mean count values to weight.

method

p adjustment method to apply.

significance

Passed to IHW

type

Assuming a DE table, what type of DE is this?

Value

Newly adjusted p-values using either p.adjust() or IHW.

See Also

[IHW]


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.