View source: R/multi_fisher_enrichment.R
multi_fisher_enrichment | R Documentation |
Test enrichment of multiple vectors of significant genes against the universe of genes in feat.tab
per
gene set using fisher.test
. It returns a data frame with statistics per gene set, and can
write this to Excel. The Excel file links to CSV files, which contain statistics per genes in a set. If you only
have one vector of significant genes, use fisher_enrichment
.
multi_fisher_enrichment(
sig.sets,
G,
feat.tab,
name = NA,
adjust.method = "BH",
min.nfeats = 3,
max.nfeats = 1000,
pwy.nchar = 199
)
sig.sets |
Named list whose elements are vectors of significant gene IDs matching
|
G |
Gene set list as returned from |
feat.tab |
Table of feature (e.g. gene) statistics that the Excel table can link to. |
name |
Name for the folder and Excel file that get written. Set to |
adjust.method |
Method used to adjust the p-values for multiple testing. Only for |
min.nfeats |
Minimum number of features (e.g. genes) needed in a gene set for testing. |
max.nfeats |
Maximum number of features (e.g. genes) needed in a gene set for testing. |
pwy.nchar |
Numeric maximum number of characters allowed in pathway name. |
Pathway (i.e. gene set) names are altered to be valid filenames in Windows and Linux. Numeric columns are rounded to 8 significant figures.
List with two elements: pwy.stats
, a table of pathway statistics; and feat.tab
, a table that
appends a binary matrix of which genes are in which sig.set
and the input feat.tab
.
fisher_enrichment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.