R/data_example_kgs.R
eds_marfan_kg.Rd
A small file_engine()
Knowledge Graph (KG) containing Monarch Initiative
data for Ehlers-Danlos Syndrome and Marfan Syndrome, including their subtypes,
all entities connected to those diseases or subtypes, and all ancestors (supertypes)
of all those diseases and entities. Generated 8/15/2024 via:
data(eds_marfan_kg)
An object of class file_engine
for use with fetch_nodes()
, expand()
, etc.
monarch_engine() |>
fetch_nodes(query_ids = c("MONDO:0020066", "MONDO:0007947")) |>
expand(predicates = "biolink:subclass_of", direction = "in", transitive = TRUE) |>
expand() |>
expand(predicates = "biolink:subclass_of", direction = "out", transitive = TRUE)
This example engine may also be loaded from file via
data(eds_marfan_kg)
phenos <- eds_marfan_kg |>
fetch_nodes(query_ids = "MONDO:0007525") |>
expand(predicates = "biolink:has_phenotype",
categories = "biolink:PhenotypicFeature")