Compute enriched gene sets among significant genes in a cell type for a factor using hypergeometric test
run_hypergeometric_gsea(
container,
factor_select,
ctype,
up_down,
thresh = 0.05,
min_gs_size = 15,
max_gs_size = 500,
db_use = "GO"
)
A vector of adjusted p-values for enrichment of gene sets in the significant genes of a given cell type in a given factor.
environment Project container that stores sub-containers for each cell type as well as results and plots from all analyses
numeric The factor of interest
character The cell type of interest
character Either "up" to compute enrichment among the significant positive loading genes or "down" to compute enrichment among the significant negative loading genes.
numeric Pvalue significance threshold. Used as cutoff for calling genes as significant to use for enrichment tests. (default=0.05)
numeric Minimum gene set size (default=15)
numeric Maximum gene set size (default=500)
character The database of gene sets to use. Database options include "GO", "Reactome", "KEGG", and "BioCarta". More than one database can be used. (default="GO")