overlapInfoForStudy {otargen}R Documentation

Retrieves overlap info for a study and a list of studies

Description

For an input study ID and a list of other study IDs, this function returns two elements. One contains the overlap information in a table format, and the other element is the variant intersection set, representing an overlap between two variants of the two given studies.

Usage

overlapInfoForStudy(study_id, study_ids = list())

Arguments

study_id

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

study_ids

Character: generated ID for variants by Open Targets Genetics (e.g. 1_154119580_C_A) or rsId (rs2494663).

Value

A list containing a data frame of overlap information and the variant intersection set. The overlap information table (overlap_info) consists of the following columns:

The variant intersection set (variant_intersection_set) is a character vector representing the intersection of variants.

Examples

## Not run: 
result <- overlapInfoForStudy(study_id = "GCST90002357",
 study_ids = list("GCST90025975", "GCST90025962"))

## End(Not run)

[Package otargen version 1.1.1 Index]