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 was archived by the owner on Jun 15, 2026. It is now read-only.
PHRED-scaled deleteriousness enrichment from CADD v1.7. Two modes:
cache (pre-built SQLite, ~5GB, ~120M keys) and full (81GB tabix via
pysam, GRCh38 only). Enrichment-only annotator following the
gnomAD/AlphaMissense pattern. Opt-in — disabled by default.
Licensable-source gating: three-state permission model (ALLOW /
BLOCK_FINAL / BLOCK_PURCHASABLE) with per-source license assertions.
CADD is non-commercial by default but unlockable via commercial
license; SNPedia is permanently blocked in commercial mode.
Also: `config get` subcommand, strand normalization for array data,
CADD cache build script with int64 packing and indel pass.
1215 tests, 92%+ coverage.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,33 @@
2
2
3
3
All notable changes are documented here. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Copy file name to clipboardExpand all lines: README.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,15 @@
3
3
Open-source command-line toolkit for analyzing raw genotype files from consumer DNA testing services. Format-agnostic ingestion, database-agnostic annotation, offline-first.
4
4
5
5
> **Status:** Production — six parser formats, four annotators (ClinVar +
# Download reference databases. First run downloads all sources (~15GB
32
34
# on disk with gnomAD + AlphaMissense). Use --no-gnomad / --no-alphamissense
33
35
# to skip the large enrichment databases. Re-runs skip unchanged sources.
36
+
# CADD is opt-in: allelix db update --cadd
34
37
allelix db update
35
38
allelix db status # see what's cached
36
39
@@ -80,6 +83,7 @@ Adding a new format means adding one file to `allelix/parsers/` and registering
80
83
| GWAS Catalog | ✓ | Public domain (EBI/NHGRI). Trait–SNP associations with p-values and effect sizes. Carrier rule (ADR-0007) requires the user to carry the risk allele. P-value magnitude scoring (ADR-0024) maps continuous p-values to the 0–10 scale; unknown-risk-allele entries fire on rsID match alone but are capped at 3.0. |
81
84
| gnomAD | ✓ | ODbL v1.0. **Enrichment annotator** — adds population allele frequency context to existing annotations. Shows how common each variant is in the general population (~16M exome variants from 730K individuals). A pathogenic variant that 35% of people carry reads very differently from one seen in 0.001%. Pre-built cache downloaded via `db update` (~6GB on disk). Use `--no-gnomad` to skip. |
82
85
| AlphaMissense | ✓ | CC BY 4.0. **Enrichment annotator** — adds DeepMind's protein-structure-based pathogenicity predictions to existing annotations. Scores 71M missense variants on a 0–1 scale: <0.34 = likely benign, >0.564 = likely pathogenic. Complements ClinVar's expert classifications with computational predictions — especially valuable for variants ClinVar hasn't reviewed yet. Pre-built cache downloaded via `db update` (~8GB on disk). Use `--no-alphamissense` to skip. |
86
+
| CADD | ✓ | LicenseRef-CADD (non-commercial). **Enrichment annotator** — adds PHRED-scaled deleteriousness scores from CADD v1.7. Ranks how deleterious any single-nucleotide variant is using 100+ annotation tracks (coding, non-coding, regulatory). PHRED 10 = top 10% most deleterious, 20 = top 1%, 30 = top 0.1%. **Opt-in** — disabled by default (`sources.cadd = false`). Enable via `allelix db update --cadd` or `allelix config set sources.cadd true`. Pre-built cache (~5 GB on disk, ~120M variant keys). Full mode available via pysam for GRCh38 data (`options.cadd_full = true`). Cache mode covers the large majority of variants present in gnomAD, AlphaMissense, and ClinVar — nearly every position allelix can annotate from its other databases. For genotyping chip data (23andMe, AncestryDNA, MyHappyGenes, etc.), cache and full mode produce effectively identical results because chip probes overwhelmingly target known, cataloged variants. Full mode adds coverage for novel or private variants that appear only in whole-genome or whole-exome sequencing data and are not in any pre-computed database. If your input is a genotyping chip file, cache mode is all you need. |
83
87
84
88
### Known PharmGKB limitation: reference-genotype rows where ClinVar and CPIC both lack data
85
89
@@ -119,17 +123,24 @@ This is not a disclaimer afterthought. It is a design constraint that affects mo
119
123
Allelix stores persistent configuration in `config.toml` (in the data directory, default `~/.local/share/allelix/`). A default config is created on first run.
120
124
121
125
```bash
122
-
# View current config
126
+
# View current config (annotated with license notes)
123
127
allelix config show
124
128
129
+
# Read a single key
130
+
allelix config get sources.cadd
131
+
allelix config get license.commercial
132
+
125
133
# Disable a source permanently
126
134
allelix config set sources.gnomad false
127
135
128
-
# Enable commercial mode (auto-disables non-commercial sources like SNPedia)
CLI flags (`--no-gnomad`, `--no-alphamissense`, `--exclude-snpedia`) override the config for a single run. The config sets the baseline; flags override per-invocation.
143
+
CLI flags (`--no-gnomad`, `--no-alphamissense`, `--exclude-snpedia`, `--cadd`) override the config for a single run. The config sets the baseline; flags override per-invocation.
133
144
134
145
### Database sizes and download times
135
146
@@ -142,6 +153,7 @@ Not all databases are equal in size. `allelix db update` downloads them all by d
142
153
| GWAS Catalog |~200MB | 1–2 min | Trait-SNP associations from genome-wide studies. |
143
154
| gnomAD |~6GB | 5–15 min | Population allele frequencies (how common is this variant?). |
144
155
| AlphaMissense |~8GB | 5–15 min | Missense pathogenicity predictions (how likely to break protein function?). |
156
+
| CADD (opt-in) |~5GB | 5–15 min | Variant deleteriousness scores (how damaging is this variant?). Enable with `--cadd`. |
145
157
146
158
gnomAD and AlphaMissense are the largest but add the most interpretive context. gnomAD answers "is this variant rare or common?" — a pathogenic variant carried by 35% of the population reads very differently from one seen in 3 people. AlphaMissense answers "does this missense change likely damage the protein?" — especially valuable for the thousands of variants ClinVar hasn't reviewed yet.
147
159
@@ -160,8 +172,9 @@ Allelix source code is licensed under the **GNU Affero General Public License v3
160
172
| SNPedia | snpedia.com | CC BY-NC-SA 3.0 US | Attribution required, **non-commercial only**. Use `--exclude-snpedia` to omit. |
161
173
| gnomAD | gnomad.broadinstitute.org | ODbL v1.0 | Attribution required. Population allele frequencies for context; not a clinical annotator. Use `--no-gnomad` to omit. |
162
174
| AlphaMissense | zenodo.org/records/10813168 | CC BY 4.0 | Attribution required. Cheng et al., Science 2023. Missense variant pathogenicity predictions. Use `--no-alphamissense` to omit. |
175
+
| CADD | cadd.gs.washington.edu | LicenseRef-CADD | Attribution required, **non-commercial by default**. Commercial licenses available from UW CoMotion. Opt-in via `allelix db update --cadd`. |
163
176
164
-
**Commercial users:**SNPedia content is non-commercial. Set `allelix config set license.commercial true` to permanently disable non-commercial sources, or pass `--exclude-snpedia` per-invocation. Either way, `analyze` runs using all other databases and omits SNPedia annotations automatically. All other databases (ClinVar, PharmGKB, GWAS Catalog, gnomAD, AlphaMissense) are compatible with commercial use.
177
+
**Commercial users:**When `license.commercial = true`, non-commercial sources are gated by a three-state permission model. SNPedia is permanently blocked (no commercial license is available). CADD is blocked by default but can be unlocked — the University of Washington offers commercial licenses at `https://els2.comotion.uw.edu/product/cadd-scores`; after purchasing, assert your license with `allelix config set license.cadd true` to re-enable CADD in commercial mode. All other databases (ClinVar, PharmGKB, GWAS Catalog, gnomAD, AlphaMissense) are compatible with commercial use. `allelix config show` displays the permission state for each source.
0 commit comments