View source: R/annotation_orgdb.R
load_orgdb_go | R Documentation |
AnnotationDbi provides a reasonably complete set of GO mappings between gene ID and ontologies. This will extract that table for a given set of gene IDs.
load_orgdb_go(
orgdb = NULL,
gene_ids = NULL,
keytype = "ensembl",
columns = c("go", "goall", "goid")
)
orgdb |
OrganismDb instance. |
gene_ids |
Identifiers of the genes to retrieve annotations. |
keytype |
The mysterious keytype returns yet again to haunt my dreams. |
columns |
The set of columns to request. |
Tested in test_45ann_organdb.R This is a nice way to extract GO data primarily because the Orgdb data sets are extremely fast and flexible, thus by changing the keytype argument, one may use a lot of different ID types and still score some useful ontology data.
Data frame of gene IDs, go terms, and names.
I think Keith provided the initial implementation of this, but atb messed with it pretty extensively.
[AnnotationDbi] [GO.db]
drosophila_orgdb_go <- load_orgdb_go(orgdb = "org.Dm.eg.db")
head(drosophila_orgdb_go)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.