You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-- Retrieve variant calls for Personal Genome Project participants, limiting
-- to only those present in the training data to attempt to minimize batch
-- effects from the differing sequence platforms and variant calling pipelines.
--
SELECT
call.call_set_name AS {{ KEY_COLUMN }},
v.reference_name AS {{ CONTIG_COLUMN }},
v.start AS {{ START_COLUMN }},
-- 'end' is needed when alt is symbolic such as <DEL> https://github.com/googlegenomics/bigquery-examples/tree/master/1000genomes/data-stories/understanding-alternate-alleles
v.`end` AS {{ END_COLUMN }},
v.reference_bases AS {{ REF_COLUMN }},
alt AS {{ ALT_COLUMN }},
alt_offset + 1 AS {{ ALT_NUM_COLUMN }},
call.genotype[SAFE_ORDINAL(1)] AS {{ FIRST_ALLELE_COLUMN }},
call.genotype[SAFE_ORDINAL(2)] AS {{ SECOND_ALLELE_COLUMN }}