Drugs for risk factors

drugs_risk_factors(trait, pval_threshold = 1e-08, mode = c("table",
  "raw"))

Arguments

trait

A trait name

pval_threshold

P-value 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 /drugs/risk-factors

Examples

drugs_risk_factors(trait = "Body mass index")
#> # A tibble: 6,747 x 13 #> trait.id trait.trait assoc_trait.id assoc_trait.tra… snp.name gene.name #> <chr> <chr> <chr> <chr> <chr> <chr> #> 1 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 2 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 3 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 4 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 5 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 6 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 7 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 8 835 Body mass … 541 X-11787 rs19349… CYP2C9 #> 9 835 Body mass … 60 Waist circumfer… rs79031… TCF7L2 #> 10 785 Body mass … UKB-a:323 Age started ora… rs93115… CACNA1D #> # … with 6,737 more rows, and 7 more variables: drug.label <chr>, #> # mr.estimate <dbl>, mr.se <dbl>, mr.p <dbl>, mr.method <chr>, #> # mr.selection <chr>, mr.moescore <dbl>