getEnrichmentFactor: Calculate Enrichment factor

View source: R/tanimotoCoef.R

getEnrichmentFactorR Documentation

Calculate Enrichment factor

Description

Enrichment factor represents the "enrichment" of overlap between two sets in a given space. This is calculated as (observed count) / (expected count).

Usage

getEnrichmentFactor(setA, setB, setT, psc = 0)

Arguments

setA

set input1 as vectors

setB

set input2 as vectors

setT

total set as vectors

psc

pseudocount for when expected count is too low.

Examples

A <- c(1:5)
B <- c(3:7)
total <- c(1:10)
getEnrichmentFactor(A, B, total)

LittleHeronCodes/Lazy2 documentation built on April 20, 2024, 11:24 p.m.