dial481 commited on
Commit
fcf5e06
·
verified ·
1 Parent(s): 39cfec2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +88 -0
README.md CHANGED
@@ -1,3 +1,91 @@
1
  ---
2
  license: odbl
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: odbl
3
+ task_categories:
4
+ - tabular-classification
5
+ tags:
6
+ - genomics
7
+ - gnomad
8
+ - allele-frequency
9
+ - population-genetics
10
+ - bioinformatics
11
+ - sqlite
12
+ pretty_name: Allelix gnomAD Exome Frequencies
13
+ size_categories:
14
+ - 10M<n<100M
15
  ---
16
+
17
+ # Allelix gnomAD Exome Frequency Cache
18
+
19
+ Pre-built SQLite cache of population allele frequencies from [gnomAD v4.1 exomes](https://gnomad.broadinstitute.org/) for use with [Allelix](https://github.com/dial481/allelix).
20
+
21
+ ## What's in the file
22
+
23
+ `exome_frequencies.sqlite.gz` is a gzipped SQLite database containing the `gnomad_frequencies` table with all ~16M exome variants that carry an rsID in gnomAD v4.1.
24
+
25
+ ### Schema
26
+
27
+ ```sql
28
+ CREATE TABLE gnomad_frequencies (
29
+ chrom TEXT NOT NULL,
30
+ pos INTEGER NOT NULL,
31
+ ref TEXT NOT NULL,
32
+ alt TEXT NOT NULL,
33
+ rsid TEXT,
34
+ af REAL,
35
+ af_popmax REAL,
36
+ popmax TEXT,
37
+ af_afr REAL,
38
+ af_amr REAL,
39
+ af_asj REAL,
40
+ af_eas REAL,
41
+ af_fin REAL,
42
+ af_nfe REAL,
43
+ af_sas REAL,
44
+ PRIMARY KEY (chrom, pos, ref, alt)
45
+ );
46
+
47
+ CREATE INDEX idx_gnomad_rsid ON gnomad_frequencies(rsid);
48
+ ```
49
+
50
+ ### Columns
51
+
52
+ | Column | Description |
53
+ |--------|-------------|
54
+ | `chrom` | Chromosome (1-22, X, Y, no "chr" prefix) |
55
+ | `pos` | Genomic position (GRCh38) |
56
+ | `ref` | Reference allele |
57
+ | `alt` | Alternate allele |
58
+ | `rsid` | dbSNP rsID |
59
+ | `af` | Global allele frequency |
60
+ | `af_popmax` | Maximum allele frequency across populations |
61
+ | `popmax` | Population with the highest frequency |
62
+ | `af_afr` | African/African American frequency |
63
+ | `af_amr` | Admixed American/Latino frequency |
64
+ | `af_asj` | Ashkenazi Jewish frequency |
65
+ | `af_eas` | East Asian frequency |
66
+ | `af_fin` | Finnish frequency |
67
+ | `af_nfe` | Non-Finnish European frequency |
68
+ | `af_sas` | South Asian frequency |
69
+
70
+ ### Multi-allelic sites
71
+
72
+ The composite primary key `(chrom, pos, ref, alt)` preserves multi-allelic sites. A single rsID may have multiple rows with different alternate alleles. For example, rs776646858 has 13 distinct ALT alleles in the exome dataset.
73
+
74
+ ## How Allelix uses this
75
+
76
+ Allelix downloads this file automatically during `allelix db update`. The annotator looks up variants by rsID and returns `MAX(af)` across alleles for a given rsID. Coordinate columns are indexed for future integration with AlphaMissense and CADD scores.
77
+
78
+ ## Building from source
79
+
80
+ The cache can be rebuilt from gnomAD exome VCFs using the build script included with Allelix:
81
+
82
+ ```bash
83
+ python scripts/build_gnomad_cache.py --full --local-dir /path/to/gnomad/vcfs --output exome_frequencies.sqlite
84
+ gzip exome_frequencies.sqlite
85
+ ```
86
+
87
+ ## Source and license
88
+
89
+ - **Source:** [gnomAD v4.1 exomes](https://gnomad.broadinstitute.org/) (Broad Institute)
90
+ - **License:** [Open Data Commons Open Database License (ODbL) v1.0](https://opendatacommons.org/licenses/odbl/1-0/)
91
+ - **Citation:** See [gnomAD papers](https://gnomad.broadinstitute.org/publications)