@@ -45,8 +45,8 @@ library(dplyr)
4545data(eds_marfan_kg)
4646
4747g <- eds_marfan_kg |> fetch_nodes(query_ids = "HP:0001788") |>
48- expand(categories = "biolink:Disease") |>
49- expand(categories = "biolink:Gene")
48+ expand(categories = "biolink:Disease") |>
49+ expand(categories = "biolink:Gene")
5050
5151nodes(g) |> select(id, name, pcategory, category)
5252```
@@ -60,12 +60,12 @@ We can adjust this when initializing the engine. To do so in this example we nee
6060filename <- filename <- system.file("extdata", "eds_marfan_kg.tar.gz", package = "monarchr")
6161
6262eds_marfan_kg <- file_engine(filename,
63- preferences = list(category_priority = c("biolink:GenomicEntity",
63+ preferences = list(category_priority = c("biolink:GenomicEntity",
6464 "biolink:DiseaseOrPhenotypicFeature")))
6565
6666g <- eds_marfan_kg |> fetch_nodes(query_ids = "HP:0001788") |>
67- expand(categories = "biolink:Disease") |>
68- expand(categories = "biolink:Gene")
67+ expand(categories = "biolink:Disease") |>
68+ expand(categories = "biolink:Gene")
6969
7070nodes(g) |> select(id, name, pcategory, category)
7171```
@@ -89,10 +89,10 @@ constructor:
8989monarch <- monarch_engine(cache = FALSE)
9090
9191g1 <- monarch |> fetch_nodes(query_ids = "HP:0001788") |>
92- expand()
92+ expand()
9393
9494g2 <- monarch |> fetch_nodes(query_ids = "HP:0001788") |>
95- expand()
95+ expand()
9696```
9797
9898In the above example, because caching is disabled, the fetch and expansion are re-run in computing ` g2 ` .
0 commit comments