Description Usage Arguments Value Examples
View source: R/gsea_disease_set.R
gsea enrichment analysis for disease up/down geneset to molecules signature
1 2 3 4 5 6 7 8 | gsea_disease_set(
m2dObj,
p_deg = 0.05,
n_degs = 500,
p_both = 0.05,
p_single = 0.01,
demo = FALSE
)
|
m2dObj |
raw m2d object |
p_deg |
significant deg cutoff |
n_degs |
disease gene sets size |
p_both |
cutoff for both enrichment |
p_single |
cutoff for single enrichment |
demo |
gsea result for demo use to save time |
significant molecules that disease up/down geneset can enrich
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | library(M2D)
dir_disease <- system.file("extdata",
"demo_BRCA_disease.csv",
package = "M2D"
)
disease <- read.csv(dir_disease)
dir_molecule <- system.file("extdata",
"demo_molecules_321_12320.csv",
package = "M2D"
)
molecules <- data.table::fread(dir_molecule,
data.table = FALSE
) %>%
tibble::column_to_rownames("V1")
m2dObj <- list(
disease = disease,
molecule = molecules
)
enrich_double_list <- gsea_disease_set(
m2dObj = m2dObj,
demo = TRUE
)
enrich_double <- enrich_double_list$gsea_sig
dim(enrich_double)
unique(enrich_double$molecule)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.