## Not run:
# library(org.Dm.eg.db)
# library(GO.db)
# library(KEGG.db)
# ##load phenotype vector (see the vignette for details about the
# ##preprocessing of this data set)
# data("KcViab_Data4Enrich")
# ##Create a list of gene set collections for Drosophila melanogaster (Dm)
# GO_MF <- GOGeneSets(species="Dm", ontologies="MF")
# PW_KEGG <- KeggGeneSets(species="Dm")
# ListGSC <- list(GO_MF=GO_MF, PW_KEGG=PW_KEGG)
# ##Conduct enrichment analyses
# GSCAResults <- analyzeGeneSetCollections(
# listOfGeneSetCollections=ListGSC,
# geneList=KcViab_Data4Enrich,
# hits=names(KcViab_Data4Enrich)[which(abs(KcViab_Data4Enrich)>2)],
# pAdjustMethod="BH",
# nPermutations=1000,
# minGeneSetSize=200,
# exponent=1,
# verbose=TRUE
# )
# ## End(Not run)
Run the code above in your browser using DataLab