Learn R Programming

otargen (version 2.0.0)

geneticConstraintQuery: Retrieve Genetic Constraint data for a specified gene.

Description

This function queries the Open Targets Platform GraphQL API to retrieve genetic constraint data for a specified gene, such as pLI or LOEUF scores.

Usage

geneticConstraintQuery(ensgId)

Value

Returns a tibble containing genetic constraint data for the specified gene.

Arguments

ensgId

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

Examples

Run this code
if (FALSE) {
result <- geneticConstraintQuery(ensgId = "ENSG00000141510")
}

Run the code above in your browser using DataLab