## Get all ontolgies
ol <- Ontologies()
ol
head(as(ol, "data.frame"))
length(ol)
## Individual ontologies
(go <- ol[["go"]])
(efo <- ol[["efo"]])
## some basic information
olsVersion(go)
olsDesc(go)
olsTitle(go)
olsPrefix(go)
olsNamespace(go)
olsRoot(go)
## works with Ontology objects or their namespace
identical(olsRoot("go"), olsRoot(go))
identical(olsVersion("go"), olsVersion(go))
## Directly initialise a single ontology
go1 <- Ontology("go") ## using the namespace (preferred)
go2 <- Ontology("GO") ## using the prefix (see Details)
all.equal(go, go1)
all.equal(go, go2)
Run the code above in your browser using DataLab