literature_gwas(trait, semmed_predicate = NULL, mode = c("table", "raw"))

Arguments

trait

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 GET /literature/gwas

Examples

literature_gwas(trait = "Body mass index")
#> # A tibble: 50 x 8 #> gwas.id gwas.trait gs.pval gs.localCount triple.id triple.name #> <chr> <chr> <dbl> <int> <chr> <chr> #> 1 ieu-a-1… Body mass i… 7.59e-4 2 C0002453:COEX… Amenorrhea COEXIS… #> 2 ieu-a-1… Body mass i… 7.59e-4 2 C0012798:AUGM… Diuretics AUGMENT… #> 3 ieu-a-1… Body mass i… 7.59e-4 2 C0026832:DISR… Muscle Proteins D… #> 4 ieu-a-1… Body mass i… 7.59e-4 2 C0026832:DISR… Muscle Proteins D… #> 5 ieu-a-1… Body mass i… 7.59e-4 2 C0025598:INHI… Metformin INHIBIT… #> 6 ieu-a-1… Body mass i… 7.59e-4 2 C0032120:NEG_… Plasma Proteins N… #> 7 ieu-a-1… Body mass i… 7.59e-4 2 C0005330:DISR… Bezafibrate DISRU… #> 8 ieu-a-1… Body mass i… 7.59e-4 2 C0250604:AUGM… Eotaxin AUGMENTS … #> 9 ieu-a-1… Body mass i… 7.59e-4 2 10076:INHIBIT… PTPRU INHIBITS Hi… #> 10 ieu-a-1… Body mass i… 7.59e-4 2 C0608070:PRED… dicarboxydine PRE… #> # … with 40 more rows, and 2 more variables: triple.predicate <chr>, #> # lit.id <chr>