tagVariantsAndStudiesForIndexVariant {otargen}R Documentation

Retrieves tag variants and studies for a given index variant.

Description

For an input index variant ID, this function fetches information about the tag variants and associated studies, including scores.

Usage

tagVariantsAndStudiesForIndexVariant(variant_id, pageindex = 0, pagesize = 20)

Arguments

variant_id

Character: Open Targets Genetics generated ID for a variant (CHRPOSITION_REFALLELE_ALTALLELE or rsId).

pageindex

Integer: Index of the current page for pagination (>= 0).

pagesize

Integer: Number of records in a page for pagination (> 0).

Value

Returns a data frame containing the variant associations connected to the input index variant. The columns in the data frame are as follows:

Examples

## Not run: 
result <- tagVariantsAndStudiesForIndexVariant(variant_id = "1_109274968_G_T")
result <- tagVariantsAndStudiesForIndexVariant(variant_id = "1_109274968_G_T"
    ,pageindex = 1, pagesize = 50)
    
## End(Not run)

[Package otargen version 1.1.1 Index]