Skip to content
ES — View this page in SpanishEN

N° 02.06 — Case

Open source

Live

Rev ff2c27c

Assay

Your DNA never leaves your device.

Type
Open source
Disciplines
  • AB Backend architecture
  • AW Web applications
Stack
Python · FastAPI · SQLite · snps · JavaScript

The Assay demo with the sample file loaded: results grouped by category, health results hidden behind a warning, and traits such as eye colour with their genotype and gene.
FIG. 01 — Capture of the live site, Nov 2, 2026

Summary

Assay reads the raw file a consumer DNA test gives you (23andMe, AncestryDNA, FamilyTreeDNA, MyHeritage, LivingDNA, tellmeGen or a generic CSV) and shows the traits associated with your genotypes, each with its source, its date and a short plain-language explanation. It reads in English or Spanish. It's for education only: not a medical device and not a diagnosis.

Privacy lives in the architecture, and the tests check it. The app listens on loopback only. Genotypes stay in RAM, in a session that expires, and are never written to disk or logs. The parse-and-annotate path imports no HTTP client at all: every network call sits in a single module, the one that downloads public databases, and it only talks to a closed list of hosts. One test blocks every socket and checks that the full analysis still completes. The demo on GitHub Pages ports the same engine to JavaScript and runs entirely in your browser.

The data sources are a decision too. It uses GWAS Catalog, ClinVar and ClinPGx, and it doesn't redistribute PharmGKB data because that license is copyleft: your machine downloads it on its own. It skips SNPedia as well, because of its non-commercial license.

The README is open about how it was made and what isn't known: I built it with no clinical or genetics training, setting the constraints and orchestrating AI agents that wrote most of the code under them. No geneticist has reviewed it, and the effect sizes come mostly from European-ancestry cohorts, which matters for admixed populations.


01Problem

A DNA file is about as personal as data gets, and reading it shouldn't mean handing it to anyone.


02Decision

Privacy isn't promised; it's tested by blocking every socket.

tests/test_privacy_g3.py, lines 34 to 45, commit f78667cView on GitHub (external site)
def test_parse_and_annotate_make_no_network_connection(corpus, seed_db, monkeypatch):    """Full parse->annotate must complete with all outbound sockets banned."""    m = corpus["health_pharma_b37_23andme"]    raw = Path(m["path"]).read_bytes()    _ban_sockets(monkeypatch)    genome = parsing.parse_bytes(raw)                 # snps parse — local only    store = AnnotationStore.load(seed_db)             # sqlite — local only    matches = list(store.match(genome.genotypes))     # temp-join match — local only    assert matches, "annotate produced results fully offline"    assert any(x["source"] == "curated_seed" for x in matches)
  1. Line 38 From here on, any outbound connection raises an error.
  2. Line 44 The full analysis still completes, with no network.


04Architecture

  1. 01 DNA file
    • leads to 02 Parsed with snps, in memory
  2. 02 Parsed with snps, in memory
    • leads to 03 In-RAM session with a TTL
  3. 03 In-RAM session with a TTL
    • leads to 04 Annotation over SSE
  4. 04 Annotation over SSE
  5. 05 Read-only SQLite
    • leads to 04 Annotation over SSE
  6. 06 db_update: the only networked module
    • leads to 05 Read-only SQLite
  7. 07 GWAS Catalog · ClinVar · ClinPGx
    • leads to 06 db_update: the only networked module
FIG. 02 — 7 nodes · 6 edges