powered by
This function queries the Open Targets GraphQL API to retrieve known drugs data for a specified drug.
knownDrugsChemblQuery(chemblId, cursor = NULL, freeTextQuery = NULL, size = 10)
Returns a tibble containing known drugs data for the specified drug.
Character: ChEMBL ID of the target drug (e.g., "CHEMBL1016").
Character: Cursor for pagination (default: NULL).
Character: Free text query to filter results (default: NULL).
Integer: Number of records to retrieve (default: 10).
if (FALSE) { result <- knownDrugsChemblQuery(chemblId = "CHEMBL1016", size = 10) result <- knownDrugsChemblQuery(chemblId = "CHEMBL1016", cursor = NULL, freeTextQuery = NULL, size = 10) }
Run the code above in your browser using DataLab