knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package allows users to query the EWAS Catalog from R.
You can install the package from GitHub with:
# install.packages("devtools") devtools::install_github("MRCIEU/ewascatalog-r")
The EWAS Catalog database (http://www.ewascatalog.org/) can be queried using the ewascatalog() function. Please see examples below:
library(ewascatalog) ## CpG site query res <- ewascatalog("cg00029284", "cpg") ## Region query res <- ewascatalog("6:15000000-25000000", "region") ## Gene res <- ewascatalog("FTO", "gene") ## Trait res <- ewascatalog("body mass index", "trait") ## EFO res <- ewascatalog("EFO_0002950", "efo") ## Study res <- ewascatalog("27040690", "study")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.