Description Usage Arguments Details Value Examples
View source: R/calculate_MiniMax_drivers.R
Given a data frame of pathway-level p-values, mark which of the multi-omics platforms are driving the MiniMax statistic.
1 2 3 4 5 6 7 | MiniMax_calculateDrivers(
res_df,
orderStat = 2L,
drivers_char = colnames(res_df),
sortLabels = TRUE,
separator = " and "
)
|
res_df |
A data frame of p-values. The rows correspond to gene sets / pathways and the columns correspond to a data platform for the disease of interest. |
orderStat |
How many platforms should show a biological signal for a pathway / gene set to have multi-omic "enrichment"? Defaults to 2. See "Details" for more information. |
drivers_char |
What labels should be given to the driving platforms?
Defaults to the column names of |
sortLabels |
Should the driver labels be sorted alphabetically before
concatenation? Defaults to |
separator |
What character string should be used to separate the names
of the driving platforms? Defaults to |
The MiniMax statistic is defined as the minimum of all pairwise
maxima of pathway p-values. This operation is arithmetically
equivalent to sorting the p-values and taking the second smallest.
In our experience, setting this "order statistic" cutoff to 2 is
appropriate for =< 5 data platforms. Biologically, this is equivalent to
saying "if this pathway is dysregulated in at least two data types for
this disease / condition, it is worthy of additional consideration". In
situations where more than 5 data platforms are available for the disease
of interest, we recommend increasing the orderStat
value to 3.
NOTE: this result does not depend on the pathway significance level at all. This result will simply show you which platforms had the smallest p-values for a particular pathway, even if the MiniMax statistic is not statistically significant for that pathway. Therefore, we recommend that this function be used only for interpretation of results post-hoc.
A vector of the names of the platforms driving the MiniMax statistic values.
1 2 3 4 | MiniMax_calculateDrivers(
multiOmicsHighSignalResults_df[, -(1:2)],
drivers_char = c("cnv", "rnaSeq", "protein")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.