# In the following candidate genes are defined from a
# giant connected component of an example igraph network
# where we use the remaining genes of a given network
# as a reference list.
data(exanet)
data(exgensets)
candidate=V(getgcc(exanet))$name
reference=V(exanet)$name
# hypergeometric test is performed for
# each defined set of genes in the
# list object exgensets
tab.hypg=enrichment(candidate, reference, exgensets, verbose=TRUE)
Run the code above in your browser using DataLab