This function queries the Open Targets Genetics GraphQL API to retrieve ChEMBL data
for a specified gene and disease, including evidence from the ChEMBL datasource.
Usage
chemblQuery(ensemblId, efoId, size = 10, cursor = NULL)
Arguments
- ensemblId
Character: ENSEMBL ID of the target gene (e.g., ENSG00000169174).
- efoId
Character: EFO ID of the disease (e.g., EFO_0004911).
- size
Integer: Number of records to retrieve (default: 10).
- cursor
Character: Cursor for pagination (default: NULL).
Value
Returns a data frame containing ChEMBL data for the specified gene and disease.
Examples
if (FALSE) { # \dontrun{
result <- chemblQuery(ensemblId = "ENSG00000169174",
efoId = "EFO_0004911", size = 10)
result <- chemblQuery(ensemblId = "ENSG00000169174",
efoId = "EFO_0004911", size = 10, cursor = NULL)
} # }