obs_cor(trait, cor_coef_threshold = 0.8, mode = c("table", "raw"))
Data from GET /obs-cor
# \dontrun{
obs_cor(trait = "Body mass index (BMI)") %>%
dplyr::glimpse()
#> Rows: 34
#> Columns: 5
#> $ trait.id <chr> "ukb-b-2303", "ukb-b-2303", "ukb-b-19953", "ukb-b-19…
#> $ trait.trait <chr> "Body mass index (BMI)", "Body mass index (BMI)", "B…
#> $ assoc_trait.id <chr> "ukb-b-19953", "ukb-b-19953", "ukb-b-2303", "ukb-b-2…
#> $ assoc_trait.trait <chr> "Body mass index (BMI)", "Body mass index (BMI)", "B…
#> $ obs_cor.cor <dbl> 0.9912950, 0.9912950, 0.9912950, 0.9912950, 0.873665…
# }
# Use a different threshold
# \dontrun{
obs_cor(trait = "Body mass index (BMI)", cor_coef_threshold = 0.8) %>%
dplyr::glimpse()
#> Rows: 34
#> Columns: 5
#> $ trait.id <chr> "ukb-b-2303", "ukb-b-2303", "ukb-b-19953", "ukb-b-19…
#> $ trait.trait <chr> "Body mass index (BMI)", "Body mass index (BMI)", "B…
#> $ assoc_trait.id <chr> "ukb-b-19953", "ukb-b-19953", "ukb-b-2303", "ukb-b-2…
#> $ assoc_trait.trait <chr> "Body mass index (BMI)", "Body mass index (BMI)", "B…
#> $ obs_cor.cor <dbl> 0.9912950, 0.9912950, 0.9912950, 0.9912950, 0.873665…
# }