Skip to content

About

LiberateDNA reads your raw DNA file right in your web browser and shows your heritage, health, traits and drug response. Your file never leaves your machine.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiberateDNA icon

LiberateDNA - DNA Reader

Explore your DNA without sharing it.

LiberateDNA reads your raw DNA file right in your web browser and shows your heritage, health, traits and drug response. Your file never leaves your machine.

Open LiberateDNA · Version 4.0.0 · English, العربية, Français

Home page

Why it exists

Most DNA tools ask you to upload your genome to their servers before they show you anything. Once it is there, you no longer control who keeps it or what they do with it.

LiberateDNA is for people who have had their genome read, or who have taken their raw data back from 23andMe, AncestryDNA, MyHeritage and similar services, and want to explore it without handing it to anyone else.

Your data stays private

  • No upload. The whole app is one HTML file. Your file is opened and read by your browser, on your machine. There is no server behind it, no account and no sign-in.
  • No sharing unless you choose. Nothing goes to any online service on its own. If you want more detail on a marker, you can turn on public database lookups (MyVariant, Ensembl, SNPedia and others). They stay off until you switch them on, and even then they send only the marker name, such as rs4988235, never your genotypes.
  • You stay in control. Your results are kept only in this browser's own storage, so you can come back to them. Delete my data clears them with one click.
  • Works offline. Download index.html and open it with no internet at all. The only outside request is for web fonts, and the app falls back to system fonts without them.
  • Open source. Every line is in this repository under the MIT license, so anyone can check what it does.

What's new in 4.0.0

Heritage

  • Matching stretches (runs of homozygosity). Finds long stretches where the copy from your mother and the copy from your father are the same, and says how closely related your parents' families are likely to be. Shows the total length, the share of your genome (F(ROH)), the longest stretch and a map by chromosome.
  • Compare with a relative or partner. Add a second person's raw file to see how closely you are related (same person, parent and child, sibling, second, third or fourth degree), with the share of DNA in common. It also lists recessive conditions you both carry a variant for, gene by gene. The second file is read in the browser and never saved.
  • Smoother chromosome painting. Windows of 60 markers, then a path through them that avoids switching region without good reason (Viterbi smoothing).
  • Each parent's copy painted on its own. With a phased file (23andMe phased data or a phased VCF), each copy is painted separately instead of as a pair.

Health and drugs

  • Heart: the 9p21 risk marker and PCSK9 R46L, which lowers LDL cholesterol.
  • Type 2 diabetes: the card now counts risk alleles across TCF7L2, SLC30A8, KCNJ11 and PPARG.
  • Seven more drug genes: TPMT and NUDT15 (thiopurines), UGT1A1 (irinotecan, atazanavir), CYP3A5 (tacrolimus), an HLA-B*57:01 tag (abacavir), OPRM1 (opioids; no dosing guideline) and G6PD (rasburicase, primaquine, dapsone).

Traits, now in groups

  • Looks: eye color from the IrisPlex model (six markers, with chances for blue, green or hazel, and brown), red hair, blond hair and skin tone markers.
  • Blood: likely ABO group, secretor status (FUT2) and Duffy-null.
  • Nutrition: folate (MTHFR 677 and 1298), vitamin B12 recycling, vitamin D level, omega-3 conversion, beta-carotene to vitamin A, choline need, saturated fat and weight.
  • Brain, sleep and aging: COMT, BDNF, caffeine and sleep (ADORA2A) and a FOXO3 longevity marker, each marked as limited evidence.
  • Neanderthal DNA: documented archaic variants on chromosome 3 (LZTFL1), at BNC2 and at OAS1.

Explorer

  • Lookups now also show traits from the GWAS Catalog, the CADD harm score, and the lowest and highest gnomAD frequency by region.

How the new markers were checked Every new marker was checked against gnomAD v3.1.2 (HGDP + 1000 Genomes) for its position on both builds, its letters and its frequency in each region, and against the source papers for which letter has the effect. That check corrected several common mistakes: for eight markers the effect letter is the reference letter, four are usually written on the other strand, and the ABO O allele is a one-letter deletion that the reference genome itself carries.

Left out on purpose

  • An ancient-origins breakdown (hunter-gatherer, early farmer, steppe). There is no open, trustworthy set of figures per reference group to build it from, and invented numbers would mislead.
  • Using your maternal or paternal line to adjust your ancestry mix. Those lines are one ancestor each out of thousands, so they should not move the whole-genome result.
  • A separate list of ancestry markers with quoted frequencies. Those figures could not be verified. The app keeps its 15,410 markers with frequencies measured in gnomAD.
  • Rh blood type. RhD negative comes from a whole gene being missing, which chips do not read.
  • TLR1 rs5743618 as a Neanderthal marker. The study on archaic immune genes does not name it, so it is not shown as one.

3.2.0

  • Files from any provider. LiberateDNA now reads raw data from AncestryDNA, MyHeritage, FamilyTreeDNA, Living DNA and many more, not only 23andMe. It works out the company, the column layout and the genome build on its own.
  • Genome sequencing. VCF and gVCF files from whole genome sequencing (Nebula, Dante Labs, Sequencing.com, or ones you made yourself) work too, on GRCh37 or GRCh38, plain or gzipped. Large files are read in pieces, so a full genome does not have to fit in memory at once.
  • Sites that match the reference are filled in. A whole genome VCF lists only where you differ from the reference genome. For the markers LiberateDNA reads, it fills in the reference letter, so heritage and health results are complete. In a gVCF it does this only where the file says the site was read.
  • Clear messages for files it can't use, such as BAM or CRAM reads, PDFs and match lists.
  • See What it reads for the full list.

3.1.0

  • Languages. LiberateDNA now speaks English, Arabic and French. Pick one on the home page, in the sidebar or in the menu; the choice is remembered on your device. It also follows your browser's language on first visit, and ?lang=ar or ?lang=fr in the address works too.
  • Right to left. In Arabic the whole layout mirrors: sidebar on the right, text and controls read right to left. Chromosome positions keep their left to right scale.
  • Translations anyone can add. Each language is a plain XML file in lang/. Copy en.xml, translate it and open a pull request. You can test a file first with Load a translation file, which uses it in your browser only.
  • The version and a link to the source now show on the home page.
  • A new app icon, shown in the app, as the browser tab icon and in the repository preview.

3.0.0

  • Heritage worked out from your own file against 36 reference groups, with a map, ranges, chromosome painting and deep maternal and paternal lines.
  • Renamed to LiberateDNA, with the privacy promise on the home page.

Languages

Arabic home page Arabic heritage page

All three languages ship inside the one index.html, so they work offline too. To add a language or fix a translation, see lang/README.md. Every entry pairs the English text with its translation:

<entry>
  <source>Explore your DNA without sharing it</source>
  <translation>استكشف حمضك النووي دون مشاركته</translation>
</entry>

Values such as numbers and names appear as {0}, {1}, so a translation can place them wherever its grammar needs. Anything left empty falls back to English.

What it shows

Overview Heritage
Overview. Your broad origins, what deserves a closer look, and a summary of your file. Heritage. Your closest group out of 36 reference groups, a map and a detailed breakdown.
Chromosome painting Maternal and paternal lines
Chromosome painting. Where each stretch of your DNA most likely comes from. Maternal and paternal lines. Placed on the full public family trees.
Health Traits
Health. Risk factors, carrier status and drug response, with sensitive results hidden until you ask. Traits. Eye color, blood group, nutrition, Neanderthal variants and more.

It also has an Explorer to search every marker in your file, a doctor summary you can print, four color themes, three languages and a phone layout.

Phone home page Phone heritage page

What it reads

Drop in the file as you downloaded it. Zip, gzip and bgzip files are opened as they are.

Source File Notes
23andMe genome_*.zip, phased_genotype*.zip or the .txt inside All chip versions. Builds 36 and 37.
AncestryDNA AncestryDNA.zip or .txt Allele columns, chromosomes 23 to 26.
MyHeritage MyHeritage_raw_dna_data.csv or .zip Both the old and the extra-quoted layouts.
FamilyTreeDNA *_Autosomal_o37_Results.csv.gz Including files with two joined parts.
Living DNA, Genes for Good, DNA.Land, SelfDecode, 23Mofang, tellmeGen, Sano, CircleDNA .txt, .csv Any table with marker, chromosome, position and genotype or allele columns.
Illumina Final Report (Codigo46, Mapmygenome and other GSA labs) .txt [Header] and [Data] sections, Plus or Forward strand columns.
Whole genome or exome sequencing (Nebula, Dante Labs, Sequencing.com, Full Genomes, your own) .vcf, .vcf.gz, .g.vcf.gz GRCh37 or GRCh38, with or without chr names and rsids. The first sample is used.
  • Password-protected zips (standard zip encryption). AES zips must be unzipped first.
  • The genome build comes from where known markers sit in the file, with the header as a tie-breaker. On GRCh38, positions are matched through a table of every marker LiberateDNA reads (src/b38.js, built by src/b38build.py from the UCSC liftOver chain and gnomAD).
  • Files on build 36 are matched by marker name only, and the paternal line is skipped, since its tree uses GRCh37 positions.
  • In a whole genome VCF, a site that is not listed is taken to match the reference. In a gVCF, only sites inside a reference block are filled in.
  • Not read: BAM, CRAM and FASTQ (raw reads, before genotypes are called), PDF reports and lists of DNA matches. LiberateDNA says so instead of guessing.

These results come from a consumer chip, not a medical test. They are not a diagnosis. Confirm anything important with a clinical test and a doctor or genetic counselor.

How heritage works

Everything below runs in your browser, on your file:

  • Closest group and breakdown. About 15,400 markers that common DNA chips share with the Illumina GSA are compared with 3,284 people in 36 reference groups from the HGDP and 1000 Genomes projects. A supervised mixture model (as in frappe and ADMIXTURE projection) finds the share of each group; ranges come from resampling blocks of markers. Groups under 2% are dropped, since they mostly soak up noise.
  • Chromosome painting. Windows of 60 markers are matched to the closest pair of broad regions, with a light pull toward the overall result, then smoothed with a Viterbi path so the region changes only where the evidence supports it. Phased files are painted one copy at a time. It is a rough picture.
  • Matching stretches. Runs of at least 80 markers and 1.5 Mb where both copies agree (allowing about one mixed call per 100 markers), on chips with 100,000 or more markers.
  • Relatives. Kinship is the KING-robust estimate over markers both files share; parent and child are told apart from siblings by the near absence of opposite calls (such as AA and GG).
  • Maternal line. Placed on PhyloTree Build 17 (5,400+ branches) with the HaploGrep scoring method, from the mitochondrial calls in the file.
  • Paternal line. Placed on the ISOGG 2016 Y tree (1,800+ branches, 15,000 SNPs) by the best supported path, for files with a Y chromosome.

Tested on 108 people held out of the reference: the top group was right for 78% and the top region for 96%. Pairs it confuses most: Baloch and Brahui with Makrani, French with Northwestern European, Finnish with Eastern European.

Limits: open data has no reference groups for the Gulf, Iraq, Iran, Turkey, Egypt or Yemen. Ancestry from those places shows up split across the nearest groups (Bedouin, Palestinian, Druze, Circassian, Pathan and others).

Data sources and credits

  • HGDP and 1000 Genomes genotypes, read from the gnomAD v3.1.2 HGDP+1KG release (public, Google Cloud). Bergström et al. 2020; 1000 Genomes Project 2015; Koenig et al. 2024.
  • Illumina GSA marker list (rsid and GRCh37 position maps), lifted to GRCh38 with the UCSC chain file.
  • PhyloTree Build 17, van Oven 2016, via github.com/genepi/phylotree-rcrs-17 (MIT).
  • ISOGG Y-DNA Haplogroup Tree 2016, as shipped in github.com/23andMe/yhaplo. Only the tree and SNP table are used; no yhaplo code is included.
  • World outline: Natural Earth via world-atlas (ISC).
  • fflate 0.8.3 for gzip (MIT).
  • The list of file layouts was checked against the snps Python library (BSD), whose readers cover many providers. No snps code is included.

Rebuilding the reference data

anc/ holds the scripts. In that folder, with pysam, pyliftover and the files above: cand.py picks candidate markers, fetch.py reads their genotypes from gnomAD by range request, mtbuild.py and ybuild.py build the two trees. Then python3 src/refbuild.py writes src/ref.js and node src/refcheck.js scores the held-out people and stores the figures shown in the app.

Preview options (URL parameters)

  • ?lang=en|ar|fr
  • ?theme=lab|dark|warm|poster
  • ?start=upload|dashboard
  • ?tab=overview|heritage|health|traits|explorer and ?sub=risks|carrier|drugs
  • ?sample=phased|full|xx
  • ?demo=password|reads|format|corrupt|oldchip|slow|lookupfail|offline
  • ?layout=desktop|mobile

Building from source

src/ holds the parts. python3 src/build.py index.html rebuilds the single file, bundling every language in lang/; it expects Preact + htm (htm/preact/standalone.umd.js), @phosphor-icons/web 2.1.1 and fflate 0.8.3 (for gzip and bgzip files) unpacked in a deps/ folder next to src/.

Tests

tests/ holds Playwright scripts and sample files (a normal zip, a phased zip, a zip with password hunter2, an AncestryDNA export, a cut-off file and an empty file). node tests/formats.js writes the same person's DNA in 15 formats (AncestryDNA, MyHeritage, FamilyTreeDNA, Illumina reports, build 36, a chip VCF, a GRCh38 whole genome VCF in bgzip blocks, a gVCF and more) to shots/formats/, reads each one with the real parser and checks that genotypes, heritage and both family lines match the 23andMe original. tests/files/make_me.py builds three more: a Middle Eastern style male file (J1 lines, Arabian lactase variant, G6PD, an i-number duplicate), the same as CSV, and a female file whose Y rows are single-dash no-calls. genome_Full_mix.txt is a made-up man of mixed European and East Asian ancestry, built by node tests/files/make_mixed.js from the reference group frequencies (no real person's DNA; maternal line H1, paternal line O-M122), used to check the Heritage page and for the screenshots; node tests/fixtest.js checks them. Serve the folder (python3 -m http.server 8765), then run node tests/realtest.js from inside tests/ with Playwright installed. node tests/i18ntest.js checks language switching, the right to left layout and that no translated text is left in English; LANGS=en,ar,fr node tests/sweep.js checks every theme and language at desktop and phone widths. node tests/genome.js builds simulated people (a child of cousins, a family with cousins and half siblings, a person with one African and one European copy) and checks matching stretches, relative matching and painting of phased files; node tests/genome-ui.js then opens those files in the browser. node tests/mock.js checks database lookups against stand-in replies. node tests/screens.js retakes the screenshots in docs/screenshots from the made-up file.

License

MIT, see LICENSE. The reference data in src/ref.js comes from the public sources listed above, which keep their own terms.

About

LiberateDNA reads your raw DNA file right in your web browser and shows your heritage, health, traits and drug response. Your file never leaves your machine.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages