subsetByOntology | R Documentation |
This function facilitates ontology-based queries for experimental factors and body sites.
subsetByOntology(df, column = c("Body site", "Condition"), term, ontology)
df |
|
column |
character. Column of |
term |
character. A valid term of |
ontology |
an object of class |
a data.frame
with the chosen column restricted to descendants
of the chosen term in the chosen ontology.
EFO: https://www.ebi.ac.uk/ols/ontologies/efo
UBERON: https://www.ebi.ac.uk/ols/ontologies/uberon
importBugSigDB
, getOntology
# (1) Obtain BugSigDB data
df <- importBugSigDB()
# (2) Obtain ontology of interest as an R object
uberon <- getOntology("uberon")
# (3) High-level query on body site
sdf <- subsetByOntology(df,
column = "Body site",
term = "digestive system element",
ontology = uberon)
table(sdf[,"Body site"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.