knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

ewascatalog

This package allows users to query the EWAS Catalog from R.

Installation

You can install the package from GitHub with:

# install.packages("devtools")
devtools::install_github("MRCIEU/ewascatalog-r")

Examples

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")


MRCIEU/ewascatalog-r documentation built on July 4, 2022, 1:19 a.m.