Description Usage Arguments Value Author(s) See Also Examples
The GOSets
class extends the Sets
class to implement a container that also describes relations between genes and sets using the Gene Ontology controlled vocabulary.
Refer to GOOntologyCodes
and GOEvidenceCodes
for valid vocabulary.
1 2 3 |
relations |
|
... |
Arguments passed to the |
A GOSets
object.
Kevin Rue-Albrecht
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Constructor ----
# Fetch a sample of GO annotations
library(org.Hs.eg.db)
go_sets <- import(org.Hs.egGO)
relations <- as.data.frame(head(go_sets))
gs <- GOSets(relations)
# Subsetting ----
gs1 <- subset(gs, element == "1" & ontology == "BP" & evidence == "TAS")
relations(gs1)
# Getters/Setters ----
evidence(gs)
ontology(gs)
gs1 <- gs
evidence(gs1)[1] <- "EXP"
gs1 <- gs
ontology(gs1)[1] <- "CC"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.