# WAYS TO DEFINE GENE SETS ACCORDING TO HUMAN KEGG PATHWAYS
# (1) from scratch: via organism ID
gs <- get.kegg.genesets("hsa")
# (2) extract from pathways
# download human pathways via:
# pwys <- download.kegg.pathways("hsa")
pwys <- system.file("extdata/hsa_kegg_pwys.zip", package="EnrichmentBrowser")
gs <- get.kegg.genesets(pwys)
# (3) parsing gene sets from GMT
gmt.file <- system.file("extdata/hsa_kegg_gs.gmt", package="EnrichmentBrowser")
gs <- parse.genesets.from.GMT(gmt.file)
Run the code above in your browser using DataLab