I am familiar with SQL and just starting with Open Targets to query for variants.
Could you provide example Google Big Query SQL statement for this example variant - 1_154453788_C_T - which would ideally output all the info displayed on the website, mainly I am interested on data on “Assigned genes” section?
If you are familiar with SQL you will find easy to extract information from Google BigQuery. The “Assigned genes” information is stored in the variant_gene table:
SELECT *
FROM `open-targets-genetics.genetics.variant_gene`
WHERE chr_id = "1" AND
position = 154453788 AND
ref_allele = "C" AND
alt_allele = "T"