studyVariants {otargen}R Documentation

Retrieves all variants for a study.

Description

For an input study ID, this function returns information of all variants across associated loci. The output also includes information about the associated genes within the each loci.

Usage

studyVariants(study_id)

Arguments

study_id

Character: Study ID(s) generated by Open Targets Genetics (e.g GCST90002357).

Value

Returns a list of two data frames.

the first data frame (tibble format) includes the loci data frame with following data structure:

The second data frame includes gene information with following data structure:

Examples

## Not run: 
result <- studyVariants(study_id = "GCST003155")

## End(Not run)

[Package otargen version 1.1.1 Index]