overlap.prob: overlap.prob

Description Usage Arguments Value Examples

View source: R/multintersect.R

Description

Calculates the probability of the observed overlap between two sets on the basis of the hypergeometric distribution.

Usage

1
overlap.prob(set1, set2, universe, lower = F)

Arguments

set1

a character vector

set2

a character vector

universe

either a character vector containing the universe/background (recommended), or an integer indicating the size of the universe

lower

logical; whether the lower tail should be considered (default FALSE). By default the function tests for an enrichment, set to TRUE to test for a depletion.

Value

the probability of the overlap

Examples

1
overlap.prob( c("A","B","C","D"), c("B","D","G"), LETTERS )

plger/overlapper documentation built on Feb. 28, 2021, 10:57 p.m.