run_fgsea_from_de | R Documentation |
Performs preranked GSEA and returns results for plotting.
run_fgsea_from_de(
de_df,
species = "Homo sapiens",
category = "H",
subcategory = NULL,
method = "multilevel",
top_n = 10
)
de_df |
A data frame with 'gene' and 'log2FoldChange' columns. |
species |
Character. Species name for msigdbr (default: "Homo sapiens"). |
category |
Character. MSigDB category (default: "H"). |
subcategory |
Character. Optional subcategory (e.g., "CP:KEGG"). |
method |
Character. "multilevel" (default) or "simple". |
top_n |
Integer. Number of top pathways to return. |
A data frame of GSEA results sorted by p-value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.