View source: R/variantsQuery.R
variantsQuery | R Documentation |
This function queries the Open Targets GraphQL API to retrieve variants data for a specified study locus.
variantsQuery(studyLocusId, size = 500, index = 0)
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). |
Returns a tibble containing variants data for the specified study locus.
## Not run:
result <- variantsQuery(studyLocusId = "fa375739ca2a6b825ce5cc69d117e84b",
size = 500, index = 0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.