Specifically from ?aggregateAcrossGenes.se:
library(org.Mm.eg.db)
some.sets <- select(
org.Mm.eg.db,
keytype="GO",
keys=c(
"GO:0048709", # oligodendrocyte differentiation
"GO:0048699", # neuron development
"GO:0048143" # astrocyte activation
),
columns="SYMBOL"
)
should return a data frame of relationships between the GO term and the gene symbol. For some reason the EVIDENCE and ONTOLOGY columns are also included, perhaps the select method for OrgDb objects checks if the keytype is GO and adds some extra columns.
Similarly from ?scoreGeneSet.se:
library(org.Mm.eg.db)
oligo.set <- select(org.Mm.eg.db, keytype="GO", keys="GO:0048709", columns="SYMBOL")
oligo.set <- unique(oligo.set$SYMBOL)
Specifically from
?aggregateAcrossGenes.se:should return a data frame of relationships between the GO term and the gene symbol. For some reason the
EVIDENCEandONTOLOGYcolumns are also included, perhaps theselectmethod forOrgDbobjects checks if the keytype isGOand adds some extra columns.Similarly from
?scoreGeneSet.se: