Skip to contents

Query Open Targets Platform API for Locus-to-Gene (L2G) predictions

Usage

query_ot_api_v2g(variant_id = "19_44908822_C_T")

Arguments

variant_id

A string representing the variant ID in format "CHR_POS_REF_ALT" (e.g., "19_44908822_C_T") or an rsID (e.g., "rs123456").

Value

A tibble with columns `ID`, `l2g_gene_id`, `l2g_gene_name`, `l2g_score`.

Examples

if (FALSE) { # \dontrun{
  result <- query_ot_api_v2g("19_44908822_C_T")
  result <- query_ot_api_v2g("rs123456")
} # }