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/FastProjectR documentation built on June 13, 2024, 4:20 p.m.