format_gwas_catalog: Get data selected from GWAS catalog into correct format

View source: R/read_data.R

format_gwas_catalogR Documentation

Get data selected from GWAS catalog into correct format

Description

DEPRECATED. Please use format_data() instead.

Usage

format_gwas_catalog(gwas_catalog_subset, type = "exposure")

Arguments

gwas_catalog_subset

The GWAS catalog subset.

type

The default is "exposure".

Value

Data frame

Examples

## Not run: 
require(MRInstruments)
data(gwas_catalog)
bmi <- subset(gwas_catalog, Phenotype=="Body mass index" & Year==2010 & grepl("kg", Units))
bmi <- format_data(bmi)

## End(Not run)

MRCIEU/TwoSampleMR documentation built on March 26, 2024, 6:11 a.m.