ewascatalog: ewascatalog

View source: R/ewascatalog.R

ewascatalogR Documentation

ewascatalog

Description

ewascatalog queries the EWAS Catalog from R.

Usage

ewascatalog(
  query,
  type = c("cpg", "loc", "region", "gene", "trait", "efo", "study"),
  url = "http://www.ewascatalog.org"
)

Arguments

query

Query text.

type

Type of query, either 'cpg', 'region', 'gene', 'trait', 'efo', 'study' (Default: 'cpg').

url

url of website to query - default is http://www.ewascatalog.org

Value

Data frame of EWAS Catalog results.

Author(s)

James R Staley <js16174@bristol.ac.uk>

Thomas Battram <thomas.battram@bristol.ac.uk>

Examples

# CpG
res <- ewascatalog("cg00029284", "cpg")

# Region
res <- ewascatalog("6:15000000-25000000", "region")

# Gene
res <- ewascatalog("FTO", "gene")

# Trait
res <- ewascatalog("Alzheimers disease", "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.