data(ex_kgml_sig) # Ras and chemokine signaling pathways in human
genesets <- getGeneSets(ex_kgml_sig, use.attr="pathway", gene.attr="miriam.ncbigene")
# Write the genesets in a GMT file, and read it using GSEABase package.
getGeneSets(ex_kgml_sig, use.attr="pathway", gene.attr="miriam.ncbigene", gmt.file="kgml.gmt")
## Not run:
# if(require(GSEABase))
# toGmt("kgml.gmt")
# ## End(Not run)
# Create genesets using compartment information
data(ex_sbml) # bipartite metabolic network of Carbohydrate metabolism.
genesets <- getGeneSets(ex_sbml, use.attr="compartment.name", gene.attr="miriam.uniprot")
Run the code above in your browser using DataLab