addSignificanceGroup: Function to add 3 group significance group label to fold...

View source: R/AddSignificanceGroup.R

addSignificanceGroupR Documentation

Function to add 3 group significance group label to fold change dataframe

Description

Function to add 3 group significance group label to fold change dataframe

Usage

addSignificanceGroup(
  .data,
  foldChangeVar,
  significanceVariable,
  adjustedInd,
  significanceThreshold,
  originalSignificanceThreshold
)

Arguments

.data

fold change dataframe

foldChangeVar

name of fold change column

significanceVariable

name of significance variable column (p-value, q-value, etc)

adjustedInd

logical - indicating whether or not a multiple hypothesis correction was applied. When TRUE, "q" will is used. When FALSE "p" is used.

significanceThreshold

numeric - value indicating threshold at which an observation in the significanceVariable coulumn is considered statistically significant.

originalSignificanceThreshold

numeric - value indicating un-transformed threshold at which an observation in the significanceVariable coulumn is considered statistically significant.

Value

returns labels and colors for 3 signficance groups (up, down, not significant)


cusom/CUSOM.ShinyHelpers documentation built on Oct. 23, 2023, 6:50 a.m.