Learn R Programming

otargen (version 2.0.0)

interactionsQuery: Retrieve Interactions data for a specified gene.

Description

This function queries the Open Targets GraphQL API to retrieve molecular interaction data for a specified gene.

Usage

interactionsQuery(ensgId, sourceDatabase = NULL, index = 0, size = 10)

Value

Returns a tibble containing interactions data for the specified gene.

Arguments

ensgId

Character: ENSEMBL ID of the target gene (e.g., ENSG00000141510).

sourceDatabase

Character: Source database for interactions (e.g., "intact") (default: NULL).

index

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

size

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

Examples

Run this code
if (FALSE) {
result <- interactionsQuery(ensgId = "ENSG00000141510",
 sourceDatabase = "intact", size = 10)
result <- interactionsQuery(ensgId = "ENSG00000141510",
 sourceDatabase = "intact", index = 0, size = 10)
}

Run the code above in your browser using DataLab