GWAS correlations between traits

gwas_cor(trait, cor_coef_threshold = 0.8, mode = c("table", "raw"))

Arguments

trait

name of the trait, e.g. "body mass index"

cor_coef_threshold

correlation coefficient threshold

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 /gwas_cor

Examples

gwas_cor(trait = "Body mass index") %>% dplyr::glimpse()
#> Observations: 198 #> Variables: 5 #> $ trait_id <chr> "2", "835", "835", "974", "2", "974", "785", "785", … #> $ trait_name <chr> "Body mass index", "Body mass index", "Body mass ind… #> $ cor <dbl> 0.9947284, 0.9947284, 0.9638813, 0.9638813, 0.961907… #> $ assoc_trait_id <chr> "835", "2", "974", "835", "974", "2", "61", "60", "6… #> $ assoc_trait_name <chr> "Body mass index", "Body mass index", "Body mass ind…
# Use a different threshold gwas_cor(trait = "Body mass index", cor_coef_threshold = 0.4) %>% dplyr::glimpse()
#> Observations: 652 #> Variables: 5 #> $ trait_id <chr> "2", "835", "835", "974", "2", "974", "785", "785", … #> $ trait_name <chr> "Body mass index", "Body mass index", "Body mass ind… #> $ cor <dbl> 0.9947284, 0.9947284, 0.9638813, 0.9638813, 0.961907… #> $ assoc_trait_id <chr> "835", "2", "974", "835", "974", "2", "61", "60", "6… #> $ assoc_trait_name <chr> "Body mass index", "Body mass index", "Body mass ind…