ontology_gwas_efo(
  trait = NULL,
  efo_term = NULL,
  fuzzy = TRUE,
  mode = c("table", "raw")
)

Arguments

trait

trait name, e.g. "body mass"

efo_term

EFO term, e.g. "systolic blood pressure"

fuzzy

whether query with exact matching (FALSE) or fuzzy matching (default, TRUE)

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 /ontology/gwas-efo

Examples

ontology_gwas_efo(trait = "blood", fuzzy = FALSE)
#> # A tibble: 0 x 0
ontology_gwas_efo(efo_term = "blood pressure", fuzzy = FALSE)
#> # A tibble: 5 x 6 #> gwas.id gwas.trait r.score efo.type efo.value efo.id #> <chr> <chr> <dbl> <chr> <chr> <chr> #> 1 ukb-a-4… Medication for cholestero… 0.785 typed-lit… blood pre… http://www.… #> 2 ukb-b-1… Medication for cholestero… 0.785 typed-lit… blood pre… http://www.… #> 3 ukb-b-1… Medication for cholestero… 0.785 typed-lit… blood pre… http://www.… #> 4 ukb-a-4… Medication for cholestero… 0.785 typed-lit… blood pre… http://www.… #> 5 bbj-a-52 Systolic blood pressure 0.754 typed-lit… blood pre… http://www.…