View source: R/sharedTraitStudiesQuery.R
| sharedTraitStudiesQuery | R Documentation | 
This function queries the Open Targets GraphQL API to retrieve shared trait studies data for specified disease IDs.
sharedTraitStudiesQuery(diseaseIds, size = 500, index = 0)
| diseaseIds | Character vector: IDs of the target diseases (e.g., c("EFO_0004587")). | 
| size | Integer: Number of records to retrieve (default: 500). | 
| index | Integer: Page index for pagination (default: 0). | 
Returns a tibble containing shared trait studies data for the specified diseases.
## Not run: 
result <- sharedTraitStudiesQuery(diseaseIds = c("EFO_0004587"), 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.