Skip to contents

Internal utility function, used in extract_DA_results to check if assumptions are met.

Usage

check_DA_perc(
  DA_outcomes_table,
  DA_warn_threshold = 0.2,
  pval_thresh,
  lfc_thresh,
  adj_method
)

Arguments

DA_outcomes_table

DA results data frame. Should be the output of limma::decideTests, coerced to a data frame.

DA_warn_threshold

Proportion of DA genes at which we warn user.

pval_thresh

P-value threshold used.

lfc_thresh

logFC threshold used.

adj_method

P-value adjustment method used.

Value

A vector of numeric values giving the % of significant DA proteins within each contrast.