getBioMartGOGeneSets.Rd
Get GO gene sets
getBioMartGOGeneSets(dataset, ontology = "BP",
as_table = FALSE, gene_id_type = "ensembl_gene")
A BioMart dataset or a taxon ID. For a proper value, please see supportedOrganisms
.
The value should be "BP", "CC", or "MF".
Whether to return the value as a data frame?
Since BioMart is from Ensembl database, the default gene ID type is Ensembl gene ID. Depending on different organisms, Entrez ID ("entrez_gene") or gene symbol ("gene_symbol") can also be selected as the gene ID type.
The gene sets are already compiled and are hosted on https://github.com/jokergoo/BioMartGOGeneSets_data , This function just simply retrieves data from there.
A list of gene IDs or a data frame.
lt = getBioMartGOGeneSets("hsapiens_gene_ensembl")
lt = getBioMartGOGeneSets("hsapiens_gene_ensembl", gene_id_type = "entrez")
tb = getBioMartGOGeneSets("hsapiens_gene_ensembl", as_table = TRUE)