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

# \dontrun{
ontology_gwas_efo(trait = "blood", fuzzy = FALSE)
#> # A tibble: 0 × 0
# }

# \dontrun{
ontology_gwas_efo(efo_term = "blood pressure", fuzzy = FALSE)
#> # A tibble: 5 × 6
#>   gwas.id     gwas.trait               r.score efo.type  efo.value  efo.id      
#>   <chr>       <chr>                      <dbl> <chr>     <chr>      <chr>       
#> 1 ukb-a-490   Medication for choleste…   0.785 typed-li… blood pre… http://www.…
#> 2 ukb-b-14395 Medication for choleste…   0.785 typed-li… blood pre… http://www.…
#> 3 ukb-b-18009 Medication for choleste…   0.785 typed-li… blood pre… http://www.…
#> 4 ukb-a-450   Medication for choleste…   0.785 typed-li… blood pre… http://www.…
#> 5 bbj-a-52    Systolic blood pressure    0.754 typed-li… blood pre… http://www.…
# }