ontology_gwas_efo(
trait = NULL,
efo_term = NULL,
fuzzy = TRUE,
mode = c("table", "raw")
)
trait name, e.g. "body mass"
EFO term, e.g. "systolic blood pressure"
whether query with exact matching (FALSE) or fuzzy matching (default, TRUE)
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
.
Data from GET /ontology/gwas-efo
# \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.…
# }