manhattan {otargen}R Documentation

Retrieve GWAS summary statistics to create a Manhattan plot

Description

This function retrieves summary statistics for a given GWAS study ID, which are used to generate a Manhattan plot. The Manhattan plot is a graphical representation of genetic association studies, particularly in genome-wide association studies (GWAS). It displays the results of statistical associations between genetic variants and a trait or disease of interest across the genome. This function returns a data frame of the underlying data, which can be used to recreate the Manhattan plot using the plot_manhattan() function, or for custom plots and downstream analysis.

Usage

manhattan(study_id, pageindex = 0, pagesize = 100)

Arguments

study_id

Character: Open Targets Genetics generated ID for the GWAS study.

pageindex

Int: Index of the current page (pagination index >= 0).

pagesize

Int: Number of records in a page (pagination size > 0).

Value

Returns a data frame containing the Manhattan associations for the input study ID. The table consists of the following columns:

Examples

## Not run: 
result <- manhattan(study_id = "GCST90002357")
result <- manhattan(study_id = "GCST90002357", pageindex = 2, pagesize = 50)

## End(Not run)

[Package otargen version 1.1.1 Index]