# How to create custom endpoint using bigquery: example

Instructions how to create custom endpoint using BigQuery and [service sector data](https://docs.finngen.fi/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data) followed by running [custom GWAS](https://docs.finngen.fi/working-in-the-sandbox/which-tools-are-available/untitled) can be found [here](https://docs.finngen.fi/working-in-the-sandbox/which-tools-are-available/miscellaneous-helper-scripts-tools/bigquery-connection-r/case-study-defining-simple-cohorts-using-medical-codes-for-running-case-control-gwas).
