Pure.
Value
A tibble of subject, subject_label, subject_category,
predicate, object, object_label, object_category,
primary_knowledge_source, knowledge_level, and publications. NULL
when there are no associations.
Details
One row per association, exactly as Monarch sent it. Nothing is dropped and
nothing is merged. publications is a list column because an association
carries any number of them, and null and an array both occur.
Examples
body <- list(items = list(list(
subject = "MONDO:0017309",
subject_label = "neonatal Marfan syndrome",
predicate = "biolink:has_phenotype",
object = "HP:0001653",
object_label = "Mitral regurgitation",
publications = NULL
)))
monarch_parse_associations(body)
#> # A tibble: 1 × 10
#> subject subject_label subject_category predicate object object_label
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 MONDO:0017309 neonatal Marfan … NA biolink:… HP:00… Mitral regu…
#> # ℹ 4 more variables: object_category <chr>, primary_knowledge_source <chr>,
#> # knowledge_level <chr>, publications <list>