Description Usage Arguments Value Examples
A simple interface for performing gene set enrichment analysis on multiple collections of gene-level statistics.
1 | perform_gsea(gene_sets, Z, verbose = TRUE, eps = 1e-32, nproc = 0, ...)
|
gene_sets |
Gene set data encoded as an n x m binary matrix,
where n is the number of gene sets and m is the number of genes:
|
Z |
Matrix of gene-level statistics such as z-scores, with
rows corresponding to genes. An enrichment analysis is performed
for each column of |
verbose |
When |
eps |
The lower bound for calculating p-values; smaller values
of |
nproc |
Number of workers used to run gene set enrichment
analysis. Passed as the |
... |
Additional arguments passed to
|
The return value is a list containing four n x k matrices
of gene set enrichment analysis results, where n is the number of
gene sets and k is the number of columns in Z
. The matrices
give the p-values (pval), enrichment scores (ES), normalized
enrichment scores (NES), and expected errors (log2err). See
fgseaMultilevel
for more information about
these outputs.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Load the human gene sets and results of a differential
# expression analysis.
data(gene_sets_human)
data(pbmc_facs_z)
# Perform the gene set enrichment analysis using fgsea. This step
# may take a little while.
gsea_res <- perform_gsea(gene_sets_human$gene_sets,pbmc_facs_z)
# Create an interactive plot for exploring the results of the gene
# set enrichment analysis.
gsea_plotly(gsea_res,gene_set_info,"B",file = "gsea_b_cells.html",
title = "B cells")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.