View source: R/combine_pvalues.R
fishers_combined | R Documentation |
This function takes in the p-values tibble that mvmapit returned. It then computes the combined p-values grouped by variant id.
fishers_combined(pvalues, group_col = "id", p_col = "p")
pvalues |
Tibble with p-values from mvmapit function call. |
group_col |
String that denotes column by which to group and combine p-values. |
p_col |
String that denotes p-value column. |
A Tibble with the combined p-values.
set.seed(837)
p <- 200
n <- 100
d <- 2
X <- matrix(
runif(p * n),
ncol = p
)
Y <- matrix(
runif(d * n),
ncol = d
)
mapit <- mvmapit(
t(X),
t(Y),
test = "normal", cores = 1, logLevel = "INFO"
)
fisher <- fishers_combined(mapit$pvalues)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.