get_gwas_variants | R Documentation |
uses subsetByTraits
to get the variants.
get_gwas_variants(gwas_traits, gwas_cat)
gwas_traits |
a vector of gwas traits, can be obtained from
|
gwas_cat |
output from |
a data.frame contaning the variants linked to the traits in the gwas catalog The data.frame contains the following columns:
chr (chromosome)
pos (position of the variant)
rsid (variant ID)
ensembl_gene_id ("gene id" of the gene associated with the variants)
hgnc_symbol ("hgnc symbol" of the gene associated with the variants)
source (here "gwas")
# if you need to get the list of gwas traits:
# list_gwas_traits(keywords = c("Obesity"))
obesity_gwas <- c("Obesity (extreme)", "Obesity-related traits", "Obesity")
gwas_cat <- create_gwas()
gwas_variants <- get_gwas_variants(obesity_gwas, gwas_cat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.