Public dataset · Health and life sciences
Human Genome Variants (1000 Genomes, Platinum Genomes, Simons) in BigQuery
Human genome variant calls in BigQuery: 1000 Genomes phase 3 (84.8 million variants), Platinum Genomes called with DeepVariant, and the Simons Genome Diversity Project, plus sample metadata. 7.45 TiB in total; the 1000 Genomes variants table alone is 5.38 TiB, so use the clustering on chromosome and position.
The dataset collects publicly available human genome variant data, loaded from VCF files with Variant Transforms. The dataset description reads "Data Updated On: 2018-11-21".
1000_genomes_phase_3_variants_20150220 has the 1000 Genomes phase 3 VCF files: one row per variant with reference_name (chromosome), start_position, end_position, reference_bases, a repeated alternate_bases record with allele frequencies overall and per super-population (AF, EAS_AF, EUR_AF, AFR_AF, AMR_AF, SAS_AF), and a repeated call record with every sample's genotype. 1000_genomes_phase_3_optimized_schema_variants_20150220 is the same data where, as its description says, samples that are homozygous reference or have no call are moved out of call into the hom_ref_call and no_call arrays, which makes it 2.8 times smaller. 1000_genomes_sample_info and 1000_genomes_pedigree describe the samples.
platinum_genomes_deepvariant_variants_20180823 holds the six-member CEPH pedigree 1463 called with DeepVariant, and the simons_genome_diversity_project_* tables hold the Simons Genome Diversity Project variants and sample attributes. All variant tables are clustered by reference_name, start_position and end_position.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
1000_genomes_phase_3_variants_201502201000 Genomes phase 3 variants with full per-sample calls. | 84,801,880 | 5.4 TiB | $33.59 | Partitioned: Daily on partition_date_please_ignore · Clustered: reference_name, start_position, end_position |
1000_genomes_phase_3_optimized_schema_variants_20150220Same variants; homozygous reference and no-call samples moved to separate arrays. | 84,801,880 | 1.9 TiB | $12.14 | Partitioned: Daily on partition_date_please_ignore · Clustered: reference_name, start_position, end_position |
simons_genome_diversity_project_sample_variantsSimons Genome Diversity Project variant calls. | 45,551,415 | 120 GiB | $0.73 | Partitioned: Daily on partition_date_please_ignore · Clustered: reference_name, start_position, end_position |
platinum_genomes_deepvariant_variants_20180823CEPH pedigree 1463 (Platinum Genomes) called with DeepVariant. | 105,923,159 | 19.6 GiB | $0.12 | Partitioned: Daily on partition_date_please_ignore · Clustered: reference_name, start_position, end_position |
1000_genomes_sample_infoPer-sample population, family and sequencing details. | 3,500 | 812 KiB | under $0.01 | None |
1000_genomes_pedigree | 3,501 | 227 KiB | under $0.01 | None |
simons_genome_diversity_project_sample_attributes | 279 | 45.3 KiB | under $0.01 | None |
simons_genome_diversity_project_sample_metadata | 278 | 27.5 KiB | under $0.01 | None |
Example queries
1000 Genomes samples per population
From 1000_genomes_sample_info, 0.8 MiB.
SELECT
Population,
Population_Description,
COUNT(*) AS samples
FROM `bigquery-public-data.human_genome_variants.1000_genomes_sample_info`
GROUP BY Population, Population_Description
ORDER BY samples DESC;Common variants in the BRCA1 region with population frequencies
Chromosome 17, positions 41,196,311 to 41,277,500 (GRCh37, the build used by 1000 Genomes phase 3). Only variant-level columns, no genotypes. The 1000 Genomes tables name chromosomes without a chr prefix.
SELECT
start_position,
reference_bases,
alt.alt,
alt.AF,
alt.EUR_AF,
alt.AFR_AF,
alt.EAS_AF
FROM `bigquery-public-data.human_genome_variants.1000_genomes_phase_3_optimized_schema_variants_20150220`,
UNNEST(alternate_bases) AS alt
WHERE reference_name = '17'
AND start_position BETWEEN 41196311 AND 41277500
AND alt.AF >= 0.05
ORDER BY start_position;Genotypes for the BRCA1 region, original schema
Reads the call array. The dry run is an upper bound of 456 MiB thanks to clustering on chromosome and position; without the position filter the same columns are 5.36 TiB.
SELECT
reference_name,
start_position,
call
FROM `bigquery-public-data.human_genome_variants.1000_genomes_phase_3_variants_20150220`
WHERE reference_name = '17'
AND start_position BETWEEN 41196311 AND 41277500;Genotypes for the BRCA1 region, optimized schema (cheap)
The optimized table stores far fewer calls per row: 121 MiB upper bound for the same region.
SELECT
reference_name,
start_position,
call
FROM `bigquery-public-data.human_genome_variants.1000_genomes_phase_3_optimized_schema_variants_20150220`
WHERE reference_name = '17'
AND start_position BETWEEN 41196311 AND 41277500;Variant count per chromosome, Platinum Genomes
Reads only reference_name across 105.9 million rows.
SELECT
reference_name,
COUNT(*) AS variants
FROM `bigquery-public-data.human_genome_variants.platinum_genomes_deepvariant_variants_20180823`
GROUP BY reference_name
ORDER BY variants DESC;Querying it cheaply
SELECT *on1000_genomes_phase_3_variants_20150220scans 5.38 TiB, about $33.59 at on-demand list price after the free tier. Almost all of it is thecallarray with one entry per sample per variant.- Filter on
reference_nameand astart_positionrange. The variant tables are clustered on those columns, so BigQuery skips blocks outside the region; dry runs on clustered tables report an upper bound and the billed bytes can be lower. - Use the optimized schema table (1.94 TiB) when you need genotypes: it skips homozygous reference and no-call entries, so the same region costs about a quarter of the bytes.
- Allele frequencies are already in
alternate_bases(AFand per-population columns). Reading those instead ofcallkeeps a region query in the low MiB. - Set a maximum bytes billed limit when exploring this dataset. One missing
WHEREcan scan terabytes.
FAQ
How much does it cost to query the human genome variants dataset?
It depends entirely on the columns and region. A region query on allele frequencies scans a few MiB; reading genotypes for one gene scans 100 to 500 MiB; a full scan of the 1000 Genomes variants table is 5.38 TiB, more than five months of the free tier.
Is the human_genome_variants dataset free?
Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.
Which reference genome do the tables use?
1000 Genomes phase 3 was released on GRCh37, and its chromosomes are named 1 to 22, X and Y without a chr prefix. Check reference_name values in each table before you join datasets, because naming differs between sources.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
