make_FC.pval_df_helper | R Documentation |
Find p-values and fold-change (FC) for each group
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"
)
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" |
A data frame with p-values and fold-changes
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.