make_FC.pval_df_helper: Find p-values and fold-change (FC) for each group

View source: R/FC.pval.R

make_FC.pval_df_helperR Documentation

Find p-values and fold-change (FC) for each group

Description

Find p-values and fold-change (FC) for each group

Usage

make_FC.pval_df_helper(
  p_df3,
  rowAnn_col = 1,
  val_col = 2,
  rev = F,
  group_name_sep = "/",
  FC.method = "divide",
  p.method = "wilcox.test"
)

Arguments

p_df3

A data frame with 2 columns: 1) row annotations (rowAnn), 2) numeric values

rowAnn_col

Column in df3 with the groups

val_col

Column in df3 with the numeric values

rev

Logical indicating whether to reverse the order of the default FC (default is TRUE), ex. low-hig –> hig-low

group_name_sep

A character indicating how the labels for groups should be presented, "/" in low/high

FC.method

Fold change computation method to use, either "divide" (for non-transformed values) or "subtract" (for log2-transformed values)

p.method

Significance test to use, either "t.test" or "wilcox"/wilcox.test"

Value

A data frame with p-values and fold-changes

Output data frame

group p.value Fold.change 1 intermed/high 0.03457640 0.2216307 2 low/high 0.02586801 0.5496807 3 low/intermed 0.65911963 2.4801647


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.