View source: R/get_trait_variants.R
get_trait_variants | R Documentation |
Returns a formatted data.frame of variants for a given trait, including summary statistics
get_trait_variants(
trait,
trait_list = NULL,
risk_frequency = TRUE,
mapped_gene = FALSE,
ask_about_efo = TRUE
)
trait |
Expects a regular expression to find the trait of interest |
trait_list |
An object generated by init_gwas_dbs(). If NULL, init_gwas_dbs() will be run internally. |
risk_frequency |
If TRUE, also includes the frequency of the risk allele in the output. |
mapped_gene |
If TRUE, includes the mapped gene for each variant in the output. |
ask_about_efo |
If TRUE, requires dynamic user input to specify which EFO id should be used. |
A formatted data.frame containing all trait-related variants, including summary statistics.
MI_variants <- get_trait_variants('MI|myocardial infarction',ask_about_efo=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.