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.trait gwas.id r.score efo.id efo.type efo.value #> <chr> <chr> <dbl> <chr> <chr> <chr> #> 1 Medication for cholestero… ukb-a-4… 0.785 http://www.e… typed-li… blood pre… #> 2 Medication for cholestero… ukb-b-1… 0.785 http://www.e… typed-li… blood pre… #> 3 Medication for cholestero… ukb-b-1… 0.785 http://www.e… typed-li… blood pre… #> 4 Medication for cholestero… ukb-a-4… 0.785 http://www.e… typed-li… blood pre… #> 5 Systolic blood pressure bbj-a-52 0.754 http://www.e… typed-li… blood pre…