Learn R Programming

scsR (version 1.8.0)

enrichment_geneSet: enrichment_geneSet

Description

Computes the hypergeometric p-value that represents the enrichment of genesetA with genes of the genesetB.

Usage

enrichment_geneSet(genesetA, genesetB, background=NULL, quiet=FALSE)

Arguments

genesetA
vector of sorted genes (vector of strings)
genesetB
vector of sorted genes (vector of strings)
background
vector of genes to be used as background (vector of strings)
quiet
avoid print any message/warning (boolean)

Value

the hypergeometric p-value that represents the enrichment of genesetA with genes of the genesetB. (integer)

Examples

Run this code
	data(uuk_screen)
	data(uuk_screen_dh) 
	enrichment_geneSet(unique(uuk_screen$GeneID)[1:200], 
                   unique(uuk_screen_dh$GeneID)[1:400], 
                   intersect(uuk_screen$GeneID, uuk_screen_dh$GeneID))

Run the code above in your browser using DataLab