Literature evidence regarding MR

literature_mr(trait_name, semmed_predicate = NULL, mode = c("table",
  "raw"))

Arguments

trait_name

A trait name

semmed_predicate

Either NULL which returns entries from all predicates, or a SemMed predicate e.g. "DIAGNOSES" or "ASSOCIATED_WITH"

mode

If mode = "table", returns a data frame (a tibble as per tidyverse convention). If mode = "raw", returns a raw response from EpiGraphDB API with minimal parsing done by httr.

Value

Data from /literature/mr

Examples

literature_mr(trait_name = "Body mass index")
#> # A tibble: 15,000 x 22 #> l1.pubmed_id s1.predicate s1.s_cui s1.id s1.o_name s1.s_name s1.o_cui #> <chr> <chr> <chr> <int> <chr> <chr> <chr> #> 1 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 2 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 3 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 4 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 5 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 6 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 7 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 8 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 9 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> 10 26752855 DIAGNOSES C0005893 2.16e6 Overweig… Body mas… C0497406 #> # … with 14,990 more rows, and 15 more variables: u1.name <chr>, u1.id <chr>, #> # g1.trait <chr>, g1.id <chr>, g2.trait <chr>, g2.id <chr>, u2.name <chr>, #> # u2.id <chr>, s2.predicate <chr>, s2.s_cui <chr>, s2.id <int>, #> # s2.o_name <chr>, s2.s_name <chr>, s2.o_cui <chr>, l2.pubmed_id <chr>