variantsQuery: Retrieve Variants data for a specified study locus.

View source: R/variantsQuery.R

variantsQueryR Documentation

Retrieve Variants data for a specified study locus.

Description

This function queries the Open Targets GraphQL API to retrieve variants data for a specified study locus.

Usage

variantsQuery(studyLocusId, size = 500, index = 0)

Arguments

studyLocusId

Character: ID of the target study locus (e.g., "fa375739ca2a6b825ce5cc69d117e84b").

size

Integer: Number of records to retrieve (default: 500).

index

Integer: Page index for pagination (default: 0).

Value

Returns a tibble containing variants data for the specified study locus.

Examples

## Not run: 
result <- variantsQuery(studyLocusId = "fa375739ca2a6b825ce5cc69d117e84b", 
size = 500, index = 0)

## End(Not run)

otargen documentation built on Aug. 9, 2025, 1:08 a.m.