calc_set_enrichment: Calculate the hypergeometric enrichment for two sets from a...

View source: R/methods-Module.R

calc_set_enrichmentR Documentation

Calculate the hypergeometric enrichment for two sets from a population Statisic = log (observed overlap / expected overlap) P value = 1- hypergeometric(observed overlap -1, max(|set1|, |set2|), |genes| - |set1|, min(|set1|, |set2|))

Description

Calculate the hypergeometric enrichment for two sets from a population Statisic = log (observed overlap / expected overlap) P value = 1- hypergeometric(observed overlap -1, max(|set1|, |set2|), |genes| - |set1|, min(|set1|, |set2|))

Usage

calc_set_enrichment(set1, set2, genes)

Arguments

set1

the first gene set

set2

the second gene set

genes

the population

Value

c(statistic, p value)


YosefLab/VISION documentation built on June 14, 2024, 5:27 p.m.