Google BigQuery

To support more complex queries and advanced informatics workflows that use Google Cloud services, the Open Targets Platform data is also available as a Google Cloud public dataset via our Google BigQuery instance — open-targets-prodarrow-up-right.

What is Google BigQuery?

Google BigQuery is a data warehouse that enables researchers to run super-fast, asynchronous SQL queries using Google's cloud infrastructure. After running your query, you can either export into various formats or copy into a Google Cloud bucket for further downstream analyses.

Open Targets Platform data is publicly accessible as a Google Cloud public datasetarrow-up-right. Users only pay for the queries they perform on the data, and through this program, the first 1 TB per month is free.

BigQuery access points

Open Targets has uploaded all of our data to Google BigQuery. You can run queries via:

For more information on BiqQuery, please review the BigQuery documentationarrow-up-right.

Example BigQuery SQL queries

Below is a sample query that uses our association_overall_direct dataset to return a list of targets associated with psoriasis (EFO_0000676) and the overall association score.

SELECT
  associations.targetId AS target_id,
  targets.approvedSymbol AS target_approved_symbol,
  associations.diseaseId AS disease_id,
  diseases.name AS disease_name,
  associations.score AS overall_association_score
FROM
  `open-targets-prod.platform.association_overall_direct` AS associations
JOIN
  `open-targets-prod.platform.disease` AS diseases
ON
  associations.diseaseId = diseases.id
JOIN
  `open-targets-prod.platform.target` AS targets
ON
  associations.targetId = targets.id
WHERE
  associations.diseaseId='EFO_0000676'
ORDER BY
  associations.score DESC

Similarly, you can use our drug_molecule dataset and pass a list of drug trade names to find relevant information:

Tutorials and how-to guides

For more information on how to use BigQuery to access Platform data and example queries based on actual use cases and research questions, check out the Open Targets Communityarrow-up-right and our Google Cloud dataset homepagearrow-up-right.

Last updated

Was this helpful?